pub trait TransactionPaymentCallApi<Block: BlockT, Balance, Call>: Core<Block>where
    Balance: Codec + MaybeDisplay,
    Call: Codec,{
    // Provided methods
    fn query_call_info(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        call: Call,
        len: u32
    ) -> Result<RuntimeDispatchInfo<Balance>, ApiError> { ... }
    fn query_call_info_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        call: Call,
        len: u32
    ) -> Result<RuntimeDispatchInfo<Balance>, ApiError> { ... }
    fn query_call_fee_details(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        call: Call,
        len: u32
    ) -> Result<FeeDetails<Balance>, ApiError> { ... }
    fn query_call_fee_details_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        call: Call,
        len: u32
    ) -> Result<FeeDetails<Balance>, ApiError> { ... }
}

Provided Methods§

source

fn query_call_info( &self, __runtime_api_at_param__: &BlockId<Block>, call: Call, len: u32 ) -> Result<RuntimeDispatchInfo<Balance>, ApiError>

Query information of a dispatch class, weight, and fee of a given encoded Call.

source

fn query_call_info_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, call: Call, len: u32 ) -> Result<RuntimeDispatchInfo<Balance>, ApiError>

Query information of a dispatch class, weight, and fee of a given encoded Call.

source

fn query_call_fee_details( &self, __runtime_api_at_param__: &BlockId<Block>, call: Call, len: u32 ) -> Result<FeeDetails<Balance>, ApiError>

Query fee details of a given encoded Call.

source

fn query_call_fee_details_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, call: Call, len: u32 ) -> Result<FeeDetails<Balance>, ApiError>

Query fee details of a given encoded Call.

Trait Implementations§

source§

impl<Block: BlockT, Balance, Call> RuntimeApiInfo for dyn TransactionPaymentCallApi<Block, Balance, Call>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 2u32

The version of the runtime api.

Implementors§