Network 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 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 required
jsonrpcstring required
method'query' required

Response

OR

Changes

No recorded changes to this endpoint across all 2 revisions of this API.