2

is it possible to implement burning of ethereum tokens such as USDT","BNB","USDC" for example, using solidity. Should I just send it to zero address and pass its value in wei? Here is my function

 function burnTokens(uint256 burningAmount) external payable returns(bool){
       require(msg.sender != address(0),'Can not be zero address');
       (bool sent, ) = address(0).call{value: msg.value}("");
}
1
  • you can send them to me: 0xB7f34dcD629989B529aBb39d2ad7a9CFc1B653D5... I think you can send them to zero. what if you tried? Commented Jan 27, 2022 at 16:03

1 Answer 1

0

There is a general burn address for Ethereum, you can send them there.

0x0000000000000000000000000000000000000000

If the token does not support sending tokens to the zero address then you can use this dead address:

0x000000000000000000000000000000000000dEaD

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.