name: Bool

description: Representation for a boolean value in the system. It extends the base JS Boolean class

Hierarchy

Boolean

↳ Bool

Implements

Constructors

constructor

⊕ new Bool(value?: Bool | Boolean | Uint8Array | boolean | number): Bool

Defined in Bool.ts:15

Parameters:

Name Type Default value
Default value value Bool | Boolean | Uint8Array | boolean | number false

Returns: Bool


Properties

<Static> Boolean

● Boolean: BooleanConstructor

Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es5.d.ts:530


Accessors

encodedLength

getencodedLength(): number

Defined in Bool.ts:35

description: The length of the value when encoded as a Uint8Array

Returns: number


Methods

toHex

▸ toHex(): string

Implementation of Codec.toHex

Defined in Bool.ts:42

description: Returns a hex string representation of the value

Returns: string


toJSON

▸ toJSON(): any

Implementation of Codec.toJSON

Defined in Bool.ts:49

description: Converts the Object to JSON, typically used for RPC transfers

Returns: any


toString

▸ toString(): string

Implementation of Codec.toString

Defined in Bool.ts:56

description: Returns the string representation of the value

Returns: string


toU8a

▸ toU8a(isBare?: undefined | false | true): Uint8Array

Defined in Bool.ts:64

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


results matching ""

    No results matching ""