Extend Voucher Expiry
Extend the expiration date of a voucher with a reason for tracking.
import { extendVoucherExpiry } from '@verxioprotocol/core' import { publicKey, generateSigner } from '@metaplex-foundation/umi' const result = await extendVoucherExpiry(context, { voucherAddress: publicKey('VOUCHER_ADDRESS'), newExpiryDate: Date.now() + 60 * 24 * 60 * 60 * 1000, // 60 days from now reason: 'Customer request', signer: generateSigner(context.umi), })
Return Value
{ signature: string, newExpiryDate: number }