Skip to content

getAddress

getAddress(address): string

Defined in: utils/get-address.ts:18

Returns the checksummed address for the given address. Throws if the address is invalid.

This is an alias for toChecksumAddress, provided for compatibility with ethers.js getAddress.

Parameters

address

string

the address to checksum

Returns

string

the checksummed address

Example

getAddress('0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359')
// '0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359'