This is a simple fun tool which calculates how much posting the equivalent data (i.e. blocks) from any Cosmos chain on Celestia would cost.
The tool is built in Go so to compile the binary simply run
go install
Then to run the tool, find the RPC and REST endpoint of any chain (a good source for this information is the Cosmos Chain Registry) and run the following command:
cheaper-on-celestia <RPC endpoint> <REST endpoint>
This will query the most recent 100 blocks. If you want to specify the query range, add the number of blocks to the end of the command.
The response will look something like:
cosmoshub-4 over the last 100 blocks (3197 KB & 10m18s) would cost 3557435 utia
The same blocks cost 1032234798 uatom