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.

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

JsonRpcRequestForQuery required
id, string required
jsonrpc, string required
method, 'query' required
params, union required

Response

union required
object required
OR
object required

Changes

    • breaking

      added subschema #10 subschema #11 to the oneOf[subschema #2]/error/oneOf[subschema #2]/cause/oneOf[subschema #15]/info/error/oneOf[subschema #1]/ActionError/kind/allOf[#/components/schemas/ActionErrorKind]/oneOf[subschema #14]/NewReceiptValidationError response property oneOf list for the response status

    • breaking

      added subschema #15 to the oneOf[subschema #2]/error/oneOf[subschema #2]/cause response property oneOf list for the response status