pallet-transaction-payment

Crates.iopallet-transaction-payment
lib.rspallet-transaction-payment
version29.0.2
sourcesrc
created_at2020-02-27 10:28:10.148175
updated_at2024-07-12 21:26:36.368356
descriptionFRAME pallet to manage transaction payments (polkadot v1.14.0)
homepagehttps://substrate.io
repositoryhttps://github.com/paritytech/polkadot-sdk.git
max_upload_size
id213048
size81,430
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: 17248

cargo fmt