name: PropIndex
description: An increasing number that represents a specific public proposal index in the system, implemented as a U32
Hierarchy
↳ U32
↳ PropIndex
Implements
Constructors
constructor
⊕ new PropIndex(value?: AnyNumber): PropIndex
Inherited from U32.constructor
Overrides UInt.constructor
Defined in U32.ts:14
Parameters:
| Name | Type |
|---|---|
Optional value |
AnyNumber |
Returns: PropIndex
Methods
toHex
▸ toHex(): string
Overrides AbstractInt.toHex
Defined in codec/UInt.ts:36
description: Returns a hex string representation of the value
Returns: string
toU8a
▸ toU8a(isBare?: undefined | false | true): Uint8Array
Overrides AbstractInt.toU8a
Defined in codec/UInt.ts:48
description: Encodes the value as a Uint8Array as per the parity-codec specifications
Parameters:
| Name | Type | Description | ||
|---|---|---|---|---|
Optional isBare |
undefined |
false |
true |
true when the value has none of the type-specific prefixes (internal) |
Returns: Uint8Array