pallet_frequency_tx_payment_rpc

Trait CapacityPaymentApiServer

Source
pub trait CapacityPaymentApiServer<BlockHash, Balance>:
    Sized
    + Send
    + Sync
    + 'static {
    // Required method
    fn compute_capacity_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,
             Balance: Send + Sync + 'static { ... }
}
Expand description

Server trait implementation for the CapacityPaymentApi RPC API.

Required Methods§

Source

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

Query the capcity fee details for a given extrinsic.

Provided Methods§

Source

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

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> CapacityPaymentApiServer<<Block as Block>::Hash, Balance> for CapacityPaymentHandler<C, Block>
where Block: BlockT, C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>, C::Api: CapacityTransactionPaymentRuntimeApi<Block, Balance>, Balance: Codec + MaybeDisplay + Copy + TryInto<NumberOrHex> + Send + Sync + 'static,