Cancel Voucher
Cancel a voucher with a reason for tracking.
import { cancelVoucher } from '@verxioprotocol/core'
import { publicKey, generateSigner } from '@metaplex-foundation/umi'
const result = await cancelVoucher(context, {
voucherAddress: publicKey('VOUCHER_ADDRESS'),
reason: 'Customer refund',
signer: generateSigner(context.umi),
})Return Value
{
signature: string,
status: 'cancelled'
}