v7

latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-2138342633.5 KB

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 AccessKey of an account
  • View the AccessKeyList of an account
  • Call a function in a contract deployed on the network.
post/query

Request body

idstring

JSON-RPC request id. Auto-populated; can be any string.

jsonrpc'2.0'

JSON-RPC protocol version. Always 2.0.

method'query' required

Response

OR