ProtectedconstructorCreates a new instance of this class to represent the value
built multiplying sign for the absolute value expressed by the hexadecimal digits.
The sign of the value.
The digits of the absolute value in hexadecimal base.
Optionalnormalize: ((digits: string) => string) = ...The function used to normalize the digits. Defaults to converting digits to lowercase.
ReadonlydigitsReturns the hexadecimal digits expressing this absolute value, sign and 0x prefix omitted.
ReadonlysignStatic ReadonlyDIGITSThe address is 20 bytes hence 40 digits long.
Protected Static ReadonlyNEGATIVENegative multiplier of the digits absolute value.
Protected Static ReadonlyPOSITIVEPositive multiplier of the digits absolute value.
Static ReadonlyPREFIXA constant string prefix used in hexadecimal notation.
Static ReadonlyRADIXThe radix used for representing numbers base 16 in a positional numeral notation system.
Protected Static ReadonlyREGEX_Regular expression pattern to match a prefix indicating hexadecimal number.
Protected Static ReadonlyREGEX_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.
StaticchecksumIt checksums a given hexadecimal address.
The HexUInt object representing the hexadecimal value.
The checksummed address.
StaticisStaticisStaticofCreate an Address instance from the given expression interpreted as an unsigned integer.
The expression to convert.
It can be of type bigint, number, string, Uint8Array, or HexUInt.
Not meaningful 0 digits on the left of the expression can be omitted,
the returned address is always 20 bytes, 40 digits expression.
The converted hexadecimal unsigned integer.
StaticofDerives the address from a given list of words of BIP39 Mnemonic Words and a BIP44 Derivation Path as in the examples.
Secure audit function.
Mnemonic used to generate the HD node.
Optionalpath: string = 'm/0'The derivation path from the current node.
StaticofStaticofStaticrandom
Represents a VeChain Address as unsigned integer.