Struct workspaces::rpc::query::ViewBlock
source · pub struct ViewBlock;
Trait Implementations§
source§impl ProcessQuery for ViewBlock
impl ProcessQuery for ViewBlock
§type Method = RpcBlockRequest
type Method = RpcBlockRequest
Method for doing the internal RPC request to the network of our choosing.
§type Output = Block
type Output = Block
Expected output after performing a query. This is mainly to convert over
the type from near-primitives to a workspace type. Read more
source§fn into_request(self, block_reference: BlockReference) -> Result<Self::Method>
fn into_request(self, block_reference: BlockReference) -> Result<Self::Method>
Convert into the Request object that is required to perform the RPC request.