Skip to content

NamespaceId⚓︎

NamespaceId
Represents a base integer.

Extends⚓︎

Constructors⚓︎

new NamespaceId()⚓︎

new NamespaceId(namespaceId?): NamespaceId

Parameters⚓︎

Parameter Type
namespaceId? bigint

Returns⚓︎

NamespaceId

Overrides⚓︎

BaseValue.constructor

Properties⚓︎

Property Modifier Type Description Inherited from
isSigned public boolean true if the value should be treated as signed. BaseValue.isSigned
size public number Size of the integer. BaseValue.size
value public number | bigint Value. BaseValue.value
SIZE static number - -

Methods⚓︎

serialize()⚓︎

serialize(): Uint8Array<ArrayBufferLike>

Returns⚓︎

Uint8Array<ArrayBufferLike>


toJson()⚓︎

toJson(): string | number
NamespaceId.serialize
Returns representation of this object that can be stored in JSON.

Returns⚓︎

string | number

JSON-safe representation of this object.

Inherited from⚓︎

BaseValue.toJson


toString()⚓︎

toString(): string
NamespaceId.toString
Converts base value to string.

Returns⚓︎

string

String representation.

Inherited from⚓︎

BaseValue.toString


deserialize()⚓︎

static deserialize(payload): NamespaceId

Parameters⚓︎

Parameter Type
payload any

Returns⚓︎

NamespaceId


deserializeAligned()⚓︎

static deserializeAligned(payload): NamespaceId

Parameters⚓︎

Parameter Type
payload any

Returns⚓︎

NamespaceId