HoldReason

Variant 415 v393

pallet_registry::pallet::HoldReason

About This Type

Enum type: HoldReason.

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 (1)

IndexNameFieldsDocs
0RegistryIdentitynone

SCALE Encoding

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

Examples

RegistryIdentity
0x00
00 Variant index 0 = RegistryIdentity

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (4)

Type Information

Type ID
415
Kind
Variant
Path
pallet_registry::pallet::HoldReason
Runtime
v393