Skip to main content

Light Client Block Proof (Experimental)

EXPERIMENTAL_light_client_block_proof request type

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

Network
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_block_proof",
  "params": {
    "block_hash": "8fbT7nWhBwsBJjPcwhv2uqzseFJSd5Y4XcqfLAWryBsu",
    "light_client_head": "6sddgq8nkENAz4f8qR72qxRPM25QWNBVMrkYr63DgC2E"
  }
}

Request schema

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

Example: fastnear

method *string
EXPERIMENTAL_light_client_block_proof
params *object
requires block_hash, light_client_head
block_hash *string

Base58-encoded hash

light_client_head *string

Base58-encoded hash

Response reference

200 application/json

Successful response

Response schema

objectJsonRpcResponse
requires jsonrpc, id
jsonrpc *string
2.0
id *one of
stringnumber
resultobject
requires 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
errorobject
codeinteger
messagestring
dataobject