> For the complete documentation index, see [llms.txt](https://www.ankitavirani.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.ankitavirani.com/experience/protocols/ercs-and-eips/eip-6780.md).

# EIP-6780

## EIP-6780: SELFDESTRUCT Only in CREATE 💥

EIP-6780 proposes to limit the use of the SELFDESTRUCT opcode, which has been a source of complexity and potential security issues in Ethereum smart contracts.

Key aspects of EIP-6780:

* Restricts the SELFDESTRUCT opcode to only be callable during contract creation
* Prevents the use of SELFDESTRUCT after a contract has been deployed
* Aims to simplify the Ethereum protocol and improve security

Rationale behind EIP-6780:

* Reduces potential attack vectors related to contract self-destruction
* Simplifies the reasoning about contract behavior and state
* Facilitates future optimizations in Ethereum clients

This EIP is part of the ongoing efforts to improve Ethereum's security and reduce complexity in smart contract development. By limiting SELFDESTRUCT, it helps prevent unexpected contract removals and simplifies the overall protocol.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.ankitavirani.com/experience/protocols/ercs-and-eips/eip-6780.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
