LLM Notice: This documentation site supports content negotiation for AI agents. Request any page with Accept: text/markdown or Accept: text/plain header to receive Markdown instead of HTML. Alternatively, append ?format=md to any URL. All markdown files are available at /md/ prefix paths. For all content in one file, visit /llms-full.txt
Skip to main content

Contract

The Burner contract provides a way for resources to define custom logic that is executed when the resource is destroyed. Resources that want to utilize this functionality should implement the Burner.Burnable interface which requires that they include a burnCallback() function that includes the custom logic.

It is recommended that regardless of the resource, all users and developers should use Burner.burn() when destroying a resource instead of destroy.

NetworkContract Address
Cadence Testing Framework0x0000000000000001
Emulator0xee82856bf20e2aa6
Testnet0x294e44e1ec6993c6
Mainnet0xd8a7e05a7ac670c0