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: