Skip to main content

Light Client Execution Proof (Experimental)

EXPERIMENTAL_light_client_proof request type

This endpoint allows you to get a light client execution proof on the NEAR blockchain.

Network
TypeRequest body field
FastNear API keyNo saved key
Get API key
Endpointhttps://rpc.mainnet.fastnear.com
Authnone detected
Live Response

Responses from the selected endpoint appear here after you run a request.

Live response output will appear here after you run a request.

Request reference

application/json

This operation accepts a JSON-RPC body over POST to /.

Required request inputs: yes

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "EXPERIMENTAL_light_client_proof",
  "params": {
    "light_client_head": "6sddgq8nkENAz4f8qR72qxRPM25QWNBVMrkYr63DgC2E",
    "sender_id": "intents.near",
    "transaction_hash": "4EQZ5qoEJUbz8SRNkNwrAPtsn2VFhg9Ci1weaNNpiuR7",
    "type": "transaction"
  }
}

Request schema

object
requires jsonrpc, id, method, params
jsonrpc *string
2.0
id *string

Example: fastnear

method *string
EXPERIMENTAL_light_client_proof
params *object
requires light_client_head
light_client_head *string

Base58-encoded hash

sender_idstring

NEAR account ID

transaction_hashstring

Base58-encoded hash

typestring
transaction

Response reference

200 application/json

Successful response

Response schema

objectJsonRpcResponse
requires jsonrpc, id
jsonrpc *string
2.0
id *one of
stringnumber
resultobject
requires outcome_proof, outcome_root_proof, block_header_lite, block_proof
block_header_lite *object
requires prev_block_hash, inner_rest_hash, inner_lite
inner_lite *object

A part of a state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient).

inner_rest_hash *string

Base58-encoded hash

prev_block_hash *string

Base58-encoded hash

block_proof *array
itemsobject
outcome_proof *object
requires proof, block_hash, id, outcome
block_hash *string

Base58-encoded hash

id *string

Base58-encoded hash

outcome *object
proof *array
itemsobject
outcome_root_proof *array
itemsobject
errorobject
codeinteger
messagestring
dataobject