Retrieves all access keys (full access + function call keys) associated with a NEAR account.
Uses the query RPC method with request_type = "view_access_key_list".
Usage
near_get_access_keys(
account_id,
finality = c("final", "optimistic"),
block_id = NULL
)Value
A tibble with one row per access key:
- public_key
Ed25519 public key in base58 format (e.g.,
"ed25519:8z...")- access_key
List-column containing permission details:
nonce– current noncepermission– either"FullAccess"or aFunctionCallobject withallowance,receiver_id,method_names
- block_height, block_hash
context of the query
- raw_response
full RPC response for debugging
See also
https://docs.near.org/api/rpc/access-keys#view-access-key-list
https://docs.near.org/concepts/basics/accounts/access-keys
near_query_account() – to get account state including nonce
Examples
if (FALSE) { # \dontrun{
# Set endpoint first
near_set_endpoint("mainnet")
near_get_access_keys("vitalik.near")
} # }
