NEAR Protocol RPC: Chunk by Hash (1.0.0)

Retrieve chunk data using a specific chunk hash

Download OpenAPI description
Languages
Servers
Mainnet
https://rpc.mainnet.fastnear.com/
Testnet
https://rpc.testnet.fastnear.com/

Get chunk by hash

Request

Retrieves chunk details using a specific chunk hash

Bodyapplication/jsonrequired
jsonrpcstringrequired
Value"2.0"
idstringrequired
Example: "fastnear"
methodstringrequired
Value"chunk"
paramsobjectrequired
params.​chunk_idstringrequired

Base58-encoded chunk hash

curl -i -X POST \
  https://rpc.mainnet.fastnear.com/ \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": "fastnear",
    "method": "chunk",
    "params": {
      "chunk_id": "2GPYNPnguQaHBnvTZyExDHfVESgDhbcjMXeCakRsHWDN"
    }
  }'

Responses

Successful response

Bodyapplication/json
jsonrpcstringrequired
Value"2.0"
idstring or numberrequired
One of:
string
resultobject
errorobject
Response
application/json
{ "jsonrpc": "2.0", "id": "string", "result": { "author": "string", "header": {}, "receipts": [], "transactions": [] }, "error": { "code": 0, "message": "string", "data": {} } }