View Account
view_account request type
This endpoint allows you to view account information 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",
"request_type": "view_account",
"finality": "final"
}
}Request schema
object
requires jsonrpc, id, method, paramsjsonrpc *string2.0id *stringmethod *stringqueryparams *objectaccount_id *stringNEAR account ID
request_type *stringview_accountfinality *stringBlock finality
finalnear-finaloptimisticResponse reference
200 application/jsonSuccessful response
Response schema
objectJsonRpcResponse
requires jsonrpc, idjsonrpc *string2.0id *one ofstringnumber
resultobjectA view of the account
amount *stringAmount in yoctoNEAR
code_hash *stringBase58-encoded hash
global_contract_account_idstringnullableNEAR account ID
global_contract_hashstringnullableBase58-encoded hash
locked *stringAmount in yoctoNEAR
storage_paid_atintegerTODO(2271): deprecated.
storage_usage *integererrorobjectcodeintegermessagestringdataobject