Void
Variant 136 v393sp_core::Void
About This Type
Enum type: Void.
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 (0)
| Index | Name | Fields | Docs |
|---|
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 0 possible variants.
- Size
- variable (1+ bytes)
Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Void
const value = registry.createType("Void", /* variant */);
console.log("Hex:", value.toHex());Referenced By (2)
Type Information
- Type ID
- 136
- Kind
- Variant
- Path
- sp_core::Void
- Runtime
- v393