pallet-transaction-payment

Crates.iopallet-transaction-payment
lib.rspallet-transaction-payment
version37.0.1
sourcesrc
created_at2020-02-27 10:28:10.148175
updated_at2024-12-12 08:15:27.091338
descriptionFRAME pallet to manage transaction payments (polkadot v1.15.0)
homepagehttps://substrate.io
repositoryhttps://github.com/paritytech/polkadot-sdk.git
max_upload_size
id213048
size80,312
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 v1.15.0

Commit count: 18077

cargo fmt