name: Null
description: Implements a type that does not contain anything (apart from null)
Hierarchy
Null
↳ Dropped
↳ Future
↳ Ready
↳ Invalid
↳ Origin
Implements
Accessors
encodedLength
getencodedLength(): number
Defined in Null.ts:16
description: The length of the value when encoded as a Uint8Array
Returns: number
Methods
toHex
▸ toHex(): string
Defined in Null.ts:23
description: Returns a hex string representation of the value
Returns: string
toJSON
▸ toJSON(): any
Implementation of Codec.toJSON
Defined in Null.ts:30
description: Converts the Object to JSON, typically used for RPC transfers
Returns: any
toString
▸ toString(): string
Implementation of Codec.toString
Defined in Null.ts:37
description: Returns the string representation of the value
Returns: string
toU8a
▸ toU8a(isBare?: undefined | false | true): Uint8Array
Defined in Null.ts:45
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