Releases
Variant 425 v393pallet_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)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | V1Ancient | none | |
| 1 | V2 | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 2 possible variants.
- Size
- variable (1+ bytes)
Examples
V1Ancient
0x0000 Variant index 0 = V1AncientV2
0x0101 Variant index 1 = V2Code 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