Skip to main content
POST
https://api.uniblock.dev
/
uni
/
v1
/
json-rpc
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.getContainerByID",
    "params": {
      "id": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",
      "encoding": "hex"
    }
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}

Parameters

chainId
string
default:"43114"
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.getContainerByID"
required
JSON-RPC method name.
params
object
required
Parameters to identify and retrieve the container.Parameters for index.getContainerByID:
  • params.id: The container ID to look up.
  • params.encoding: The encoding format for the byte output. Must be “hex”.

Returns

result
object
The container data and metadata.
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.getContainerByID",
    "params": {
      "id": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",
      "encoding": "hex"
    }
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}