Burn a collection
Prerequisites
How to burn a collection of NFT using Ternoa-JS
import {
burnCollection,
initializeApi,
getKeyringFromSeed,
WaitUntil,
} from "ternoa-js";
const burnCollection = async () => {
try {
await initializeApi();
const keyring = await getKeyringFromSeed("//TernoaTestAccount");
const COLLECTION_ID = 1; // the collection id you want to burn
const collectionData = await burnCollection(
COLLECTION_ID,
keyring,
WaitUntil.BlockInclusion
);
console.log(`Collection ${collectionData.collectionId} burned`);
} catch (e) {
console.error(e);
}
};The expected params
Response
Last updated