0

I'm aware that the web3 library has the toCheckSumAddress method that converts an upper or lowercase Ethereum address to a checksum address. Am wondering if there is any method available that converts a checksummed address to a non-checksummed address (all lowercase)?

The reason I'm doing this is because a subgraph that I'm sending requests to only takes non-checksummed addresses. Thank you!

2
  • 3
    .toLowerCase() should work
    – Majd TL
    Feb 16, 2023 at 8:47
  • 2
    As @MajdTL said, you just need to convert the string to all LowerCase. And that is it.
    – Sky
    Feb 16, 2023 at 8:55

1 Answer 1

0

For javascript:

var checkSum = "0xcAd7311601AD5D7CfaCceB3A5A010957A4332F4b"
console.log(checkSum.toLowerCase())

A JSfiddle sample

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.