Set Appropriate Expiration
Use expiration for time-sensitive payments:
// 30 minutes for checkout flows
const wallet = await client.createWallet({
network: 'trc20',
crypto: 'USDT',
expiresInMinutes: 30,
metadata: { orderId },
});
// No expiration for subscription top-ups
const wallet = await client.createWallet({
network: 'trc20',
crypto: 'USDT',
// No expiresInMinutes = never expires
metadata: { userId, type: 'subscription_topup' },
});