Skip to main content

burnNft

@opcat-labs/cat-sdk v1.0.3


@opcat-labs/cat-sdk / burnNft

Function: burnNft()

burnNft(signer, provider, minterScriptHash, inputNftUtxos, feeRate): Promise\<{ burnPsbt: ExtPsbt; burnTxid: string; guardPsbt: ExtPsbt; guardTxid: string; }>

Defined in: packages/cat-sdk/src/features/cat721/burn/burn.ts:20

Burns a CAT721 NFT using CAT721Guard contract

Parameters

signer

Signer

the signer for the burner

provider

UtxoProvider & ChainProvider

the provider for the blockchain and UTXO operations

minterScriptHash

ByteString

the script hash of the minter contract

inputNftUtxos

UTXO[]

the UTXOs of the input tokens

feeRate

number

the fee rate for the transaction

Returns

Promise\<{ burnPsbt: ExtPsbt; burnTxid: string; guardPsbt: ExtPsbt; guardTxid: string; }>

the PSBTs for the guard and burn transactions