Skip to main content

Parameters

chainId
string
default:"43113"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"index.getContainerRange"
required
JSON-RPC method name.
params
object
required
Parameters to specify the range of containers to fetch.Parameters for 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”.

Returns

result
array
List of container objects in sequential index order.
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.getContainerRange",
    "params": {
      "startIndex": 0,
      "numToFetch": 100,
      "encoding": "hex"
    }
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": []
}