query(view_account) - NEAR Protocol
Example code for the query(view_account) json-rpc method. Сomplete guide on how to use query(view_account) json-rpc in GetBlock.io Web3 documentation.
Supported Networks
Parameters
Request Example
https://go.getblock.io/<ACCESS_TOKEN>curl --location 'https://go.getblock.io/<ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0",
"method": "query",
"params": {"request_type": "view_account", "finality": "final", "account_id": "staked.poolv1.near", "method_name": "get_num"},
"id": "getblock.io"}'Response
Response Parameters
Use Cases
Code Example
Error Handling
Integration with Web3
Previousquery(view_access_key_list) {disallowed} - NEAR ProtocolNextquery(view_account_basic) - NEAR Protocol
Last updated
Was this helpful?