BaseFee::Event

Variant 85 v393

pallet_base_fee::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 (3)

IndexNameFieldsDocs
0NewBaseFeePerGas
fee: U256
1BaseFeeOverflownone
2NewElasticity
elasticity: Permill

SCALE Encoding

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

Examples

NewBaseFeePerGas = NewBaseFeePerGas(fee)
0x00<field0>
00 Variant index 0 = NewBaseFeePerGas
field 0 fee: U256
BaseFeeOverflow
0x01
01 Variant index 1 = BaseFeeOverflow
NewElasticity = NewElasticity(elasticity)
0x02<field0>
02 Variant index 2 = NewElasticity
field 0 elasticity: Permill

Code Examples

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

const registry = new TypeRegistry();

// Encode BaseFee::Event — variant "NewBaseFeePerGas"
const value = registry.createType("BaseFee::Event", { NewBaseFeePerGas: { fee: 0 } });
console.log("Hex:", value.toHex());

Referenced By (23)

and 3 more...

Also See

Type Information

Type ID
85
Kind
Variant
Path
pallet_base_fee::pallet::Event
Runtime
v393