state.SubmitPayForBlob RPC Method
Parameters
array
array
REQUIRED
An array which contains the object of 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
namespace_version
integer
The namespace version
object
object
REQUIRED
An object with the following fields:
gas_price
integer
The cost per gas unit for executing the transaction.
is_gas_price_set
boolean
Indicates if the gas price has been explicitly defined.
gas
integer
The maximum gas allocated for the transaction.
key_name
string
Identifier for the key used to sign the transaction
signer_address
string
REQUIRED
The address responsible for signing the transaction
fee_granter_address
string
The address covering the transaction fee on behalf of the signer.
Returns
result
object
The result object which contains the following fields:
height
integer
The block height at which the transaction was included
txhash
string
The unique hash of the transaction
data
string
Encoded data of the transaction response
raw_log
string
Stringified JSON log of raw transaction events
logs
array
An array of logs
msg_index
integer
Index of the message within the transaction
events
array
An array of events, which contains the following fields:
type
string
The type of event triggered
attributes
array
Key-value attributes associated with the event
key
string
The attribute key within the event
value
string
The value associated with the attribute key
gas_wanted
integer
Gas limit requested for the transaction
gas_used
integer
The amount of gas consumed by the transaction
events
array
Events triggered at the transaction level
type
string
The type of the transaction-level event.
attributes
array
Attributes of the transaction-level event
key
string
The encoded key for the attribute.
value
string
The value associated with the attribute key
index
boolean
Boolean indicating if the attribute is indexed
Request
1curl --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": "state.SubmitPayForBlob",7"params": [8[9{10"namespace_id": "Ynl0ZSBhcnJheQ==",11"data": "Ynl0ZSBhcnJheQ==",12"share_version": 42,13"namespace_version": 4214}15],16{17"gas_price": 0.002,18"is_gas_price_set": true,19"gas": 142225,20"key_name": "YOUR_CELESTIA_KEYS",21"signer_address": "GRANTER_ADDRESS",22"fee_granter_address": "GRANTER_ADDRESS"23}24]25}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free