How to convert Ethereum address to Checksum address
You can convert either an upper or lower case Ethereum address to Checksum address.
Code Example
code:example.js
let lowerCaseAddress = "0x0089d53f703f7e0843953d48133f74ce247184c2"
let upperCaseAddress = "0x0089D53F703F7E0843953D48133F74CE247184C2"
console.log(Web3.utils.toChecksumAddress(lowerCaseAddress))
// => 0x0089d53F703f7E0843953D48133f74cE247184c2
console.log(Web3.utils.toChecksumAddress(upperCaseAddress))
// => 0x0089d53F703f7E0843953D48133f74cE247184c2
Working Demo
Notes
Input can be with/without 0x prefix, but Output always has 0x prefix.
References
Support
If you find this article is helpful, it would be greatly appreciated if you could tip Ether to the address below. Thank you!
0x0089d53F703f7E0843953D48133f74cE247184c2