NEAR Protocol RPC: Light Client Proof (1.0.0)

Retrieve light client proof data for transaction verification

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

Get light client proof

Request

Retrieves verification proof data for light clients

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

Base58-encoded hash

params.​sender_idstring

NEAR account ID

params.​transaction_hashstring

Base58-encoded hash

params.​typestring
Value"receipt"
params.​receipt_idstring

Base58-encoded hash

params.​receiver_idstring

NEAR account ID

curl -i -X POST \
  https://rpc.mainnet.fastnear.com/ \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": "fastnear",
    "method": "light_client_proof",
    "params": {
      "type": "receipt",
      "transaction_hash": "8a8HR2Gf8NkLLeNcuHet4JeEz9kWa1fhs6qAnBdiewrR",
      "sender_id": "0-relay.hot.tg",
      "light_client_head": "BnHU4MCqsNVgLRCiZteef85VYxCbNzwkWEo1cEG8Z6VX"
    }
  }'

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": { "block_header_lite": {}, "block_proof": [], "outcome_proof": {}, "outcome_root_proof": [] }, "error": { "code": 0, "message": "string", "data": {} } }