pub trait JsonRpcClientExt {
    // Required methods
    fn blocking_call<M>(&self, _: M) -> MethodCallResult<M::Response, M::Error>
       where M: RpcMethod;
    fn blocking_call_view_function(
        &self,
        _: &AccountId,
        _: &str,
        _: Vec<u8>,
        _: BlockReference
    ) -> Result<CallResult, Error>;
    fn blocking_call_view_access_key(
        &self,
        _: &AccountId,
        _: &PublicKey,
        _: BlockReference
    ) -> Result<RpcQueryResponse, JsonRpcError<RpcQueryError>>;
    fn blocking_call_view_access_key_list(
        &self,
        _: &AccountId,
        _: BlockReference
    ) -> Result<RpcQueryResponse, JsonRpcError<RpcQueryError>>;
    fn blocking_call_view_account(
        &self,
        _: &AccountId,
        _: BlockReference
    ) -> Result<RpcQueryResponse, JsonRpcError<RpcQueryError>>;
}

Required Methods§

source

fn blocking_call<M>(&self, _: M) -> MethodCallResult<M::Response, M::Error>
where M: RpcMethod,

source

fn blocking_call_view_function( &self, _: &AccountId, _: &str, _: Vec<u8>, _: BlockReference ) -> Result<CallResult, Error>

A helper function to make a view-funcation call using JSON encoding for the function arguments and function return value.

source

fn blocking_call_view_access_key( &self, _: &AccountId, _: &PublicKey, _: BlockReference ) -> Result<RpcQueryResponse, JsonRpcError<RpcQueryError>>

source

fn blocking_call_view_access_key_list( &self, _: &AccountId, _: BlockReference ) -> Result<RpcQueryResponse, JsonRpcError<RpcQueryError>>

source

fn blocking_call_view_account( &self, _: &AccountId, _: BlockReference ) -> Result<RpcQueryResponse, JsonRpcError<RpcQueryError>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl JsonRpcClientExt for JsonRpcClient

Implementors§