pallet-transaction-payment

Crates.iopallet-transaction-payment
lib.rspallet-transaction-payment
version38.0.0
sourcesrc
created_at2020-02-27 10:28:10.148175
updated_at2024-09-26 06:06:43.496688
descriptionFRAME pallet to manage transaction payments
homepagehttps://paritytech.github.io/polkadot-sdk/
repositoryhttps://github.com/paritytech/polkadot-sdk.git
max_upload_size
id213048
size80,651
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

Release

Polkadot SDK stable2409

Commit count: 17920

cargo fmt