index.getContainerRange RPC Method
Parameters
startIndex
uint64
The beginning index
numFetch
uint64
The number of containers to fetch
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.
encoding
string
Encoding is "hex" only.
index
string
How many containerswere accepted in this index before this one.
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.getContainerRange",6"params": {7"startIndex":0,8"numToFetch":100,9"encoding":"hex"10}11}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free