---
title: "POST /next_light_client_block"
method: POST
path: "/next_light_client_block"
---

# POST /next_light_client_block

`POST /next_light_client_block`

Returns the next light client block.

## Request body

- JsonRpcRequestForNextLightClientBlock
  - `id` string — JSON-RPC request id. Auto-populated; can be any string.
  - `jsonrpc` '2.0' — JSON-RPC protocol version. Always `2.0`.
  - `method` 'next_light_client_block', required
  - `params` RpcLightClientNextBlockRequest, required
    - `last_block_hash` string, required

## Response `200`

- union
  - object
    - `result` RpcLightClientNextBlockResponse, required — A state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient).
      - `approvals_after_next` union[]
        - union
          - string
          - unknown
      - `inner_lite` BlockHeaderInnerLiteView — 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, required
        - `epoch_id` string, required
        - `height` integer, required
        - `next_bp_hash` string, required
        - `next_epoch_id` string, required
        - `outcome_root` string, required
        - `prev_state_root` string, required
        - `timestamp` integer, required — Legacy json number. Should not be used.
        - `timestamp_nanosec` string, required
      - `inner_rest_hash` string
      - `next_block_inner_hash` string
      - `next_bps` ValidatorStakeView[], nullable
        - `account_id` string, required — NEAR Account Identifier. This is a unique, syntactically valid, human-readable account identifier on the NEAR network. [See the crate-level docs for information about validation.](index.html#account-id-rules) Also see [Error kind precedence](AccountId#error-kind-precedence). ## Examples ``` use near_account_id::AccountId; let alice: AccountId = "alice.near".parse().unwrap(); assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f) ```
        - `public_key` string, required
        - `stake` string, required
        - `validator_stake_struct_version` 'V1', required
      - `prev_block_hash` string
    - `id` string, required
    - `jsonrpc` string, required
  - object
    - `error` union, required
      - object
        - `cause` union, required
          - object
            - `info` object, required
              - …
            - `name` 'METHOD_NOT_FOUND', required
          - object
            - `info` object, required
              - …
            - `name` 'PARSE_ERROR', required
        - `name` 'REQUEST_VALIDATION_ERROR', required
      - object
        - `cause` union, required
          - object
            - `info` object, required
              - …
            - `name` 'INTERNAL_ERROR', required
          - object
            - `info` object, required
            - `name` 'UNKNOWN_BLOCK', required
          - object
            - `info` object, required
              - …
            - `name` 'EPOCH_OUT_OF_BOUNDS', required
        - `name` 'HANDLER_ERROR', required
      - object
        - `cause` InternalError, required
          - `info` object, required
            - `error_message` string, required
          - `name` 'INTERNAL_ERROR', required
        - `name` 'INTERNAL_ERROR', required
    - `id` string, required
    - `jsonrpc` string, required

---

[API](https://skmtc.net/near/apis/near-protocol-json-rpc-api.md) · [All operations](https://skmtc.net/near/apis/near-protocol-json-rpc-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/near/near-protocol-json-rpc-api/versions/cb6bdde6167d/schema)
