Use Metadata for Correlation
Always include identifying metadata when creating wallets:
// Good - includes correlation IDs
const wallet = await client.createWallet({
network: 'trc20',
crypto: 'USDT',
metadata: {
orderId: 'ORD-12345', // Your order ID
customerId: 'cust_abc', // Your customer ID
productId: 'prod_xyz', // What they're paying for
environment: 'production', // Helpful for debugging
},
});
// Bad - no way to correlate deposits to orders
const wallet = await client.createWallet({
network: 'trc20',
crypto: 'USDT',
});