Files
pezkuwi-sdk/bizinikiwi/pezframe/transaction-payment/asset-tx-payment
pezkuwichain b6d35f6faf chore: add Dijital Kurdistan Tech Institute to copyright headers
Updated 4763 files with dual copyright:
- Parity Technologies (UK) Ltd.
- Dijital Kurdistan Tech Institute
2025-12-27 21:28:36 +03:00
..

pezpallet-asset-tx-payment

Asset Transaction Payment Pezpallet

This pezpallet allows runtimes that include it to pay for transactions in assets other than the native token of the chain.

Overview

It does this by extending transactions to include an optional AssetId that specifies the asset to be used for payment (defaulting to the native token on None). It expects an [OnChargeAssetTransaction] implementation analogously to [pezpallet-transaction-payment]. The included [FungiblesAdapter] (implementing [OnChargeAssetTransaction]) determines the fee amount by converting the fee calculated by [pezpallet-transaction-payment] into the desired asset.

Integration

This pezpallet wraps FRAME's transaction payment pezpallet and functions as a replacement. This means you should include both pallets in your construct_runtime macro, but only include this pezpallet's [TransactionExtension] ([ChargeAssetTxPayment]).

License: Apache-2.0