name: Null

description: Implements a type that does not contain anything (apart from null)

Hierarchy

Null

↳ Default

↳ Optional

↳ Finalization

↳ Dropped

↳ Future

↳ Ready

↳ Invalid

↳ Origin

Implements

Accessors

encodedLength

get encodedLength(): number

Defined in primitive/Null.ts:17

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

Returns: number


isEmpty

get isEmpty(): boolean

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

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

Defined in primitive/Null.ts:38

description: Returns a hex string representation of the value

Returns: string


toJSON

▸ toJSON(): any

Implementation of Codec.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

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

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