pub trait TransactionPaymentApi<Block: BlockT, Balance>: Core<Block>where
    Balance: Codec + MaybeDisplay,{
    // Provided methods
    fn query_info(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        uxt: Block::Extrinsic,
        len: u32
    ) -> Result<RuntimeDispatchInfo<Balance>, ApiError> { ... }
    fn query_fee_details(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        uxt: Block::Extrinsic,
        len: u32
    ) -> Result<FeeDetails<Balance>, ApiError> { ... }
    fn query_weight_to_fee(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        weight: Weight
    ) -> Result<Balance, ApiError> { ... }
    fn query_length_to_fee(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        length: u32
    ) -> Result<Balance, ApiError> { ... }
}

Provided Methods§

source

fn query_info( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, uxt: Block::Extrinsic, len: u32 ) -> Result<RuntimeDispatchInfo<Balance>, ApiError>

source

fn query_fee_details( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, uxt: Block::Extrinsic, len: u32 ) -> Result<FeeDetails<Balance>, ApiError>

source

fn query_weight_to_fee( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, weight: Weight ) -> Result<Balance, ApiError>

source

fn query_length_to_fee( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, length: u32 ) -> Result<Balance, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, Balance> RuntimeApiInfo for dyn TransactionPaymentApi<Block, Balance>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 4u32

The version of the runtime api.

Implementors§