Runtime
The following section contains known runtime calls that may be available on specific runtimes (depending on configuration and available pallets). These call directly into the WASM runtime for queries and operations.
accountNonceApi
accountNonce(account: SpCoreCryptoAccountId32): u32
- interface:
api.call.accountNonceApi.accountNonce - runtime:
accountNonceApi_account_nonce - summary: Get current account nonce of given
AccountId.
assetConversionApi
getReserves(asset1: StagingXcmV5Location, asset2: StagingXcmV5Location): Option<(u128,u128)>
- interface:
api.call.assetConversionApi.getReserves - runtime:
assetConversionApi_get_reserves - summary: Returns the size of the liquidity pool for the given asset pair.
quotePriceExactTokensForTokens(asset1: StagingXcmV5Location, asset2: StagingXcmV5Location, amount: u128, include_fee: bool): Option<u128>
- interface:
api.call.assetConversionApi.quotePriceExactTokensForTokens - runtime:
assetConversionApi_quote_price_exact_tokens_for_tokens - summary: Provides a quote for [
Pallet::swap_exact_tokens_for_tokens].,, Note that the price may have changed by the time the transaction is executed., (Useamount_out_minto control slippage.)
quotePriceTokensForExactTokens(asset1: StagingXcmV5Location, asset2: StagingXcmV5Location, amount: u128, include_fee: bool): Option<u128>
- interface:
api.call.assetConversionApi.quotePriceTokensForExactTokens - runtime:
assetConversionApi_quote_price_tokens_for_exact_tokens - summary: Provides a quote for [
Pallet::swap_tokens_for_exact_tokens].,, Note that the price may have changed by the time the transaction is executed., (Useamount_in_maxto control slippage.)
auraApi
authorities(): Vec<SpConsensusAuraSr25519AppSr25519Public>
- interface:
api.call.auraApi.authorities - runtime:
auraApi_authorities - summary: Return the current set of authorities.
slotDuration(): SpConsensusSlotsSlotDuration
- interface:
api.call.auraApi.slotDuration - runtime:
auraApi_slot_duration - summary: Returns the slot duration for Aura.,, Currently, only the value provided by this type at genesis will be used.
auraUnincludedSegmentApi
canBuildUpon(included_hash: PrimitiveTypesH256, slot: SpConsensusSlotsSlot): bool
- interface:
api.call.auraUnincludedSegmentApi.canBuildUpon - runtime:
auraUnincludedSegmentApi_can_build_upon - summary: Whether it is legal to extend the chain, assuming the given block is the most, recently included one as-of the relay parent that will be built against, and, the given relay chain slot.,, This should be consistent with the logic the runtime uses when validating blocks to, avoid issues.,, When the unincluded segment is empty, i.e.
included_hash == at, where at is the block, whose state we are querying against, this must always returntrueas long as the slot, is more recent than the included block itself.
authorizedAliasersApi
authorizedAliasers(target: XcmVersionedLocation): Result<Vec<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>
- interface:
api.call.authorizedAliasersApi.authorizedAliasers - runtime:
authorizedAliasersApi_authorized_aliasers - summary: Returns locations allowed to alias into and act as
target.
isAuthorizedAlias(origin: XcmVersionedLocation, target: XcmVersionedLocation): Result<bool, XcmRuntimeApisAuthorizedAliasesError>
- interface:
api.call.authorizedAliasersApi.isAuthorizedAlias - runtime:
authorizedAliasersApi_is_authorized_alias - summary: Returns whether
originis allowed to alias into and act astarget.
blockBuilder
applyExtrinsic(extrinsic: SpRuntimeUncheckedExtrinsic): Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>
- interface:
api.call.blockBuilder.applyExtrinsic - runtime:
blockBuilder_apply_extrinsic - summary: Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
checkInherents(block: SpRuntimeBlock, data: SpInherentsInherentData): SpInherentsCheckInherentsResult
- interface:
api.call.blockBuilder.checkInherents - runtime:
blockBuilder_check_inherents - summary: Check that the inherents are valid. The inherent data will vary from chain to chain.
finalizeBlock(): SpRuntimeHeader
- interface:
api.call.blockBuilder.finalizeBlock - runtime:
blockBuilder_finalize_block - summary: Finish the current block.
inherentExtrinsics(inherent: SpInherentsInherentData): Vec<Bytes>
- interface:
api.call.blockBuilder.inherentExtrinsics - runtime:
blockBuilder_inherent_extrinsics - summary: Generate inherent extrinsics. The inherent data will vary from chain to chain.
collectCollationInfo
collectCollationInfo(header: SpRuntimeHeader): CumulusPrimitivesCoreCollationInfo
- interface:
api.call.collectCollationInfo.collectCollationInfo - runtime:
collectCollationInfo_collect_collation_info - summary: Collect information about a collation.,, The given
headeris the header of the built block for that, we are collecting the collation info for.
core
executeBlock(block: SpRuntimeBlock): Null
- interface:
api.call.core.executeBlock - runtime:
core_execute_block - summary: Execute the given block.
initializeBlock(header: SpRuntimeHeader): SpRuntimeExtrinsicInclusionMode
- interface:
api.call.core.initializeBlock - runtime:
core_initialize_block - summary: Initialize a block with the given header and return the runtime executive mode.
version(): SpVersionRuntimeVersion
- interface:
api.call.core.version - runtime:
core_version - summary: Returns the version of the runtime.
dryRunApi
dryRunCall(origin: AssetHubKusamaRuntimeOriginCaller, call: AssetHubKusamaRuntimeRuntimeCall, result_xcms_version: u32): Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>
- interface:
api.call.dryRunApi.dryRunCall - runtime:
dryRunApi_dry_run_call - summary: Dry run call V2.
dryRunXcm(origin_location: XcmVersionedLocation, xcm: XcmVersionedXcm): Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>
- interface:
api.call.dryRunApi.dryRunXcm - runtime:
dryRunApi_dry_run_xcm - summary: Dry run XCM program
fungiblesApi
queryAccountBalances(account: SpCoreCryptoAccountId32): Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>
- interface:
api.call.fungiblesApi.queryAccountBalances - runtime:
fungiblesApi_query_account_balances - summary: Returns the list of all [
Asset] that anAccountIdhas.
genesisBuilder
buildState(json: Bytes): Result<Null, Text>
- interface:
api.call.genesisBuilder.buildState - runtime:
genesisBuilder_build_state - summary: Build
RuntimeGenesisConfigfrom a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full,RuntimeGenesisConfigfrom the given JSON blob and puts it into the storage. If the, provided JSON blob is incorrect or incomplete or the deserialization fails, an error, is returned.,, Please note that provided JSON blob must contain allRuntimeGenesisConfigfields, no, defaults will be used.
getPreset(id: Option<Text>): Option<Bytes>
- interface:
api.call.genesisBuilder.getPreset - runtime:
genesisBuilder_get_preset - summary: Returns a JSON blob representation of the built-in
RuntimeGenesisConfigidentified by,id.,, IfidisNonethe function should return JSON blob representation of the default,RuntimeGenesisConfigstruct of the runtime. Implementation must provide default,RuntimeGenesisConfig.,, Otherwise function returns a JSON representation of the built-in, named,RuntimeGenesisConfigpreset identified byid, orNoneif such preset does not, exist. ReturnedVec<u8>contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the defaultRuntimeGenesisConfigto create a comprehensive genesis config that can, be used inbuild_statemethod.
presetNames(): Vec<Text>
- interface:
api.call.genesisBuilder.presetNames - runtime:
genesisBuilder_preset_names - summary: Returns a list of identifiers for available builtin
RuntimeGenesisConfigpresets.,, The presets from the list can be queried with [GenesisBuilder::get_preset] method. If, no named presets are provided by the runtime the list is empty.
getParachainInfo
parachainId(): PolkadotParachainPrimitivesPrimitivesId
- interface:
api.call.getParachainInfo.parachainId - runtime:
getParachainInfo_parachain_id - summary: Retrieve the parachain id used for runtime.
locationToAccountApi
convertLocation(location: XcmVersionedLocation): Result<AccountId32, XcmRuntimeApisConversionsError>
- interface:
api.call.locationToAccountApi.convertLocation - runtime:
locationToAccountApi_convert_location - summary: Converts
LocationtoAccountId.
metadata
metadata(): SpCoreOpaqueMetadata
- interface:
api.call.metadata.metadata - runtime:
metadata_metadata - summary: Returns the metadata of a runtime.
metadataAtVersion(version: u32): Option<OpaqueMetadata>
- interface:
api.call.metadata.metadataAtVersion - runtime:
metadata_metadata_at_version - summary: Returns the metadata at a given version.,, If the given
versionisn't supported, this will returnNone., Use [Self::metadata_versions] to find out about supported metadata version of the runtime.
metadataVersions(): Vec<u32>
- interface:
api.call.metadata.metadataVersions - runtime:
metadata_metadata_versions - summary: Returns the supported metadata versions.,, This can be used to call
metadata_at_version.
nominationPoolsApi
balanceToPoints(pool_id: u32, new_funds: u128): u128
- interface:
api.call.nominationPoolsApi.balanceToPoints - runtime:
nominationPoolsApi_balance_to_points - summary: Returns the equivalent points of
new_fundsfor a given pool.
memberNeedsDelegateMigration(member: SpCoreCryptoAccountId32): bool
- interface:
api.call.nominationPoolsApi.memberNeedsDelegateMigration - runtime:
nominationPoolsApi_member_needs_delegate_migration - summary: Returns true if the delegated funds of the pool
memberneeds migration.,, Once a pool has successfully migrated to the strategy,DelegateStake, the funds of the, member can be migrated from pool account to the member's account. Use,migrate_delegation, to migrate the funds of the pool member.
memberPendingSlash(member: SpCoreCryptoAccountId32): u128
- interface:
api.call.nominationPoolsApi.memberPendingSlash - runtime:
nominationPoolsApi_member_pending_slash - summary: Returns the pending slash for a given pool member.,, If pending slash of the member exceeds
ExistentialDeposit, it can be reported on, chain.
memberTotalBalance(who: SpCoreCryptoAccountId32): u128
- interface:
api.call.nominationPoolsApi.memberTotalBalance - runtime:
nominationPoolsApi_member_total_balance - summary: Returns the total contribution of a pool member including any balance that is unbonding.
pendingRewards(who: SpCoreCryptoAccountId32): u128
- interface:
api.call.nominationPoolsApi.pendingRewards - runtime:
nominationPoolsApi_pending_rewards - summary: Returns the pending rewards for the member that the AccountId was given for.
pointsToBalance(pool_id: u32, points: u128): u128
- interface:
api.call.nominationPoolsApi.pointsToBalance - runtime:
nominationPoolsApi_points_to_balance - summary: Returns the equivalent balance of
pointsfor a given pool.
poolAccounts(pool_id: u32): (AccountId32,AccountId32)
- interface:
api.call.nominationPoolsApi.poolAccounts - runtime:
nominationPoolsApi_pool_accounts - summary: Returns the bonded account and reward account associated with the pool_id.
poolBalance(pool_id: u32): u128
- interface:
api.call.nominationPoolsApi.poolBalance - runtime:
nominationPoolsApi_pool_balance - summary: Total balance contributed to the pool.
poolNeedsDelegateMigration(pool_id: u32): bool
- interface:
api.call.nominationPoolsApi.poolNeedsDelegateMigration - runtime:
nominationPoolsApi_pool_needs_delegate_migration - summary: Returns true if the pool with
pool_idneeds migration.,, This can happen when thepallet-nomination-poolshas switched to using strategy,DelegateStakebut the pool, still has funds that were staked using the older strategy, TransferStake. Use,migrate_pool_to_delegate_stake, to migrate the pool.
poolPendingSlash(pool_id: u32): u128
- interface:
api.call.nominationPoolsApi.poolPendingSlash - runtime:
nominationPoolsApi_pool_pending_slash - summary: Returns the pending slash for a given pool.
offchainWorkerApi
offchainWorker(header: SpRuntimeHeader): Null
- interface:
api.call.offchainWorkerApi.offchainWorker - runtime:
offchainWorkerApi_offchain_worker - summary: Starts the off-chain task for given block header.
relayParentOffsetApi
relayParentOffset(): u32
- interface:
api.call.relayParentOffsetApi.relayParentOffset - runtime:
relayParentOffsetApi_relay_parent_offset - summary: Fetch the slot offset that is expected from the relay chain.
reviveApi
address(account_id: SpCoreCryptoAccountId32): PrimitiveTypesH160
- interface:
api.call.reviveApi.address - runtime:
reviveApi_address - summary: Get the H160 address associated to this account id
balance(address: PrimitiveTypesH160): PrimitiveTypesU256
- interface:
api.call.reviveApi.balance - runtime:
reviveApi_balance - summary: Returns the free balance of the given
[H160]address, using EVM decimals.
blockAuthor(): Option<H160>
- interface:
api.call.reviveApi.blockAuthor - runtime:
reviveApi_block_author - summary: The address of the validator that produced the current block.
blockGasLimit(): PrimitiveTypesU256
- interface:
api.call.reviveApi.blockGasLimit - runtime:
reviveApi_block_gas_limit - summary: Returns the block gas limit.
call(origin: SpCoreCryptoAccountId32, dest: PrimitiveTypesH160, value: u128, gas_limit: Option<SpWeightsWeightV2Weight>, storage_deposit_limit: Option<u128>, input_data: Bytes): PalletRevivePrimitivesContractResultExecReturnValue
- interface:
api.call.reviveApi.call - runtime:
reviveApi_call - summary: Perform a call from a specified account to a given contract.,, See [
crate::Pallet::bare_call].
code(address: PrimitiveTypesH160): Bytes
- interface:
api.call.reviveApi.code - runtime:
reviveApi_code - summary: The code at the specified address taking pre-compiles into account.
ethTransact(tx: PalletReviveEvmApiRpcTypesGenGenericTransaction): Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>
- interface:
api.call.reviveApi.ethTransact - runtime:
reviveApi_eth_transact - summary: Perform an Ethereum call.,, See [
crate::Pallet::dry_run_eth_transact]
gasPrice(): PrimitiveTypesU256
- interface:
api.call.reviveApi.gasPrice - runtime:
reviveApi_gas_price - summary: Returns the gas price.
getStorage(address: PrimitiveTypesH160, key: [u8;32]): Result<Option<Bytes>, PalletRevivePrimitivesContractAccessError>
- interface:
api.call.reviveApi.getStorage - runtime:
reviveApi_get_storage - summary: Query a given storage key in a given contract.,, Returns
Ok(Some(Vec<u8>))if the storage value exists under the given key in the, specified account andOk(None)if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract thenErris returned.
getStorageVarKey(address: PrimitiveTypesH160, key: Bytes): Result<Option<Bytes>, PalletRevivePrimitivesContractAccessError>
- interface:
api.call.reviveApi.getStorageVarKey - runtime:
reviveApi_get_storage_var_key - summary: Query a given variable-sized storage key in a given contract.,, Returns
Ok(Some(Vec<u8>))if the storage value exists under the given key in the, specified account andOk(None)if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract thenErris returned.
instantiate(origin: SpCoreCryptoAccountId32, value: u128, gas_limit: Option<SpWeightsWeightV2Weight>, storage_deposit_limit: Option<u128>, code: PalletRevivePrimitivesCode, data: Bytes, salt: Option<[u8;32]>): PalletRevivePrimitivesContractResultInstantiateReturnValue
- interface:
api.call.reviveApi.instantiate - runtime:
reviveApi_instantiate - summary: Instantiate a new contract.,, See
[crate::Pallet::bare_instantiate].
nonce(address: PrimitiveTypesH160): u32
- interface:
api.call.reviveApi.nonce - runtime:
reviveApi_nonce - summary: Returns the nonce of the given
[H160]address.
runtimePalletsAddress(): PrimitiveTypesH160
- interface:
api.call.reviveApi.runtimePalletsAddress - runtime:
reviveApi_runtime_pallets_address - summary: The address used to call the runtime's pallets dispatchables
traceBlock(block: SpRuntimeBlock, config: PalletReviveEvmApiDebugRpcTypesTracerType): Vec<(u32,PalletReviveEvmApiDebugRpcTypesTrace)>
- interface:
api.call.reviveApi.traceBlock - runtime:
reviveApi_trace_block - summary: Traces the execution of an entire block and returns call traces.,, This is intended to be called through
state_callto replay the block from the, parent block.,, See eth-rpcdebug_traceBlockByNumberfor usage.
traceCall(tx: PalletReviveEvmApiRpcTypesGenGenericTransaction, config: PalletReviveEvmApiDebugRpcTypesTracerType): Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>
- interface:
api.call.reviveApi.traceCall - runtime:
reviveApi_trace_call - summary: Dry run and return the trace of the given call.,, See eth-rpc
debug_traceCallfor usage.
traceTx(block: SpRuntimeBlock, tx_index: u32, config: PalletReviveEvmApiDebugRpcTypesTracerType): Option<PalletReviveEvmApiDebugRpcTypesTrace>
- interface:
api.call.reviveApi.traceTx - runtime:
reviveApi_trace_tx - summary: Traces the execution of a specific transaction within a block.,, This is intended to be called through
state_callto replay the block from the, parent hash up to the transaction.,, See eth-rpcdebug_traceTransactionfor usage.
uploadCode(origin: SpCoreCryptoAccountId32, code: Bytes, storage_deposit_limit: Option<u128>): Result<PalletRevivePrimitivesCodeUploadReturnValue, SpRuntimeDispatchError>
- interface:
api.call.reviveApi.uploadCode - runtime:
reviveApi_upload_code - summary: Upload new code without instantiating a contract from it.,, See [
crate::Pallet::bare_upload_code].
runtimeViewFunction
executeViewFunction(query_id: FrameSupportViewFunctionsViewFunctionId, input: Bytes): Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>
- interface:
api.call.runtimeViewFunction.executeViewFunction - runtime:
runtimeViewFunction_execute_view_function - summary: Execute a view function query.
sessionKeys
decodeSessionKeys(encoded: Bytes): Option<Vec<(Bytes,SpCoreCryptoKeyTypeId)>>
- interface:
api.call.sessionKeys.decodeSessionKeys - runtime:
sessionKeys_decode_session_keys - summary: Decode the given public session keys.,, Returns the list of public raw public keys + key type.
generateSessionKeys(seed: Option<Bytes>): Bytes
- interface:
api.call.sessionKeys.generateSessionKeys - runtime:
sessionKeys_generate_session_keys - summary: Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid
utf8string.,, Returns the concatenated SCALE encoded public keys.
stakingApi
erasStakersPageCount(era: u32, account: SpCoreCryptoAccountId32): u32
- interface:
api.call.stakingApi.erasStakersPageCount - runtime:
stakingApi_eras_stakers_page_count - summary: Returns the page count of exposures for a validator
accountin a given era.
nominationsQuota(balance: u128): u32
- interface:
api.call.stakingApi.nominationsQuota - runtime:
stakingApi_nominations_quota - summary: Returns the nominations quota for a nominator with a given balance.
pendingRewards(era: u32, account: SpCoreCryptoAccountId32): bool
- interface:
api.call.stakingApi.pendingRewards - runtime:
stakingApi_pending_rewards - summary: Returns true if validator
accounthas pages to be claimed for the given era.
taggedTransactionQueue
validateTransaction(source: SpRuntimeTransactionValidityTransactionSource, tx: SpRuntimeUncheckedExtrinsic, block_hash: PrimitiveTypesH256): Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
- interface:
api.call.taggedTransactionQueue.validateTransaction - runtime:
taggedTransactionQueue_validate_transaction - summary: Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given
block_hashcorresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order.
transactionPaymentApi
queryFeeDetails(uxt: SpRuntimeUncheckedExtrinsic, len: u32): PalletTransactionPaymentFeeDetails
- interface:
api.call.transactionPaymentApi.queryFeeDetails - runtime:
transactionPaymentApi_query_fee_details - summary:
queryInfo(uxt: SpRuntimeUncheckedExtrinsic, len: u32): PalletTransactionPaymentRuntimeDispatchInfo
- interface:
api.call.transactionPaymentApi.queryInfo - runtime:
transactionPaymentApi_query_info - summary:
queryLengthToFee(length: u32): u128
- interface:
api.call.transactionPaymentApi.queryLengthToFee - runtime:
transactionPaymentApi_query_length_to_fee - summary:
queryWeightToFee(weight: SpWeightsWeightV2Weight): u128
- interface:
api.call.transactionPaymentApi.queryWeightToFee - runtime:
transactionPaymentApi_query_weight_to_fee - summary:
transactionPaymentCallApi
queryCallFeeDetails(call: AssetHubKusamaRuntimeRuntimeCall, len: u32): PalletTransactionPaymentFeeDetails
- interface:
api.call.transactionPaymentCallApi.queryCallFeeDetails - runtime:
transactionPaymentCallApi_query_call_fee_details - summary: Query fee details of a given encoded
Call.
queryCallInfo(call: AssetHubKusamaRuntimeRuntimeCall, len: u32): PalletTransactionPaymentRuntimeDispatchInfo
- interface:
api.call.transactionPaymentCallApi.queryCallInfo - runtime:
transactionPaymentCallApi_query_call_info - summary: Query information of a dispatch class, weight, and fee of a given encoded
Call.
queryLengthToFee(length: u32): u128
- interface:
api.call.transactionPaymentCallApi.queryLengthToFee - runtime:
transactionPaymentCallApi_query_length_to_fee - summary: Query the output of the current
LengthToFeegiven some input.
queryWeightToFee(weight: SpWeightsWeightV2Weight): u128
- interface:
api.call.transactionPaymentCallApi.queryWeightToFee - runtime:
transactionPaymentCallApi_query_weight_to_fee - summary: Query the output of the current
WeightToFeegiven some input.
trustedQueryApi
isTrustedReserve(asset: XcmVersionedAsset, location: XcmVersionedLocation): Result<bool, XcmRuntimeApisTrustedQueryError>
- interface:
api.call.trustedQueryApi.isTrustedReserve - runtime:
trustedQueryApi_is_trusted_reserve - summary: Returns if the location is a trusted reserve for the asset.,, # Arguments,
asset:VersionedAsset.,location:VersionedLocation.
isTrustedTeleporter(asset: XcmVersionedAsset, location: XcmVersionedLocation): Result<bool, XcmRuntimeApisTrustedQueryError>
- interface:
api.call.trustedQueryApi.isTrustedTeleporter - runtime:
trustedQueryApi_is_trusted_teleporter - summary: Returns if the asset can be teleported to the location.,, # Arguments,
asset:VersionedAsset.,location:VersionedLocation.
xcmPaymentApi
queryAcceptablePaymentAssets(xcm_version: u32): Result<Vec<XcmVersionedAssetId>, XcmRuntimeApisFeesError>
- interface:
api.call.xcmPaymentApi.queryAcceptablePaymentAssets - runtime:
xcmPaymentApi_query_acceptable_payment_assets - summary: Returns a list of acceptable payment assets.,, # Arguments,, *
xcm_version: Version.
queryDeliveryFees(destination: XcmVersionedLocation, message: XcmVersionedXcm): Result<XcmVersionedAssets, XcmRuntimeApisFeesError>
- interface:
api.call.xcmPaymentApi.queryDeliveryFees - runtime:
xcmPaymentApi_query_delivery_fees - summary: Get delivery fees for sending a specific
messageto adestination., These always come in a specific asset, defined by the chain.,, # Arguments,message: The message that'll be sent, necessary because most delivery fees are based on the, size of the message.,destination: The destination to send the message to. Different destinations may use, different senders that charge different fees.
queryWeightToAssetFee(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId): Result<u128, XcmRuntimeApisFeesError>
- interface:
api.call.xcmPaymentApi.queryWeightToAssetFee - runtime:
xcmPaymentApi_query_weight_to_asset_fee - summary: Converts a weight into a fee for the specified
AssetId.,, # Arguments,,weight: convertibleWeight.,asset:VersionedAssetId.
queryXcmWeight(message: XcmVersionedXcm): Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>
- interface:
api.call.xcmPaymentApi.queryXcmWeight - runtime:
xcmPaymentApi_query_xcm_weight - summary: Returns a weight needed to execute a XCM.,, # Arguments,, *
message:VersionedXcm.