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.getIndex",
"params": {
"containerID": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Returns the index of a container based on its ID. Useful for locating the container’s position in the sequential index list.
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.getIndex",
"params": {
"containerID": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
index.getIndex:params.containerID: The container ID whose index you want to retrieve.params.encoding: The encoding format used. Only “hex” is supported.Show properties
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.getIndex",
"params": {
"containerID": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Was this page helpful?