Function toChecksumAddressEvm

  • Converts a non-checksum ethereum address (all uppercase or lowercase) to a checksum address.

    Parameters

    • address: string

      The address to normalize

    • checkAddress: boolean = true

      whether or not to throw an error if the address in invalid. Defaults to true. Be careful when setting this to false, as the resulting value will be meaningless.

    Returns string

    The address in checksum case