Skip to main content

FeeProxy

Calls

callWithFeePreferences

Call an internal call with specified gas token payment_asset: The token to be used for paying gas fees. This is exchanged in OnChargeTransaction::withdraw_fee() max_payment: The limit of how many tokens will be used to perform the exchange call: The inner call to be performed after the exchange

Namespace

api.tx.feeProxy.callWithFeePreferences

Type

function callWithFeePreferences(
  payment_asset: u32,
  max_payment: u128,
  call: Call
)

undefined## Events

CallWithFeePreferences

A call was made with specified payment asset

Namespace

api.events.feeProxy.CallWithFeePreferences

Type

type CallWithFeePreferences = {
  who: SeedPrimitivesSignatureAccountId20,
  payment_asset: u32,
  max_payment: u128
}

Errors

FeeTokenIsGasToken

The selected fee token is equal to the native gas token

Namespace

api.errors.feeProxy.FeeTokenIsGasToken

NestedFeePreferenceCall

The inner call is a fee preference call

Namespace

api.errors.feeProxy.NestedFeePreferenceCall

Constants

feeAssetId

The native token asset Id (managed by pallet-balances)

Namespace

api.consts.feeProxy.feeAssetId

Type

type feeAssetId = u32