Utils

Utils

This class contains common utility methods, you don't need to create an instance as all the methods here are static

Constructor

new Utils()

Version:
  • 1
Source:

Methods

(static) isAddress(address) → {Boolean}

Checks if the given string is an address

Parameters:
Name Type Description
address String

the given HEX address

Source:

(static) isChecksumAddress(address) → {Boolean}

Checks if the given string is a checksummed address

Parameters:
Name Type Description
address String

the given HEX address

Source:

(static) getRandomAddress() → {String}

Generates a random ethereum address

Source:

(static) sha3(value, options) → {String}

Calculates the sha3 of a given value.

Parameters:
Name Type Description
value

value to have it's sha3 calculated.

options

calculation options.

Source: