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 asview_state
.- Query
Chunk - Query object used to query for chunk related details at a specific
ChunkReference
which consists of either a chunkCryptoHash
, or aBlockShardId
(which consists ofShardId
and either blockCryptoHash
orBlockHeight
). - View
Access Key - View
Access KeyList - View
Account - View
Block - View
Code - View
Function - View
Result - 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.
- View
State
Traits§
- Process
Query - 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.