I have an error from web3:
Unhandled rejection Error: Given address "0x" is not a valid Ethereum address.
My question is if is there any tool that can fix my address (add checksum).
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityI have an error from web3:
Unhandled rejection Error: Given address "0x" is not a valid Ethereum address.
My question is if is there any tool that can fix my address (add checksum).
If you prefer a simple web version, check out EthSum:
Disclaimer: I'm the author, it's an open source tool.
With web3 you can do:
web3.toChecksumAddress('INSERT ADDRESS HERE')
It will return the address with checksum
Yes, you can.
Replcae your address in the following url of etherscan https://etherscan.io/address/{address} like this:
you want the checksum for address 0x0fd60495d705f4fb86e1b36be396757689fbe8b3
so you need to call https://etherscan.io/address/0x0fd60495d705f4fb86e1b36be396757689fbe8b3 then copy the address with valid checksum 0x0Fd60495d705F4Fb86e1b36Be396757689FbE8B3
on the loaded page.
These are the functions you're looking for: specification of the corresponding EIP and the implementation.