Readonly
digitsReturns the hexadecimal digits expressing this absolute value, sign and 0x
prefix omitted.
Readonly
signProtected
Static
Readonly
NEGATIVENegative multiplier of the digits absolute value.
Protected
Static
Readonly
POSITIVEPositive multiplier of the digits absolute value.
Static
Readonly
PREFIXA constant string prefix used in hexadecimal notation.
Static
Readonly
RADIXThe radix used for representing numbers base 16 in a positional numeral notation system.
Protected
Static
Readonly
REGEX_Regular expression pattern to match a prefix indicating hexadecimal number.
Protected
Static
Readonly
REGEX_Regular expression pattern to match a prefix indicating hexadecimal number.
Returns the value of bi
as a BigInt
type.
The value of bi
as a BigInt
.
Returns the Uint8Array representation of the aligned bytes.
The Uint8Array representation of the aligned bytes.
Retrieves the value of n cast from this instance interpreted as the hexadecimal expression of a bigint value.
The value of n.
Compares the current Hex object with another Hex object.
The Hex object to compare with.
Determines whether this Hex instance is equal to the given Hex instance.
The Hex instance to compare with.
Checks if this instance expresses a valid Number value according the IEEE 754 double precision 64 bits floating point format.
Returns true if this instance expresses 32 hex digits (16 bytes, 128 bits) needed to represent a Number value, else it returns false.
Static
isStatic
isStatic
ofCreates a new BlockRef object from the given expression.
The expression to create the BlockRef from. It can be one of the following types: - bigint: A BigInteger value that represents the BlockRef. - number: A number value that represents the BlockRef. - string: A string value that represents the BlockRef. - HexUInt: A HexUInt object that represents the BlockRef. - Uint8Array: A Uint8Array object that represents the BlockRef.
Static
random
The BlockRef class represents a Thor block ID value, which is a hexadecimal positive integer having 64 digits.