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.

Object Safety§

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,