BaseFee::Call

Variant 349 v393

pallet_base_fee::pallet::Call

Contains a variant per dispatchable extrinsic that this pallet has.

About This Type

Call enum for the Call pallet.

Contains all dispatchable functions (extrinsics) for the Call pallet. Each variant represents a different callable function with its parameters.

Variants (2)

IndexNameFieldsDocs
0set_base_fee_per_gas
fee: U256
1set_elasticity
elasticity: Permill

SCALE Encoding

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

Examples

set_base_fee_per_gas = set_base_fee_per_gas(fee)
0x00<field0>
00 Variant index 0 = set_base_fee_per_gas
field 0 fee: U256
set_elasticity = set_elasticity(elasticity)
0x01<field0>
01 Variant index 1 = set_elasticity
field 0 elasticity: Permill

Code Examples

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

const registry = new TypeRegistry();

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

Type Parameters

T

Referenced By (23)

and 3 more...

Also See

Type Information

Type ID
349
Kind
Variant
Path
pallet_base_fee::pallet::Call
Runtime
v393