Functions
<Const>
isAddress
▸ isAddress(address?: undefined
| string
): boolean
Defined in util/address.ts:36
Verify that an address is a valid Ethereum address.
Parameters:
Name | Type | Description | |
---|---|---|---|
Optional address |
undefined \ |
string |
The address to verify. |
Returns: boolean
<Const>
isChecksumValid
▸ isChecksumValid(address: string
): boolean
Defined in util/address.ts:13
Verify that an address has a valid checksum.
Parameters:
Name | Type | Description |
---|---|---|
address | string |
The Ethereum address to verify. |
Returns: boolean
<Const>
toChecksumAddress
▸ toChecksumAddress(address?: string
| null
): string
Defined in util/address.ts:58
Convert an Ethereum address to its checksum-valid version.
Parameters:
Name | Type | Description | |
---|---|---|---|
Optional address |
string \ |
null |
The address to convert. |
Returns: string