CheckInherentsResult

Composite 577 v393

sp_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)

#NameType
0okaybool
1fatal_errorbool
2errorsInherentData

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: bool
field 1 fatal_error: bool
field 2 errors: InherentData

Code 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