Releases

Variant 425 v393

pallet_transaction_payment::Releases

About This Type

Enum type: Releases.

A tagged union where the first byte selects which variant is active, followed by that variant's data.

Encoding: 1-byte variant index followed by the selected variant's field data.

Variants (2)

IndexNameFieldsDocs
0V1Ancientnone
1V2none

SCALE Encoding

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

Examples

V1Ancient
0x00
00 Variant index 0 = V1Ancient
V2
0x01
01 Variant index 1 = V2

Code Examples

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

const registry = new TypeRegistry();

// Encode Releases — variant "V1Ancient"
const value = registry.createType("Releases", "V1Ancient");
console.log("Hex:", value.toHex());

Type Information

Type ID
425
Kind
Variant
Path
pallet_transaction_payment::Releases
Runtime
v393