Trait JsonRpcClientExt

Source
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>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl JsonRpcClientExt for JsonRpcClient

Implementors§