Hierarchy

Null

↳ Default

Implements

Accessors

encodedLength

get encodedLength(): number

Inherited from Null.encodedLength

Defined in primitive/Null.ts:17

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

Returns: number


isEmpty

get isEmpty(): boolean

Inherited from Null.isEmpty

Defined in primitive/Null.ts:24

description: Checks if the value is an empty value (always true)

Returns: boolean


Methods

eq

▸ eq(other?: any): boolean

Implementation of Codec.eq

Inherited from Null.eq

Defined in primitive/Null.ts:31

description: Compares the value of the input to see if there is a match

Parameters:

Name Type
Optional other any

Returns: boolean


toHex

▸ toHex(): string

Implementation of Codec.toHex

Inherited from Null.toHex

Defined in primitive/Null.ts:38

description: Returns a hex string representation of the value

Returns: string


toJSON

▸ toJSON(): any

Implementation of Codec.toJSON

Inherited from Null.toJSON

Defined in primitive/Null.ts:45

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

Returns: any


toString

▸ toString(): string

Implementation of Codec.toString

Inherited from Null.toString

Defined in primitive/Null.ts:52

description: Returns the string representation of the value

Returns: string


toU8a

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

Implementation of Codec.toU8a

Inherited from Null.toU8a

Defined in primitive/Null.ts:60

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


Last Updated: 2/25/2019, 4:39:16 PM