Parameters
chainId
string
default:"43113"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"index.getContainerByID"
required
JSON-RPC method name.
Parameters to identify and retrieve the container.Parameters for index.getContainerByID:params.id: The container ID to look up.params.encoding: The encoding format for the byte output. Must be “hex”.
Returns
The container data and metadata.
The unique ID of the container.
Hex-encoded byte representation of the container.
Timestamp when the node accepted this container.
The encoding format of the bytes field (always “hex”).
The sequential index of this container in the accepted container list.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43113 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "index.getContainerByID",
"params": {
"id": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}