Light Client Proof
light_client_proof request type
Fetch a Merkle proof — by Base58 transaction or receipt ID — that the item was included and executed, suitable for light-client verification.
light_client_proof request type
Fetch a Merkle proof — by Base58 transaction or receipt ID — that the item was included and executed, suitable for light-client verification.
Responses from the selected endpoint appear here after you run a request.
Live response output will appear here after you run a request.
This operation accepts a JSON-RPC body over POST to /.
Required request inputs: yes
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "light_client_proof",
"params": {
"type": "receipt",
"transaction_hash": "34E7weKCDqXh3xPKdBgSWRqo44yTWjbka9deMK8JbAxx",
"sender_id": "escrow.ai.near",
"light_client_head": "9XN7MtDywZvfGx6TKy1MT2iCZkKuHikJXmNazxdZ4x6T"
}
}jsonrpc *string2.0id *stringmethod *stringlight_client_proofparams *objectlight_client_head *stringBase58-encoded hash
sender_idstringNEAR account ID
transaction_hashstringBase58-encoded hash
typestringProof subject — receipt proves inclusion of a specific receipt produced during execution.
receiptreceipt_idstringBase58-encoded hash
receiver_idstringNEAR account ID
Successful response
jsonrpc *string2.0id *one ofresultobjectblock_header_lite *objectinner_lite *objectA part of a state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient).
inner_rest_hash *stringBase58-encoded hash
prev_block_hash *stringBase58-encoded hash
block_proof *arrayitemsobjectoutcome_proof *objectblock_hash *stringBase58-encoded hash
id *stringBase58-encoded hash
outcome *objectproof *arrayitemsobjectoutcome_root_proof *arrayitemsobjecterrorobjectcodeintegermessagestringdataobject