Module query

Module query 

Source
Expand description

This module defines a bunch of internal types used solely for querying into RPC methods to retrieve info about what’s on the chain. Note that the types defined are exposed as-is for users to reference in their own functions or structs as needed. These types cannot be created outside of near_fetch.

Structs§

GasPrice
Query
Query object allows creating queries into the network of our choice. This object is usually given from making calls from other functions such as view_state.
QueryChunk
Query object used to query for chunk related details at a specific ChunkReference which consists of either a chunk CryptoHash, or a BlockShardId (which consists of ShardId and either block CryptoHash or BlockHeight).
ViewAccessKey
ViewAccessKeyList
ViewAccount
ViewBlock
ViewCode
ViewFunction
ViewResult
The result from a call into a View function. This contains the contents or the results from the view function call itself. The consumer of this object can choose how to deserialize its contents.
ViewState

Traits§

ProcessQuery
Trait used as a high level APIs for consistent usages of block reference. Mostly used internally to facilitate syntax sugar for performing RPC requests with async builders.