Burn assets | Immutable Documentation (2024)

Burning is the process of permanently removing tokens from circulation. On Ethereum mainnet, this is achieved by transferring the asset to a designated burn address (a "zero account"). A burn address is not owned by any user and no one can feasibly guess its private key, so any assets owned by a burn address are considered lost forever.

On Immutable X L2, the designated burn address comprises of a L1 burn account (zero address - 0x00...0) paired with a non-zero Stark key (0x00...01). The Stark key must be non-zero because a zero Stark key does not lie on the Stark elliptic curve and would therefore be invalid, so the next closest was chosen. For the L1 zero account, finding the Stark private key for this public key is practically impossible, so assets owned by this Stark key will remain locked in the Stark smart contract forever and cannot be transferred or withdrawn.

Burn addresses:

BurnEthAddress = 0x0000000000000000000000000000000000000000
BurnStarkKey = 0x0000000000000000000000000000000000000000000000000000000000000001

How to burn an asset

To burn an asset, you simply need to transfer the asset to the burn address:

  • SDKs or API: Use the transfer function and set the burn address as the recipient.
  • JS SDK: There is a burn function which is just a wrapper around the standard transfer function to a burn address.
  • JS SDK
  • Link SDK

Using the burn function:

import { ImmutableXClient } from '@imtbl/imx-sdk';

client = ImmutableXClient.build({...})

await client.burn({
sender: "<wallet-address>",
token: {
type: ERC721TokenType.ERC721,
data:{
tokenId: "123",
tokenAddress: "0xacb3c6a43d15b907e8433077b6d38ae40936fe2c"
}
},
quantity: 1,
});

Or using the standard transfer function:

await client.transfer({
sender: '<wallet-address>',
token: {
type: ERC721TokenType.ERC721,
data: {
tokenId: '123',
tokenAddress: '0xacb3c6a43d15b907e8433077b6d38ae40936fe2c',
},
},
receiver: '0x0000000000000000000000000000000000000000',
quantity: 1,
});

Get burned assets

Burned assets will still show up in the listAssets API endpoint with a "burned" status. This is a filterable field.

This is an example of getting burned assets using the JS SDK:

import { ImmutableXClient, ImmutableAssetStatus } from '@imtbl/imx-sdk';
client = ImmutableXClient.build({...})

const burnedAssets = await client.getAssets({
status: ImmutableAssetStatus.burned, // 'burned'
});

Multi-burns

📚Available with:

  • Link SDK's multi-transfer capability is in its transfer function

This allows you to burn multiple assets with one function call, however, keep in mind that under the hood, this submits separate transfer transactions to the API. Although rare, it is possible to have some transfers fail while others succeed, so multi-burns (just like multi-transfers) are not an entirely atomic operation. We will be looking into adding support for atomic 'multi' transactions across all features in the future.

For use cases such as "burn x NFTs to receive a new NFT", it is currently recommended to keep track of all successful and failed burns (provided in the Link.transfer response), and implement a retry mechanism for users to complete their full burn before triggering the next step in the process.

Burn assets | Immutable Documentation (2024)
Top Articles
A New Free Tool To Manage Your Asset Allocation - The Retirement Manifesto
Fintech Is Just Getting Started | TechCrunch
Cpmc Mission Bernal Campus & Orthopedic Institute Photos
Sdn Md 2023-2024
Devon Lannigan Obituary
How to know if a financial advisor is good?
Hawkeye 2021 123Movies
Sprague Brook Park Camping Reservations
According To The Wall Street Journal Weegy
Riegler &amp; Partner Holding GmbH auf LinkedIn: Wie schätzen Sie die Entwicklung der Wohnraumschaffung und Bauwirtschaft…
Ou Class Nav
AB Solutions Portal | Login
Publix 147 Coral Way
Hover Racer Drive Watchdocumentaries
Remnant Graveyard Elf
Keurig Refillable Pods Walmart
Wordscape 5832
A rough Sunday for some of the NFL's best teams in 2023 led to the three biggest upsets: Analysis - NFL
Daily Voice Tarrytown
Carolina Aguilar Facebook
Directions To Advance Auto
Craigslist Sparta Nj
X-Chromosom: Aufbau und Funktion
Parc Soleil Drowning
Yosemite Sam Hood Ornament
Mini Handy 2024: Die besten Mini Smartphones | Purdroid.de
Low Tide In Twilight Ch 52
Delectable Birthday Dyes
Star Wars Armada Wikia
Chelsea Hardie Leaked
Alternatieven - Acteamo - WebCatalog
How to Use Craigslist (with Pictures) - wikiHow
Duke Energy Anderson Operations Center
Sf Bay Area Craigslist Com
The Legacy 3: The Tree of Might – Walkthrough
Body Surface Area (BSA) Calculator
Atlanta Musicians Craigslist
Sukihana Backshots
Mcalister's Deli Warrington Reviews
Oklahoma City Farm & Garden Craigslist
Ferhnvi
Petfinder Quiz
Dicks Mear Me
Marcel Boom X
Canonnier Beachcomber Golf Resort & Spa (Pointe aux Canonniers): Alle Infos zum Hotel
Shiftselect Carolinas
The 5 Types of Intimacy Every Healthy Relationship Needs | All Points North
How To Win The Race In Sneaky Sasquatch
Round Yellow Adderall
King Fields Mortuary
Latest Posts
Article information

Author: Pres. Carey Rath

Last Updated:

Views: 6025

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Pres. Carey Rath

Birthday: 1997-03-06

Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

Phone: +18682428114917

Job: National Technology Representative

Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.