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.isAccepted",
    "params": {
      "containerID": "2dGz8JSfX17QqW12pARrt2iWNhXdcpXMYPVSYRn9HrReGpMXqQ",
      "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.isAccepted"
required
JSON-RPC method name.
params
object
required
Parameters used to check the acceptance status of a container.Parameters for index.isAccepted:
  • params.containerID: The ID of the container to check.
  • params.encoding: The encoding format of the request. Only “hex” is supported.

Returns

result
object
Boolean result indicating whether the container is accepted.
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.isAccepted",
    "params": {
      "containerID": "2dGz8JSfX17QqW12pARrt2iWNhXdcpXMYPVSYRn9HrReGpMXqQ",
      "encoding": "hex"
    }
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}