Skip to content

Burn Tokenized Record

Burns a tokenized record, which permanently removes both the token and its associated record from the blockchain.

Parameters

ParameterTypeDescription
authoritySignerThe record owner or class authority (for permissioned classes)
mintPublicKey | PdaThe mint account for the tokenized record
tokenAccountPublicKey | PdaThe token account holding the tokenized record
recordPublicKey | PdaThe record account associated with the tokenized record
token2022?PublicKey | PdaOptional Token2022 Program account
class?PublicKey | PdaOptional class account of the record

Returns

Returns a TransactionBuilder that can be used to build and send the transaction.

Example

import { burnTokenizedRecord } from "srs-lib";
 
const transaction = burnTokenizedRecord(context, {
    authority: authority,
    mint: mintPublicKey,
    tokenAccount: tokenAccountPublicKey,
    record: recordPublicKey,
    token2022: token2022ProgramPublicKey,
    class: classPublicKey
});
 
// Send the transaction
await transaction.sendAndConfirm();

Important Notes

  • The authority must be either the record owner or the class authority (for permissioned classes)
  • This operation is permanent and cannot be undone
  • Both the token and its associated record will be removed from the blockchain
  • The token account must hold exactly one token
  • The record must be associated with the token

Related