Skip to content

TransactionPayment


Events


TransactionFeePaid

A transaction fee actual_fee, of which tip was added to the minimum inclusion fee, has been paid by who.

Attributes

Name Type Composition
who AccountId AccountId
actual_fee Balance u128
tip Balance u128

Storage functions


NextFeeMultiplier

Python

result = substrate.query(
    'TransactionPayment', 'NextFeeMultiplier', []
)

Return value

'u128'

StorageVersion

Python

result = substrate.query(
    'TransactionPayment', 'StorageVersion', []
)

Return value

('V1Ancient', 'V2')

Constants


TransactionByteFee

The fee to be paid for making a transaction; the per-byte portion.

Value

100

Python

constant = substrate.get_constant('TransactionPayment', 'TransactionByteFee')

WeightToFee

The polynomial that is applied in order to derive fee from weight.

Value

[{'coeff_frac': 46153, 'coeff_integer': 0, 'degree': 1, 'negative': False}]

Python

constant = substrate.get_constant('TransactionPayment', 'WeightToFee')