Skip to main content

toChecksumAddress

Callable

  • toChecksumAddress(address: string): string

  • Will convert an upper or lowercase Ethereum address to a checksum address.

    @example
    web3.utils.toChecksumAddress('0xc1912fee45d61c87cc5ea59dae31190fffff232d');
    > "0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d"

    Parameters

    • address: string

      An address string

    Returns string

    The checksum address