Skip to main content
POST
/
next_light_client_block
cURL
curl --request POST \
  --url https://api.example.com/next_light_client_block \
  --header 'Content-Type: application/json' \
  --data '
{
  "params": {
    "last_block_hash": "<string>"
  },
  "id": "dontcare",
  "jsonrpc": "2.0"
}
'
{
  "result": {
    "approvals_after_next": [
      "<string>"
    ],
    "inner_lite": {
      "block_merkle_root": "<string>",
      "epoch_id": "<string>",
      "height": 1,
      "next_bp_hash": "<string>",
      "next_epoch_id": "<string>",
      "outcome_root": "<string>",
      "prev_state_root": "<string>",
      "timestamp": 1,
      "timestamp_nanosec": "<string>"
    },
    "inner_rest_hash": "<string>",
    "next_block_inner_hash": "<string>",
    "next_bps": [
      {
        "account_id": "<string>",
        "public_key": "<string>",
        "stake": "<string>"
      }
    ],
    "prev_block_hash": "<string>"
  },
  "id": "<string>",
  "jsonrpc": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.near.org/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
method
enum<string>
required
Available options:
next_light_client_block
params
RpcLightClientNextBlockRequest · object
required
id
string
default:dontcare

JSON-RPC request id. Auto-populated; can be any string.

jsonrpc
enum<string>
default:2.0

JSON-RPC protocol version. Always 2.0.

Available options:
2.0

Response

200 - application/json
result
object
required

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

id
string
required
jsonrpc
string
required