1

How to self-destruct a smart contract. What is the syntax of the code. Will self-destructing my smart contract will refund me any ether from the network?

1 Answer 1

3

The syntax for selfdestruct is simple: selfdestruct(addr);, where addr is the address where possible Ether balance of the contract is sent.

You will not receive a refund for the selfdestruct, since the recent London hard fork removed gas refund for selfdestruct (https://eips.ethereum.org/EIPS/eip-3529).

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.