checksumAddress

Calculates the checksum address for the given address.

Example

import { checksumAddress } from "thirdweb/utils";
checksumAddress("0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed");
//=> '0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed'
function checksumAddress(address: string): Address;

Parameters

The address to calculate the checksum for.

Type

let address: string;

Returns

let returnType: `0x${string}`;

The checksum address.