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§
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.