Follow instructions and install all dependencies, celestia-node and start light node:
- https://docs.celestia.org/nodes/environment
- https://docs.celestia.org/nodes/celestia-node
- https://docs.celestia.org/developers/node-tutorial - Run Light Node on Arabica network.
Do not forget to receive tokens from Arabica faucet from Celestia Discourd.
Generate API Key for RPC requests:
export CELESTIA_NODE_AUTH_TOKEN=$(celestia light auth admin --p2p.network arabica)
use submit-blob.py instead.
base64 file_with_blob > base64_blob
export BLOB_BASE64=$(cat base64_blob)
export NAMESPACE="AAAAAAAAAAAAAAAAAAAAAAAAAAECAwQFBgcICRA="
// calculate $COMMITMENT
curl -H "Content-Type: application/json" -H "Authorization: Bearer $CELESTIA_NODE_AUTH_TOKEN" -X POST --data "{'id': 1
'jsonrpc': '2.0',
'method': 'blob.Submit',
'params': [
[
{
'namespace': $NAMESPACE,
'data': $BLOB_BASE64,
'share_version': 0,
'commitment': $COMMITMENT
}
],
0.1
]
}" 127.0.0.1:26658
Result:
{'id': 1, 'jsonrpc': '2.0', 'result': 1433193}
curl -H "Content-Type: application/json" -H "Authorization: Bearer $CELESTIA_NODE_AUTH_TOKEN" -X POST --data ""{
'id': 1,
'jsonrpc': '2.0',
'method': 'blob.GetProof',
'params': [
1433193,
'$NAMESPACE',
'$COMMITMENT'
]
}" 127.0.0.1:26658