Module near_fetch::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
Queryobject allows creating queries into the network of our choice. This object is usually given from making calls from other functions such asview_state.- Query object used to query for chunk related details at a specific
ChunkReferencewhich consists of either a chunk [CryptoHash], or aBlockShardId(which consists of [ShardId] and either block [CryptoHash] or [BlockHeight]).
Traits
- Trait used as a converter from WorkspaceRequest to near-rpc request, and from near-rpc response to a WorkspaceResult. Mostly used internally to facilitate syntax sugar for performing RPC requests with async builders.