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

# POST /EXPERIMENTAL_view_access_key

`POST /EXPERIMENTAL_view_access_key`

## Request

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

Returns information about a single access key for given account.

## Request body

- JsonRpcRequestForEXPERIMENTALViewAccessKey
  - `id` string, required
  - `jsonrpc` string, required
  - `method` 'EXPERIMENTAL_view_access_key', 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) ```
      - `public_key` string, 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
    - 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

## Response `200`

- union
  - object
    - `result` RpcViewAccessKeyResponse, required: Describes access key permission scope and nonce.
      - `block_hash` string, required
      - `block_height` integer, required
      - `nonce` integer, required: Current nonce; each transaction signed with this key must use a strictly greater value.
      - `permission` union, required: Access scope: full access, or a function-call permission with an optional allowance and method/receiver limits.
        - 'FullAccess'
        - object
          - `FunctionCall` object, required
            - `allowance` string, nullable
            - `method_names` string[], required
            - `receiver_id` string, required
        - object
          - `GasKeyFunctionCall` object, required
            - `allowance` string, nullable
            - `balance` string, required
            - `method_names` string[], required
            - `num_nonces` integer, required
            - `receiver_id` string, required
        - object
          - `GasKeyFullAccess` object, required
            - `balance` string, required
            - `num_nonces` 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
            - `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` 'UNKNOWN_ACCESS_KEY', 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-06** `d1370d8e7a8c`: 1 breaking
  - added `subschema #4` to the `oneOf[subschema #2]/error/oneOf[subschema #2]/cause` response property `oneOf` list for the response status `200`
- **2026-07-22** `1df5f0cc57a9`: 2 info
  - added `#/components/schemas/AccessKeyPermissionView` to the `oneOf[subschema #1]/result/permission` response property `allOf` list for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3, subschema #4` from the `oneOf[subschema #1]/result/permission` response property `oneOf` list for the response status `200`
- **2026-02-03** `04568e183378`: 1 breaking, 1 info
  - added `subschema #3, subschema #4` to the `oneOf[subschema #1]/result/permission` response property `oneOf` list for the response status `200`
  - removed `subschema #3, subschema #4` from the `oneOf[subschema #1]/result/permission` response property `oneOf` list for the response status `200`
- **2026-01-19** `9c637c1c6cf0`: 1 breaking
  - added `subschema #3, subschema #4` to the `oneOf[subschema #1]/result/permission` response property `oneOf` list for the response status `200`
- **2025-12-18** `9c26100c29c7`: 1 info
  - endpoint added

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