Trait unc_cli_rs::common::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§
fn blocking_call<M>(&self, _: M) -> MethodCallResult<M::Response, M::Error>where
M: RpcMethod,
sourcefn blocking_call_view_function(
&self,
_: &AccountId,
_: &str,
_: Vec<u8>,
_: BlockReference
) -> Result<CallResult, Error>
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.
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>>
Object Safety§
This trait is not object safe.