NEAR Protocol RPC: Get next light client block (1.0.0)

Returns the next light client block

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

Get next light client block

Request

Returns the next light client block

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

Base58-encoded hash

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

Responses

Successful response

Bodyapplication/json
jsonrpcstringrequired
Value"2.0"
idstring or numberrequired
One of:
string
resultobject

A state for the current head of a light client. More info here.

errorobject
Response
application/json
{ "jsonrpc": "2.0", "id": "string", "result": { "approvals_after_next": [], "inner_lite": {}, "inner_rest_hash": "string", "next_block_inner_hash": "string", "next_bps": [], "prev_block_hash": "string" }, "error": { "code": 0, "message": "string", "data": {} } }