cURL
Post query
This module allows you to make generic requests to the network.
The RpcQueryRequest struct takes in a BlockReference and a QueryRequest.
The BlockReference enum allows you to specify a block by Finality, BlockId or SyncCheckpoint.
The QueryRequest enum provides multiple variants for performing the following actions:
- View an account’s details
- View a contract’s code
- View the state of an account
- View the
AccessKeyof an account - View the
AccessKeyListof an account - Call a function in a contract deployed on the network.
POST
cURL
Documentation Index
Fetch the complete documentation index at: https://docs.near.org/llms.txt
Use this file to discover all available pages before exploring further.
Body
application/json
Available options:
query - view_account_by_block_id
- view_code_by_block_id
- view_state_by_block_id
- view_access_key_by_block_id
- view_access_key_list_by_block_id
- view_gas_key_nonces_by_block_id
- call_function_by_block_id
- view_global_contract_code_by_block_id
- view_global_contract_code_by_account_id_by_block_id
- view_account_by_finality
- view_code_by_finality
- view_state_by_finality
- view_access_key_by_finality
- view_access_key_list_by_finality
- view_gas_key_nonces_by_finality
- call_function_by_finality
- view_global_contract_code_by_finality
- view_global_contract_code_by_account_id_by_finality
- view_account_by_sync_checkpoint
- view_code_by_sync_checkpoint
- view_state_by_sync_checkpoint
- view_access_key_by_sync_checkpoint
- view_access_key_list_by_sync_checkpoint
- view_gas_key_nonces_by_sync_checkpoint
- call_function_by_sync_checkpoint
- view_global_contract_code_by_sync_checkpoint
- view_global_contract_code_by_account_id_by_sync_checkpoint
JSON-RPC request id. Auto-populated; can be any string.
JSON-RPC protocol version. Always 2.0.
Available options:
2.0