getAddress

Retrieves the address after performing validation and checksumming.

Example

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

Parameters

The address to be validated and checksummed.

Type

let address: string;

Returns

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

The validated and checksummed address.