Polkadot JS APIGlobals"primitive/Null"Null

# Class: Null

name Null

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

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new Null(registry: Registry): Null

Defined in packages/types/src/primitive/Null.ts:16

Parameters:

Name Type
registry Registry

Returns: Null

# Properties

# Readonly registry

registry: Registry

Implementation of Codec.registry

Defined in packages/types/src/primitive/Null.ts:16

# Accessors

# encodedLength

get encodedLength(): number

Defined in packages/types/src/primitive/Null.ts:25

description The length of the value when encoded as a Uint8Array

Returns: number


# hash

get hash(): H256

Defined in packages/types/src/primitive/Null.ts:32

description returns a hash of the contents

Returns: H256


# isEmpty

get isEmpty(): boolean

Defined in packages/types/src/primitive/Null.ts:39

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

Returns: boolean

# Methods

# eq

eq(other?: unknown): boolean

Implementation of Codec

Defined in packages/types/src/primitive/Null.ts:46

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

Parameters:

Name Type
other? unknown

Returns: boolean


# toHex

toHex(): string

Defined in packages/types/src/primitive/Null.ts:53

description Returns a hex string representation of the value

Returns: string


# toHuman

toHuman(): null

Defined in packages/types/src/primitive/Null.ts:60

description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information

Returns: null


# toJSON

toJSON(): null

Implementation of Codec

Defined in packages/types/src/primitive/Null.ts:67

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

Returns: null


# toRawType

toRawType(): string

Implementation of Codec

Defined in packages/types/src/primitive/Null.ts:74

description Returns the base runtime type name for this instance

Returns: string


# toString

toString(): string

Implementation of Codec

Defined in packages/types/src/primitive/Null.ts:81

description Returns the string representation of the value

Returns: string


# toU8a

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

Defined in packages/types/src/primitive/Null.ts:90

description Encodes the value as a Uint8Array as per the SCALE specifications

Parameters:

Name Type Description
isBare? undefined | false | true true when the value has none of the type-specific prefixes (internal)

Returns: Uint8Array