Metadata
Composite 362 v393pallet_drand::types::Metadata
About This Type
Structured type: Metadata.
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 | beacon_id | BoundedVec |
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 = beacon_id: BoundedVec
0x<field0>field 0 beacon_id: BoundedVecCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Metadata
const value = registry.createType("Metadata", {
beacon_id: 0
});
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 362
- Kind
- Composite
- Path
- pallet_drand::types::Metadata
- Runtime
- v393