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

# POST /EXPERIMENTAL_view_account

`POST /EXPERIMENTAL_view_account`

## Request

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

Returns information about an account for given account_id.

## Request body

- JsonRpcRequestForEXPERIMENTALViewAccount
  - `id` string, required
  - `jsonrpc` string, required
  - `method` 'EXPERIMENTAL_view_account', 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) ```
    - 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) ```
    - 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) ```

## Response `200`

- union
  - object
    - `result` RpcViewAccountResponse, required: A view of the account
      - `amount` string, required: Liquid (non-staked) account balance, in yoctoNEAR.
      - `block_hash` string, required
      - `block_height` integer, required
      - `bootstrap_nonce` integer, nullable: The account's current bootstrap nonce, present only while it is uninitialized. A self-signed state init, the one transaction such an account can send, must use exactly `bootstrap_nonce + 1`. This is the only way for a client to learn it: there is no access key to query.
      - `code_hash` string, required: Hash of the deployed contract code; the all-`1`s hash when no contract is deployed.
      - `global_contract_account_id` string, nullable: 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) ```
      - `global_contract_hash` string, nullable
      - `locked` string, required: Staked balance locked for validation, in yoctoNEAR.
      - `state` 'initialized' | 'uninitialized': Whether the account is initialized. Only a universal account can be uninitialized: it has no access keys, code or data until a `UniversalStateInit` arrives. Omitted for initialized accounts.
      - `storage_paid_at` integer: Deprecated and unused. TODO(2271): remove.
      - `storage_usage` integer, required: Total storage used by the account, in bytes.
    - `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` 'UNKNOWN_BLOCK', required
          - object
            - `info` object, required
              - …
            - `name` 'INVALID_ACCOUNT', required
          - object
            - `info` object, required
              - …
            - `name` 'UNKNOWN_ACCOUNT', 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-09-02** `3fc4acf08461`: 2 info
  - added the optional property `oneOf[subschema #1]/result/bootstrap_nonce` to the response with the `200` status
  - added the optional property `oneOf[subschema #1]/result/state` to the response with the `200` status
- **2026-07-22** `1df5f0cc57a9`: 3 breaking, 3 info
  - the `oneOf[subschema #1]/result/amount` response's property type changed from `string` to no type for status `200`
  - the `oneOf[subschema #1]/result/code_hash` response's property type changed from `string` to no type for status `200`
  - the `oneOf[subschema #1]/result/locked` response's property type changed from `string` to no type for status `200`
  - added `#/components/schemas/CryptoHash` to the `oneOf[subschema #1]/result/code_hash` response property `allOf` list for the response status `200`
  - …2 more
- **2025-12-18** `9c26100c29c7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/changes/EXPERIMENTAL_view_account/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)
