TransactionPayment::Event

Variant 38 v393

pallet_transaction_payment::pallet::Event

The `Event` enum of this pallet

About This Type

Event enum for the Event pallet.

Contains all possible events emitted by the Event pallet. Each variant represents a different event type with its own data fields.

Variants (1)

IndexNameFieldsDocs
0TransactionFeePaid
actual_fee: u64
tip: u64
A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, has been paid by `who`.

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 1 possible variants.
Size
variable (1+ bytes)

Examples

TransactionFeePaid = TransactionFeePaid(who, actual_fee, tip)
0x00<field0><field1><field2>
00 Variant index 0 = TransactionFeePaid
field 0 who: AccountId
field 1 actual_fee: u64
field 2 tip: u64

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode TransactionPayment::Event — variant "TransactionFeePaid"
const value = registry.createType("TransactionPayment::Event", { TransactionFeePaid: { who: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", actual_fee: 1_000_000_000n, tip: 1_000_000_000n } });
console.log("Hex:", value.toHex());

Type Parameters

T

Referenced By (23)

and 3 more...

Also See

Type Information

Type ID
38
Kind
Variant
Path
pallet_transaction_payment::pallet::Event
Runtime
v393