Skip to main content

Use Appropriate Network for Amount

Choose network based on transaction amount to optimize fees:

function selectNetwork(crypto, amount) {
if (crypto === 'USDT') {
// TRC20 has lowest fees, best for small amounts
if (amount < 100) return 'trc20';
// ERC20 for larger amounts where fee % is smaller
if (amount >= 1000) return 'erc20';
// BEP20 as middle ground
return 'bep20';
}

// For native coins, use their primary network
const primaryNetworks = {
BTC: 'bitcoin',
ETH: 'ethereum',
BNB: 'bsc',
TRX: 'tron',
};

return primaryNetworks[crypto];
}