PalletId
Composite 533 v393frame_support::PalletId
About This Type
Structured type: PalletId.
A struct-like type where each field is encoded in declaration order.
Encoding: Fields encoded consecutively in declaration order, no field names or separators.
Fields (1)
| # | Name | Type |
|---|---|---|
| 0 | (unnamed) | [u8; 8] |
SCALE Encoding
- Rule
- 1 field encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 1 field = ?: [u8; 8]
0x<field0>field 0 field0: [u8; 8]Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode PalletId
const value = registry.createType("PalletId", {
field: 0
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 533
- Kind
- Composite
- Path
- frame_support::PalletId
- Runtime
- v393