Skip to main content

index.getContainerById RPC Method

Get container by ID.

Updated on
Nov 2, 2023

index.getContainerById RPC Method

Parameters

id
String
The container ID.
encoding
String
Encoding is "hex" only.

Returns

id
string
The container's ID.
bytes
string
The byte representation of the container.
timestamp
string
The time at which the node accepted the container.
encoding
string
Encoding is "hex" only.
index
string
How many containers were accepted in this index before this one.
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/index/X/tx \
2
--data-raw '{
3
"jsonrpc":"2.0",
4
"id" :1,
5
"method" :"index.getContainerByID",
6
"params": {
7
"id":"CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",
8
"encoding":"hex"
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free