curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "index.getContainerRange",
"params": {
"startIndex": 0,
"numToFetch": 100,
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}
Returns a batch of containers starting at the specified index, returning up to 1024 containers in sequence. Useful for pagination or historical sync.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "index.getContainerRange",
"params": {
"startIndex": 0,
"numToFetch": 100,
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}
index.getContainerRange:params.startIndex: The index of the first container to return.params.numToFetch: The number of containers to fetch (max 1024).params.encoding: The encoding format for the returned container bytes. Must be “hex”.Show items
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "index.getContainerRange",
"params": {
"startIndex": 0,
"numToFetch": 100,
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}
Was this page helpful?