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§
sourcefn compute_capacity_fee_details(
&self,
encoded_xt: Bytes,
at: Option<BlockHash>
) -> RpcResult<FeeDetails<NumberOrHex>>
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§
Object Safety§
This trait is not object safe.