This is a tool that anyone can use to post the current price data from the Ojo blockchain to Celestia. It was inspired by @dferrersan on twitter / x.
git clone https://github.com/ojo-network/ojotia
cd ojotia
make install
This assumes you have a celestia light node installed and have access to an ojo GRPC endpoint.
To submit data, run:
ojotia [auth-token] [celestia-rpc-addr] [ojo-grpc-addr]
It should return something similar to:
Succesfully submitted blob to Celestia
Height: 12345
Commitment string: d4bfd96812d50d52f3966fd5e847596ed3176ea1d7958cfx1981804688d89ec8
To query that data, run:
ojotia query [auth-token] [celestia-rpc-addr] [commitment] [height]
Which should return:
Celestia queried successfully!
Ojo Price Data:
{7.815472986524036485ATOM}