Skip to main content

Parameters

chainId
string
default:"397"
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:"chunk"
required
JSON-RPC method name.
params
object

Returns

result
object
The JSON-RPC result.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=397 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "chunk",
    "params": {
      "block_id": 187310138,
      "shard_id": 0
    }
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "author": "kiln.pool.f863973.m0",
    "header": {
      "balance_burnt": "0",
      "bandwidth_requests": null,
      "chunk_hash": "CzPafxtJmM1FnRoasKWAVhceJzZzkz9RKUBQQ4kY9V1v",
      "congestion_info": {
        "allowed_shard": 1,
        "buffered_receipts_gas": "0",
        "delayed_receipts_gas": "0",
        "receipt_bytes": 0
      },
      "encoded_length": 308,
      "encoded_merkle_root": "6z9JwwtVfS5nRKcKeJxgzThRRs2wCNvbH88T3cuARe6W",
      "gas_limit": 1000000000000000,
      "gas_used": 0,
      "__truncated": true
    },
    "receipts": [],
    "transactions": [
      {
        "actions": [
          "..."
        ],
        "hash": "J3KbUXF9YPu2eGnbDCACxGvmMDZMdP7acGYhVLHGu9y2",
        "nonce": 187309654000001,
        "priority_fee": 0,
        "public_key": "ed25519:EddTahJwZpJjYPPmat7DBm1m2vdrFBzVv7e3T4hzkENd",
        "receiver_id": "contract.rpc-examples.testnet",
        "signature": "ed25519:3opUQgg5eNQmE2LJ8zJiitBAVLDFR3svk8LC5VtVGorQuq8jWLocKAt7B4xb6n7DhH8zSVCWcRRrmVL9f1wHiVXa",
        "signer_id": "account.rpc-examples.testnet"
      }
    ]
  }
}