Skip to main content

blob.Submit RPC

Submit sends Blobs and reports the height in which they were included. Allows sending multiple Blobs atomically synchronously. Uses default wallet registered on the Node.

Updated on
Nov 7, 2024

blob.Submit RPC

Parameters

array
array
REQUIRED
An array which contains the following fields:
namespace
string
The namespace identifier for the blob, represented as a base64-encoded string
data
string
The actual data contained within the blob, encoded in base64 format
share_version
integer
An integer indicating the version of the share protocol used for encoding the blob data
commitment
string
A base64-encoded hash value that serves as a cryptographic commitment to the blob data, ensuring its integrity
index
integer
A numerical index indicating the blob's position or order within a set of blobs at the specified block height
object
object
REQUIRED
An object which contains the following fields:
gas_price
integer
The cost per unit of gas (specified as a numeric value) for the transaction
is_gas_price_set
boolean
A boolean value indicating whether the gas_price is explicitly set (true if set)
gas
integer
The total amount of gas allocated for the transaction
key_name
string
The name of the key used to sign the transaction. This key must be present in the Celestia nodes keyring
signer_address
string
The Bech32 address of the account initiating the transaction. This address must have sufficient funds and permissions to sign and broadcast the blob
fee_granter_address
string
The Bech32 address of the account providing the transaction fee on behalf of the signer

Returns

result
string
Returns a unique identifier or confirmation ID for the blob submission
Request
1
curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"id": 1,
5
"jsonrpc": "2.0",
6
"method": "blob.Submit",
7
"params": [
8
[
9
{
10
"namespace": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAMJ/xGlNMdE=",
11
"data": "z8QyNztvogN7NYU27gI+nJgg1vMJtkK3vbduSDz7/8mhmos37I7duH51kkgouxrsdhdOBJ1431OmipNfVedbtwe6zQ06EbJBl/jk4QwwU3S29YBTUZcUfTzXpEJIuMrYzU6YPxN8Zce/KNdsEIy4zxdfxekXpvsgZMBhf83iYgfHvsFAoJmmCp/ORAUoAFf7tJ7cF8RZyA20ftqRa1uhAmktxIb58abpGTG+TNgq3mjyvswECVykJYqGjqNtInyIx2EQOnVp2q69YHkegdoBvoOKzEFigQTdrL2TZBex4MhkrYt7Zf0DQyNMRkCPL/zKYE3bhvXNWMThWCmhD5TOApzirORXKOTB0nxhjDF/aFYkrS+IKBw1KfJ5isldWvmasJBWwRgDuli6Cty67vMMk7fUUTUf0St6rvQeftSoEVlC1xEw46+h5kIXaWiM0g/EzGIAdZHycUFWCSdnt3p7BS5ttEpSf1d6ZbVYYL2y0XguH41k54JqufEMAw9ukmaF0IbN9Jk6fNefV1dsWTdCP6Mz6e+RTCd9DQGqb2VrsvMzx5uVidLD8ND79pvXgL1VzyhJaMTcjSfZK15jOxLwGh1arZc2gyTNiq2pu6wNz0tdJp+fFU+peG8rHN8=",
12
"share_version": 0,
13
"commitment": "aHlbp+J9yub6hw/uhK6dP8hBLR2mFy78XNRRdLf2794=",
14
"index": -1
15
}
16
],
17
{
18
"gas_price": 0.002,
19
"is_gas_price_set": true,
20
"gas": 142225,
21
"key_name": "YOUR_CELESTIA_KEYS",
22
"signer_address": "GRANTER_ADDRESS",
23
"fee_granter_address": "GRANTER_ADDRESS"
24
}
25
]
26
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free