Return true if the addressAccount value is an acount object. This does not check the network for a valid account, but just checks to see if it is an Account object
Value to check to see if it can be a valid account object
Boolean True if the addressAccount field is valid, else false
Return true if the number or string is an address value. This does not check the network for a valid address, but just checks to see if it is a number
Value to check to see if it can be a valid address
Boolean True if the address field is valid, else false
Returns true if the string is a hex string
Returns true if the value is a public key.
value is public key - is string and has 64 hex chars
True if the key is a public key
Returns true if the public key provided has a valid checksum
to check to see if is a valid checksum key
True if the public key has the correct upper/lower case checksum
Preappends a '0x' value to the front of key value.
Value to preappend.
Return the string with a '0x' at the front.
Removes any leading '0x' value.
Value to remove the leading '0x'
Return the value with the missing '0x'
Convert an Account object, string, number BigInt values to an address number
The Account object or number to convert to a single address value
Returns a single BigInt value of the address
Converts a public key to a public key with a checksum. The checksum is calculated by doing as SHA3-256 on the hex values, then for each hex value if the hash value is > 7, then the hex value is upper case.
Value to convert to checksum key
Checksum upper/lower case hex values
Generated using TypeDoc
Returns a Uint8Array of a hex string. The hex string must only contain characters from 0 - 9 and a-f