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

# POST /query

`POST /query`

## Request

- The document declares no server URL.
- Auth: none declared

This module allows you to make generic requests to the network.

The `RpcQueryRequest` struct takes in a [`BlockReference`](https://docs.rs/near-primitives/0.12.0/near_primitives/types/enum.BlockReference.html) and a [`QueryRequest`](https://docs.rs/near-primitives/0.12.0/near_primitives/views/enum.QueryRequest.html).

The `BlockReference` enum allows you to specify a block by `Finality`, `BlockId` or `SyncCheckpoint`.

The `QueryRequest` enum provides multiple variants for performing the following actions:
 - View an account's details
 - View a contract's code
 - View the state of an account
 - View the `AccessKey` of an account
 - View the `AccessKeyList` of an account
 - Call a function in a contract deployed on the network.

## Request body

- JsonRpcRequestForQuery
  - `id` string, required
  - `jsonrpc` string, required
  - `method` 'query', required
  - `params` union, required
    - object
      - `block_id` union, required
        - integer
        - string
      - `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) ```
      - `request_type` 'view_account', required
    - object
      - `block_id` union, required
        - integer
        - string
      - `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) ```
      - `request_type` 'view_code', required
    - object
      - `block_id` union, required
        - integer
        - string
      - `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) ```
      - `after_key_base64` string, bytes, nullable: This type is used to mark keys (arrays of bytes) that are queried from store. NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
      - `include_proof` boolean
      - `limit` integer, nullable
      - `prefix_base64` string, bytes, required: This type is used to mark keys (arrays of bytes) that are queried from store. NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
      - `request_type` 'view_state', required
    - object
      - `block_id` union, required
        - integer
        - string
      - `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
      - `request_type` 'view_access_key', required
    - object
      - `block_id` union, required
        - integer
        - string
      - `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) ```
      - `after_key` string, nullable
      - `limit` integer, nullable
      - `request_type` 'view_access_key_list', required
    - object
      - `block_id` union, required
        - integer
        - string
      - `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
      - `request_type` 'view_gas_key_nonces', required
    - object
      - `block_id` union, required
        - integer
        - string
      - `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) ```
      - `args_base64` string, bytes, required: This type is used to mark function arguments. NOTE: The main reason for this to exist (except the type-safety) is that the value is transparently serialized and deserialized as a base64-encoded string when serde is used (serde_json).
      - `method_name` string, required
      - `request_type` 'call_function', required
      - `state_init` union: The initial state of a `0s` or `0u` account, as its state-init action carries it.
        - object
          - `deterministic` object, required
            - `code` union, required
              - …
            - `data` object, required
        - object
          - `universal` string, required: Raw bytes containing borsh-serialized `UniversalStateInit`. This is the protocol's view of a state init, not a mere transport wrapper: the account ID is SHA3-256 over exactly these bytes. The typed form is a decoded *view* of them, used to install the state and to price the action, and it is never re-serialized to derive an ID. From `CanonicalUniversalStateInit` on, only the canonical encoding is accepted (see `UniversalStateInit::from_raw_strict`), so each logical value has one ID. It also lets an immutable contract pass through a `UniversalStateInit` version it predates: the bytes travel verbatim, so a version added after the contract was compiled still works. Borsh-serializing `RawStateInit` writes a 4-byte length prefix before the bytes, which is how the `UniversalStateInit` action carries it as a field; over serde the bytes are base64. Neither is what the account ID hashes: that is `self.0` alone, never `borsh::to_vec(self)`.
    - object
      - `block_id` union, required
        - integer
        - string
      - `code_hash` string, required
      - `request_type` 'view_global_contract_code', required
    - object
      - `block_id` union, required
        - integer
        - string
      - `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) ```
      - `request_type` 'view_global_contract_code_by_account_id', required
    - object
      - `finality` 'optimistic' | 'near-final' | 'final', required: Different types of finality.
      - `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) ```
      - `request_type` 'view_account', required
    - object
      - `finality` 'optimistic' | 'near-final' | 'final', required: Different types of finality.
      - `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) ```
      - `request_type` 'view_code', required
    - object
      - `finality` 'optimistic' | 'near-final' | 'final', required: Different types of finality.
      - `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) ```
      - `after_key_base64` string, bytes, nullable: This type is used to mark keys (arrays of bytes) that are queried from store. NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
      - `include_proof` boolean
      - `limit` integer, nullable
      - `prefix_base64` string, bytes, required: This type is used to mark keys (arrays of bytes) that are queried from store. NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
      - `request_type` 'view_state', required
    - object
      - `finality` 'optimistic' | 'near-final' | 'final', required: Different types of finality.
      - `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
      - `request_type` 'view_access_key', required
    - object
      - `finality` 'optimistic' | 'near-final' | 'final', required: Different types of finality.
      - `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) ```
      - `after_key` string, nullable
      - `limit` integer, nullable
      - `request_type` 'view_access_key_list', required
    - object
      - `finality` 'optimistic' | 'near-final' | 'final', required: Different types of finality.
      - `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
      - `request_type` 'view_gas_key_nonces', required
    - object
      - `finality` 'optimistic' | 'near-final' | 'final', required: Different types of finality.
      - `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) ```
      - `args_base64` string, bytes, required: This type is used to mark function arguments. NOTE: The main reason for this to exist (except the type-safety) is that the value is transparently serialized and deserialized as a base64-encoded string when serde is used (serde_json).
      - `method_name` string, required
      - `request_type` 'call_function', required
      - `state_init` union: The initial state of a `0s` or `0u` account, as its state-init action carries it.
        - object
          - `deterministic` object, required
            - `code` union, required
              - …
            - `data` object, required
        - object
          - `universal` string, required: Raw bytes containing borsh-serialized `UniversalStateInit`. This is the protocol's view of a state init, not a mere transport wrapper: the account ID is SHA3-256 over exactly these bytes. The typed form is a decoded *view* of them, used to install the state and to price the action, and it is never re-serialized to derive an ID. From `CanonicalUniversalStateInit` on, only the canonical encoding is accepted (see `UniversalStateInit::from_raw_strict`), so each logical value has one ID. It also lets an immutable contract pass through a `UniversalStateInit` version it predates: the bytes travel verbatim, so a version added after the contract was compiled still works. Borsh-serializing `RawStateInit` writes a 4-byte length prefix before the bytes, which is how the `UniversalStateInit` action carries it as a field; over serde the bytes are base64. Neither is what the account ID hashes: that is `self.0` alone, never `borsh::to_vec(self)`.
    - object
      - `finality` 'optimistic' | 'near-final' | 'final', required: Different types of finality.
      - `code_hash` string, required
      - `request_type` 'view_global_contract_code', required
    - object
      - `finality` 'optimistic' | 'near-final' | 'final', required: Different types of finality.
      - `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) ```
      - `request_type` 'view_global_contract_code_by_account_id', required
    - object
      - `sync_checkpoint` 'genesis' | 'earliest_available', required
      - `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) ```
      - `request_type` 'view_account', required
    - object
      - `sync_checkpoint` 'genesis' | 'earliest_available', required
      - `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) ```
      - `request_type` 'view_code', required
    - object
      - `sync_checkpoint` 'genesis' | 'earliest_available', required
      - `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) ```
      - `after_key_base64` string, bytes, nullable: This type is used to mark keys (arrays of bytes) that are queried from store. NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
      - `include_proof` boolean
      - `limit` integer, nullable
      - `prefix_base64` string, bytes, required: This type is used to mark keys (arrays of bytes) that are queried from store. NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
      - `request_type` 'view_state', required
    - object
      - `sync_checkpoint` 'genesis' | 'earliest_available', required
      - `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
      - `request_type` 'view_access_key', required
    - object
      - `sync_checkpoint` 'genesis' | 'earliest_available', required
      - `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) ```
      - `after_key` string, nullable
      - `limit` integer, nullable
      - `request_type` 'view_access_key_list', required
    - object
      - `sync_checkpoint` 'genesis' | 'earliest_available', required
      - `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
      - `request_type` 'view_gas_key_nonces', required
    - object
      - `sync_checkpoint` 'genesis' | 'earliest_available', required
      - `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) ```
      - `args_base64` string, bytes, required: This type is used to mark function arguments. NOTE: The main reason for this to exist (except the type-safety) is that the value is transparently serialized and deserialized as a base64-encoded string when serde is used (serde_json).
      - `method_name` string, required
      - `request_type` 'call_function', required
      - `state_init` union: The initial state of a `0s` or `0u` account, as its state-init action carries it.
        - object
          - `deterministic` object, required
            - `code` union, required
              - …
            - `data` object, required
        - object
          - `universal` string, required: Raw bytes containing borsh-serialized `UniversalStateInit`. This is the protocol's view of a state init, not a mere transport wrapper: the account ID is SHA3-256 over exactly these bytes. The typed form is a decoded *view* of them, used to install the state and to price the action, and it is never re-serialized to derive an ID. From `CanonicalUniversalStateInit` on, only the canonical encoding is accepted (see `UniversalStateInit::from_raw_strict`), so each logical value has one ID. It also lets an immutable contract pass through a `UniversalStateInit` version it predates: the bytes travel verbatim, so a version added after the contract was compiled still works. Borsh-serializing `RawStateInit` writes a 4-byte length prefix before the bytes, which is how the `UniversalStateInit` action carries it as a field; over serde the bytes are base64. Neither is what the account ID hashes: that is `self.0` alone, never `borsh::to_vec(self)`.
    - object
      - `sync_checkpoint` 'genesis' | 'earliest_available', required
      - `code_hash` string, required
      - `request_type` 'view_global_contract_code', required
    - object
      - `sync_checkpoint` 'genesis' | 'earliest_available', required
      - `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) ```
      - `request_type` 'view_global_contract_code_by_account_id', required

## Response `200`

- union
  - object
    - `result` union, required
      - intersection
        - [`AccountView`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FAccountView)
        - object
          - `block_hash` string, required
          - `block_height` integer, required
      - intersection
        - [`ContractCodeView`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FContractCodeView)
        - object
          - `block_hash` string, required
          - `block_height` integer, required
      - intersection
        - [`ViewStateResult`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FViewStateResult)
        - object
          - `block_hash` string, required
          - `block_height` integer, required
      - intersection
        - [`CallResult`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FCallResult)
        - object
          - `block_hash` string, required
          - `block_height` integer, required
      - intersection
        - [`AccessKeyView`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FAccessKeyView)
        - object
          - `block_hash` string, required
          - `block_height` integer, required
      - intersection
        - [`AccessKeyList`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FAccessKeyList)
        - object
          - `block_hash` string, required
          - `block_height` integer, required
      - intersection
        - [`GasKeyNoncesView`](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57/schema?at=%2Fcomponents%2Fschemas%2FGasKeyNoncesView)
        - object
          - `block_hash` string, required
          - `block_height` integer, required
    - `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
            - `name` 'NO_SYNCED_BLOCKS', required
          - object
            - `info` object, required
              - …
            - `name` 'UNAVAILABLE_SHARD', required
          - object
            - `info` object, required
              - …
            - `name` 'GARBAGE_COLLECTED_BLOCK', required
          - object
            - `info` object, required
              - …
            - `name` 'UNKNOWN_BLOCK', required
          - object
            - `info` object, required
              - …
            - `name` 'INVALID_ACCOUNT', required
          - object
            - `info` object, required
              - …
            - `name` 'UNKNOWN_ACCOUNT', required
          - object
            - `info` object, required
              - …
            - `name` 'UNINITIALIZED_ACCOUNT', required
          - object
            - `info` object, required
              - …
            - `name` 'INVALID_STATE_INIT', required
          - object
            - `info` object, required
              - …
            - `name` 'NO_CONTRACT_CODE', required
          - object
            - `info` object, required
              - …
            - `name` 'TOO_LARGE_CONTRACT_STATE', required
          - object
            - `info` object, required
              - …
            - `name` 'UNKNOWN_ACCESS_KEY', required
          - object
            - `info` object, required
              - …
            - `name` 'UNKNOWN_GAS_KEY', required
          - object
            - `info` object, required
              - …
            - `name` 'TOO_MANY_ACCESS_KEYS', required
          - object
            - `info` object, required
              - …
            - `name` 'CONTRACT_EXECUTION_ERROR', required
          - object
            - `info` object, required
              - …
            - `name` 'EXTERNAL_CALL_REFUSED', required
          - object
            - `info` object, required
              - …
            - `name` 'NO_GLOBAL_CONTRACT_CODE', required
          - object
            - `info` object, required
              - …
            - `name` 'INTERNAL_ERROR', 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

## Changes

- **2026-11-16** `1ce6181198ef`: 1 breaking
  - added `subschema #10, subschema #11` to the `oneOf[subschema #2]/error/oneOf[subschema #2]/cause/oneOf[subschema #15]/info/error/oneOf[subschema #1]/ActionError/kind/allOf[#/components/schemas/ActionErrorKind]/oneOf[subschema #14]/NewReceiptValidationError` response property `oneOf` list for the response status `200`
- **2026-11-16** `a634a6925baf`: 1 breaking
  - added `subschema #15` to the `oneOf[subschema #2]/error/oneOf[subschema #2]/cause` response property `oneOf` list for the response status `200`
- **2026-11-12** `79ed36295796`: 1 breaking
  - added `subschema #32` to the `oneOf[subschema #2]/error/oneOf[subschema #2]/cause/oneOf[subschema #8]/info/error` response property `oneOf` list for the response status `200`
- **2026-11-11** `4c768e7e42ba`: 1 breaking, 3 info
  - added `subschema #8` to the `oneOf[subschema #2]/error/oneOf[subschema #2]/cause` response property `oneOf` list for the response status `200`
  - added the new optional request property `params/oneOf[subschema #16: call_function_by_finality]/allOf[subschema #2]/state_init`
  - added the new optional request property `params/oneOf[subschema #25: call_function_by_sync_checkpoint]/allOf[subschema #2]/state_init`
  - added the new optional request property `params/oneOf[subschema #7: call_function_by_block_id]/allOf[subschema #2]/state_init`
- …earlier changes not shown

[Operation history](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/changes/query/post.md)

---

[API](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3.md) - [All operations](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57?raw)
