H64
Composite 521 v393ethereum_types::hash::H64
About This Type
Structured type: H64.
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 H64
const value = registry.createType("H64", {
field: 0
});
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 521
- Kind
- Composite
- Path
- ethereum_types::hash::H64
- Runtime
- v393