CheckMetadataHash
Composite 394 v393frame_metadata_hash_extension::CheckMetadataHash
About This Type
Structured type: CheckMetadataHash.
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 | mode | Mode |
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 = mode: Mode
0x<field0>field 0 mode: ModeCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode CheckMetadataHash
const value = registry.createType("CheckMetadataHash", {
mode: 0
});
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (1)
Type Information
- Type ID
- 394
- Kind
- Composite
- Path
- frame_metadata_hash_extension::CheckMetadataHash
- Runtime
- v393