referrerpolicy=no-referrer-when-downgrade
pallet_transaction_payment_rpc

Trait TransactionPaymentApiServer

Source
pub trait TransactionPaymentApiServer<BlockHash, ResponseType>:
    Sized
    + Send
    + Sync
    + 'static {
    // Required methods
    fn query_info(
        &self,
        encoded_xt: Bytes,
        at: Option<BlockHash>,
    ) -> RpcResult<ResponseType>;
    fn query_fee_details(
        &self,
        encoded_xt: Bytes,
        at: Option<BlockHash>,
    ) -> RpcResult<FeeDetails<NumberOrHex>>;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self>
       where BlockHash: Send + Sync + 'static + DeserializeOwned,
             ResponseType: Send + Sync + 'static + Clone + Serialize { ... }
}
Expand description

Server trait implementation for the TransactionPaymentApi RPC API.

Required Methods§

Source

fn query_info( &self, encoded_xt: Bytes, at: Option<BlockHash>, ) -> RpcResult<ResponseType>

Source

fn query_fee_details( &self, encoded_xt: Bytes, at: Option<BlockHash>, ) -> RpcResult<FeeDetails<NumberOrHex>>

Provided Methods§

Source

fn into_rpc(self) -> RpcModule<Self>
where BlockHash: Send + Sync + 'static + DeserializeOwned, ResponseType: Send + Sync + 'static + Clone + Serialize,

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

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.

Implementors§

Source§

impl<C, Block, Balance> TransactionPaymentApiServer<<Block as Block>::Hash, RuntimeDispatchInfo<Balance>> for TransactionPayment<C, Block>
where Block: BlockT, C: ProvideRuntimeApi<Block> + HeaderBackend<Block> + Send + Sync + 'static, C::Api: TransactionPaymentRuntimeApi<Block, Balance>, Balance: Codec + MaybeDisplay + Copy + TryInto<NumberOrHex> + Send + Sync + 'static,