Skip to main content

Next Light Client Block

next_light_client_block request type

This endpoint allows you to get the next light client block 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": "next_light_client_block",
  "params": {
    "last_block_hash": "6sddgq8nkENAz4f8qR72qxRPM25QWNBVMrkYr63DgC2E"
  }
}

Request schema

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

Example: fastnear

method *string
next_light_client_block
params *object
requires last_block_hash
last_block_hash *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

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

approvals_after_nextarray
itemsstringnullable

Base58-encoded cryptographic signature

inner_liteobject
requires height, epoch_id, next_epoch_id, prev_state_root, outcome_root, timestamp, timestamp_nanosec, next_bp_hash, block_merkle_root

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

block_merkle_root *string

Base58-encoded hash

epoch_id *string

Base58-encoded hash

height *integer
next_bp_hash *string

Base58-encoded hash

next_epoch_id *string

Base58-encoded hash

outcome_root *string

Base58-encoded hash

prev_state_root *string

Base58-encoded hash

timestamp *integer

Legacy json number. Should not be used.

timestamp_nanosec *string
inner_rest_hashstring

Base58-encoded hash

next_block_inner_hashstring

Base58-encoded hash

next_bpsarray
itemsobject

One of multiple possible types

prev_block_hashstring

Base58-encoded hash

errorobject
codeinteger
messagestring
dataobject