New answers tagged

0 votes

How to check validity of an address in solidity?

You can also check the address on Etherscan and see if it points to anything.
Hossein Ebrahimi's user avatar
1 vote

What is the tool for address checksum?

With ethers@v5 ethers.utils.isAddress(YOUR_ADDRESS) With ethers@v6 ethers.isAddress(YOUR_ADDRESS)
0xcuonghx's user avatar
  • 166
0 votes

What is the tool for address checksum?

Adding to @3lLobo answer above on utlizing ethers.js: ethers.js is moved from v5 to v6. So many things from v5 are no longer supported in v6 including utils. https://docs.ethers.org/v6/migrating/ ...
Uttam Singh's user avatar
0 votes

Can you convert my address (bytes20) type to a bytes32 string?

If you're using Ethers.js '0x'.concat(contract.address.slice(2).padStart(64, '0'))
Unicone's user avatar
  • 101

Top 50 recent answers are included