View Access Key
view_access_key request type
This endpoint allows you to view a specific access key for an account on the NEAR blockchain.
Live Response
Responses from the selected endpoint appear here after you run a request.
Live response output will appear here after you run a request.
Request reference
application/jsonThis operation accepts a JSON-RPC body over POST to /.
Required request inputs: yes
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "query",
"params": {
"account_id": "root.near",
"public_key": "ed25519:CByX7HPjgSGFi5G26zwgZGDFCFyBHvSv1fe7AFzmVe3",
"request_type": "view_access_key",
"finality": "final"
}
}Request schema
object
requires jsonrpc, id, method, paramsjsonrpc *string2.0id *stringmethod *stringqueryparams *objectaccount_id *stringNEAR account ID
public_key *stringed25519: or secp256k1: prefixed public key
request_type *stringview_access_keyfinality *stringBlock finality
finalnear-finaloptimisticResponse reference
200 application/jsonSuccessful response
Response schema
objectJsonRpcResponse
requires jsonrpc, idjsonrpc *string2.0id *one ofstringnumber
resultobjectDescribes access key permission scope and nonce.
nonce *integerpermission *objectOne of multiple possible types
errorobjectcodeintegermessagestringdataobject