pub trait TransactionPaymentCallApi<Block: BlockT, Balance, Call>: Core<Block>where
Balance: Codec + MaybeDisplay,
Call: Codec,{
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> { ... }
fn query_weight_to_fee(
&self,
__runtime_api_at_param__: &BlockId<Block>,
weight: Weight
) -> Result<Balance, ApiError> { ... }
fn query_weight_to_fee_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
weight: Weight
) -> Result<Balance, ApiError> { ... }
fn query_length_to_fee(
&self,
__runtime_api_at_param__: &BlockId<Block>,
length: u32
) -> Result<Balance, ApiError> { ... }
fn query_length_to_fee_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
length: u32
) -> Result<Balance, ApiError> { ... }
}Provided Methods§
sourcefn query_call_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
call: Call,
len: u32
) -> Result<RuntimeDispatchInfo<Balance>, ApiError>
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.
sourcefn 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_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.
sourcefn query_call_fee_details(
&self,
__runtime_api_at_param__: &BlockId<Block>,
call: Call,
len: u32
) -> Result<FeeDetails<Balance>, ApiError>
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.
sourcefn query_call_fee_details_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
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>
Query fee details of a given encoded Call.
sourcefn query_weight_to_fee(
&self,
__runtime_api_at_param__: &BlockId<Block>,
weight: Weight
) -> Result<Balance, ApiError>
fn query_weight_to_fee(
&self,
__runtime_api_at_param__: &BlockId<Block>,
weight: Weight
) -> Result<Balance, ApiError>
Query the output of the current WeightToFee given some input.
sourcefn query_weight_to_fee_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
weight: Weight
) -> Result<Balance, ApiError>
fn query_weight_to_fee_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
weight: Weight
) -> Result<Balance, ApiError>
Query the output of the current WeightToFee given some input.