pub trait TransactionPaymentApi<BlockHash, ResponseType>: Sized + Send + Sync + 'static {
fn query_info(
&self,
encoded_xt: Bytes,
at: Option<BlockHash>
) -> Result<ResponseType>;
fn query_fee_details(
&self,
encoded_xt: Bytes,
at: Option<BlockHash>
) -> Result<FeeDetails<NumberOrHex>>;
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
where
BlockHash: Send + Sync + 'static + DeserializeOwned,
ResponseType: Send + Sync + 'static + Serialize,
{ ... }
}
Required methods
fn query_info(
&self,
encoded_xt: Bytes,
at: Option<BlockHash>
) -> Result<ResponseType>
fn query_fee_details(
&self,
encoded_xt: Bytes,
at: Option<BlockHash>
) -> Result<FeeDetails<NumberOrHex>>
Provided methods
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> where
BlockHash: Send + Sync + 'static + DeserializeOwned,
ResponseType: Send + Sync + 'static + Serialize,
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> where
BlockHash: Send + Sync + 'static + DeserializeOwned,
ResponseType: Send + Sync + 'static + Serialize,
Create an IoDelegate
, wiring rpc calls to the trait methods.