pallet-transaction-payment

Crates.iopallet-transaction-payment
lib.rspallet-transaction-payment
version42.0.0
created_at2020-02-27 10:28:10.148175+00
updated_at2025-08-01 14:07:25.096565+00
descriptionFRAME pallet to manage transaction payments
homepagehttps://paritytech.github.io/polkadot-sdk/
repositoryhttps://github.com/paritytech/polkadot-sdk.git
max_upload_size
id213048
size192,788
Parity Crate Owner (parity-crate-owner)

documentation

README

Transaction Payment Pallet

This pallet provides the basic logic needed to pay the absolute minimum amount needed for a transaction to be included. This includes:

  • weight fee: A fee proportional to amount of weight a transaction consumes.
  • length fee: A fee proportional to the encoded length of the transaction.
  • tip: An optional tip. Tip increases the priority of the transaction, giving it a higher chance to be included by the transaction queue.

Additionally, this pallet allows one to configure:

  • The mapping between one unit of weight to one unit of fee via [Config::WeightToFee].
  • A means of updating the fee for the next block, via defining a multiplier, based on the final state of the chain at the end of the previous block. This can be configured via [Config::FeeMultiplierUpdate]

License: Apache-2.0

Commit count: 19113

cargo fmt