Returns the zero address
Check if a string is an address
Params
- address
String
Implements EIP-1191 Address Checksum
Returns: String
- checksummed address
Params
- address
String
- chainId
Integer
|String
Validates address checksum
Params
- address
String
- chainId
Integer
|String
Checks if an address is valid.
Params
- address
String
- chainId
Integer
|String
Search network info of checksummed address
Params
- address
String
- [networks]
Array
- chainId list see: https://chainid.network/chains.json
Checks if is zero address.
Params
- address
String
- chainId
Integer
|String
Returns: Array
- a ∩ b
Params
- a
Array
- b
Array
Returns: Array
- a - b
Params
- a
Array
- b
Array
Returns: Array
- a - b
Params
- a
Array
- b
Array
Check if an array contains some of the searched items
Params
- haystack
Array
- needle
Array
Check if an array contains all the searched items
Params
- haystack
Array
- needle
Array
Converts strings or numbers to buffer
Params
- value
string
|number
|buffer
- [encoding]
String
= 'hex'
Converts buffer to hex string
Params
- buffer
Buffer
Creates Keccak sha256 hash
Params
- input
String
|Number
|Array
|Buffer
- [format]
String
= 'hex'
Checks if a string is hex string
Params
- str
String
Add '0x' at start of hex strings, honoring prefix
Params
- str
String
Checks if string is hex prefixed
Params
- str
String
remove 0x from start of string
Params
- str
String
Remove '0x' from hex strings, honoring prefix
Returns: Any
- if value is hex string, {String} without '0x'
Params
- value
Any
Checks if a string is a tx or block hash
Returns: Boolean
- '
Params
- str
string