index.getContainerByIndex RPC Method
Parameters
index
uint64
encoding
String
Encoding can be "hex" only.
Returns
id
string
The container's ID.
bytes
string
The byterepresentation of the container.
timestamp
string
The time at whichthe node accepted the container.
index
string
How many containerswere accepted in this index before this one.
encoding
string
Encoding is "hex" only.
Request
1curl --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.getContainerByIndex",6"params": {7"index":0,8"encoding":"hex"9}10}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free