InherentData
Composite 573 v393sp_inherents::InherentData
About This Type
Structured type: InherentData.
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 | data | BTreeMap |
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 = data: BTreeMap
0x<field0>field 0 data: BTreeMapCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode InherentData
const value = registry.createType("InherentData", {
data: 0
});
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 573
- Kind
- Composite
- Path
- sp_inherents::InherentData
- Runtime
- v393