Skip to content

How to Check an EVM Address Checksum Before a Transaction

Follow these 5 steps to validate an EVM address checksum, compare it with your source, and catch copy errors before drafting a transaction.

An EVM address checksum can help catch some mistyped characters before you place an address in a transaction draft. This guide is for anyone preparing a transfer or contract interaction on an Ethereum Virtual Machine (EVM) network. In five steps, you’ll validate the address format, check its mixed-case checksum, compare it with the original source, and confirm the draft still contains the intended recipient. A checksum is a useful error check, not proof that an address belongs to the person or service you intend.

Prerequisites

  • Tools: Your wallet or transaction-drafting interface, the original trusted address source, and an offline or reputable checksum-capable EVM library such as ethers.js.
  • Time: About 2–5 minutes, depending on how you obtained the address and whether you need to check the wallet network.
  • Difficulty: Easy.

Step 1: Copy the address from its trusted source

Locate the recipient address in a source you already trust, such as the recipient’s verified instructions or a saved address book entry you previously confirmed. Copy the full address. Avoid retyping it or selecting an address from an unsolicited message, search result, or clipboard history. A correct checksum cannot tell you whether the source itself is trustworthy.

For a transaction, the address is the recipient value in the draft. Ethereum’s transaction documentation describes the to field as the receiving address for a transfer to an account or contract. Check that you are validating the value in the draft you actually intend to use, not a different address shown elsewhere on screen.

Step 2: Check the basic address format

An ordinary EVM address is commonly displayed as 0x followed by 40 hexadecimal characters. Hexadecimal uses the digits 0–9 and letters a–f. Check that the prefix is present when your wallet expects it, the character count is right, and there are no spaces, punctuation marks, or hidden line breaks. A format check only catches obvious problems; it does not establish that the address is correct.

Do not “fix” an address by deleting or adding characters until it looks right. If its length or contents differ from the trusted source, copy it again and compare the new copy.

Step 3: Validate the mixed-case checksum

EIP-55 defines a mixed-case checksum for Ethereum addresses. It hashes the lowercase hexadecimal address text with Keccak-256 and uses the hash to decide which alphabetic characters should be uppercase. A checksum-capable library can calculate the expected form and reject an incorrectly mixed-case address. For example, ethers.js provides getAddress, which returns the checksummed form and throws an error when mixed-case input has an invalid checksum.

Use a reputable local wallet or developer library where possible; don’t paste an address into an unfamiliar website just to check capitalization. With ethers.js v6 in a trusted local environment, a developer can call getAddress(input). Compare its returned value to your copied address. The reference implementation and examples are in the EIP-55 specification and the ethers.js address documentation.

Step 4: Interpret the result carefully

If a mixed-case address fails checksum validation, stop and obtain the address again from its trusted source. Do not send the draft with an address that failed. If validation returns a checksummed address, compare every character with the original. A valid checksum helps detect some accidental changes, but it does not certify the recipient, identify an account owner, or guarantee the address is safe.

An all-lowercase or all-uppercase address does not encode the EIP-55 mixed-case check in the same way. Some libraries accept these forms and return a checksummed representation. Treat that as a formatting result, not independent verification of the address’s origin. EIP-55 estimates that a random mistyped address will pass its checksum rarely, but that protection is not absolute.

Step 5: Compare the final transaction draft

Before signing or submitting, compare the recipient shown in the final draft against the same trusted source. Check the network selected in your wallet, the asset and amount, and any transaction details relevant to the action. EVM-compatible networks may use similar address formats, so checksum validity alone does not prove that the selected network is the one intended. Do not proceed if the wallet displays a different recipient or network than expected.

Hypothetical example: suppose your saved source shows 0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359. If a checksum validator rejects a copied mixed-case version, copy it again and compare it character by character with the saved source. If the validator returns the same checksum form, continue checking the wallet’s recipient and network fields. This example illustrates the procedure; it does not identify a real recipient.

Troubleshooting

  • The validator reports a bad checksum: Don’t change random letter casing. Copy the address again from the trusted source and validate it. If the freshly copied mixed-case address still fails, confirm the source and tool are intended for the same checksum convention.
  • The tool accepts the address but changes capitalization: It may have normalized an all-lowercase or all-uppercase input. Compare the resulting address with the trusted source, and confirm the final draft independently. Normalization does not prove ownership or intent.
  • The address checks out, but the network differs: Pause. A checksum verifies address text under a convention; it does not confirm the wallet’s active chain. Select the intended network only after confirming it against the transaction instructions, then review the draft again.

FAQ

Does a valid EVM checksum prove the address is safe?

No. It helps detect certain typing errors in mixed-case address text. It cannot show who controls the address, whether it belongs to the intended recipient, or whether the transaction is safe.

Can an all-lowercase EVM address be valid?

It can be a valid address representation, and many tools accept it. However, lowercase text does not visibly carry EIP-55’s mixed-case checksum. A checksum library may return a checksummed version for comparison.

Does the same checksum confirm the correct network?

No. Address checksums and network selection are separate checks. Confirm the wallet’s active network and transaction details from trusted instructions before signing.

Sources

Leave a Comment

Knowledge