POSTview_access_key
https://near-mainnet.nodit.io/Returns the current nonce and permission (full access, function call, or gas key) of a single access key registered on an account. Use it to pick the next nonce before signing a transaction or to check what a key is allowed to do.
Call the query method with request_type: "view_access_key", passing account_id and public_key. If the public key is not registered on the account, it returns the UNKNOWN_ACCESS_KEY error; querying an account that does not exist returns the UNKNOWN_ACCOUNT error.
Request ID. Any string; it is returned unchanged in the response.
Query type. Fixed to view_access_key for looking up a single access key.
Specifies the block finality. Cannot be used together with block_id.
optimistic: the latest block the node has received (may be reorganized)near-final: a Doomslug-final block (not reverted in most cases)final: a fully finalized block
Specifies the block to query by block height (integer) or block hash (base58 string).
Cannot be used together with finality.
NEAR account ID. A human-readable name (e.g. wrap.near) or a 64-character hex implicit account ID.
Base58-encoded public key prefixed with ed25519: or secp256k1:.
JSON-RPC version
Request ID
Current nonce of the key. The next transaction signed with this key must use a nonce greater than this value.
Access key permission. The format depends on the key type.
"FullAccess": a key that can perform any action on the account (string){"FunctionCall": {...}}: a key that can only call methods on the specified contract{"GasKeyFullAccess": {...}}: a gas key that can perform any action (an access key prefunded with NEAR to pay for gas){"GasKeyFunctionCall": {...}}: a gas key that can only make function calls
Gas fee allowance this key can spend (yoctoNEAR, decimal string). null means unlimited.
Contract account ID this key can call
Method names this key can call. An empty array allows calling any method on receiver_id.
Balance funded to the gas key (yoctoNEAR, decimal string)
Number of parallel nonce lanes of the gas key (0–65535)
An object with the same allowance, receiver_id, and method_names as FunctionCall, plus the gas key's balance and num_nonces.
Balance funded to the gas key (yoctoNEAR, decimal string)
Number of parallel nonce lanes of the gas key (0–65535)
Gas fee allowance this key can spend (yoctoNEAR, decimal string). null means unlimited.
Contract account ID this key can call
Method names this key can call. An empty array allows calling any method on receiver_id.
Block height.
Example: 220785385
Base58-encoded 32-byte hash (block hash, chunk hash, transaction hash, etc.).
Example: 8EjuQRnAJiWkRmqxfexQFJWXXonuSMbz5AZziJLCWnWS
Error class. REQUEST_VALIDATION_ERROR (invalid request), HANDLER_ERROR (processing error), INTERNAL_ERROR (node internal error)
The specific cause of the error.
Name of the error cause (e.g. UNKNOWN_BLOCK, UNKNOWN_ACCOUNT, PARSE_ERROR)
Additional information about the error (block hash, height, account ID, etc.)
Legacy JSON-RPC error code (e.g. -32000 server error, -32700 parse error, -32601 method not found)
Legacy error message
Legacy error details