NFTs
Burn NFTs
Burning sends instance ids to a destination nobody controls, defaulting to the Hive account null.
Try it: burn NFTsUsage
TypeScript
await hive.issuer.nft.burn({
from: hive.accounts.treasury,
symbol: "TESTNFT",
id: ["1", "2"],
});
await hive.keychainIssuer.nft.burn({
username: "alice",
symbol: "TESTNFT",
id: ["1"],
});Important
Burned instances cannot be recovered.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| from / username | AccountRef | string | Yes | Signing account. |
| symbol | string | Yes | Collection symbol. |
| id | string[] | Yes | Instance ids to burn. |
| account | string | No | Optional destination, default "null". |
