Docs

burn

Prepares a transaction to call the "burn" function on the contract.

Example

import { burn } from "thirdweb/extensions/erc1155";
const transaction = burn({
contract,
account: ...,
id: ...,
value: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.