CheckInherentsResult
Composite 577 v393sp_inherents::CheckInherentsResult
About This Type
Structured type: CheckInherentsResult.
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 (3)
| # | Name | Type |
|---|---|---|
| 0 | okay | bool |
| 1 | fatal_error | bool |
| 2 | errors | InherentData |
SCALE Encoding
- Rule
- 3 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 3 fields = okay: bool, fatal_error: bool, errors: InherentData
0x<field0><field1><field2>field 0 okay: boolfield 1 fatal_error: boolfield 2 errors: InherentDataCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode CheckInherentsResult
const value = registry.createType("CheckInherentsResult", {
okay: true,
fatal_error: true,
errors: 0
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 577
- Kind
- Composite
- Path
- sp_inherents::CheckInherentsResult
- Runtime
- v393