Overview
XentFi’s Transfer and Swap operations allow you to move assets between wallets and exchange tokens across multiple blockchains. The API provides real-time quotes, gas estimation, and execution capabilities for both transfers and swaps.What’s Possible?
💰 Transfers
Send assets from deposit addresses or master wallets to any blockchain address
🔄 Token Swaps
Exchange tokens on the same blockchain using DEX aggregators
⚡ Quotes
Get real-time quotes with gas estimates before executing
⛽ Gas Estimation
Estimate gas fees before executing transfers or swaps
Transfer Operations
Create Transfer Quote
Generate a quote for transferring assets from a deposit address:
Response:
Estimate Transfer Gas
Get gas estimates before executing a transfer:Master Wallet Transfer
Transfer assets directly from a master wallet:Estimate Master Transfer Gas
Swap Operations
Create Address Swap Quote
Generate a quote for swapping tokens from a deposit address:
Response:
Execute Address Swap
Execute a swap using a quote:Create Master Swap Quote
Generate a swap quote from a master wallet:Execute Master Swap
Address vs Master Wallet Operations
Gas Estimation Fields
Best Practices
Always Get a Quote First
Always Get a Quote First
- Never execute blind transfers or swaps
- Quotes provide gas estimates and expected outcomes
- Quotes include slippage protection details
- Check
quoteHashfor encrypted execution data
Set Appropriate Slippage
Set Appropriate Slippage
- Use
0.5%for stable pairs (USDC/USDT) - Use
1.0%for volatile pairs (ETH/USDC) - Consider network congestion when setting tolerance
- Higher slippage = higher success rate
Monitor Gas Fees
Monitor Gas Fees
- Use
estimate-gasendpoints before execution - Check
callGasLimitandverificationGasLimit - Compare gas costs across blockchains
- Consider L2 networks for lower fees
Handle Errors Gracefully
Handle Errors Gracefully
- Implement retry logic with exponential backoff
- Handle network timeout errors
- Log all transaction hashes for audit
- Set up webhook monitoring for transfer status
Troubleshooting
Transfer quote fails
Transfer quote fails
Possible causes:
- Insufficient balance
- Invalid asset ID
- Invalid recipient address
- Check wallet balance using
/balanceendpoint - Verify asset ID from
/assets/tokensendpoint - Validate recipient address format
Swap quote fails
Swap quote fails
Possible causes:
- Insufficient liquidity
- Invalid asset pair
- Slippage too low
- Increase slippage tolerance
- Try different asset pairs
- Check asset availability on destination blockchain
Transaction not completing
Transaction not completing
Possible causes:
- Network congestion
- Insufficient gas
- Blockchain issues
- Check transaction status via hash
- Increase gas limit
- Monitor blockchain status
Gas estimation too high
Gas estimation too high
Possible causes:
- Network congestion
- Complex transaction path
- Wait for lower network traffic
- Use L2 networks
- Batch transactions when possible
Webhook Events
API Reference
Related Products
Master Wallets
Source and destination wallets
Deposit Addresses
Address management and monitoring
Webhooks
Transfer and swap notifications
Next Steps
- Get a transfer quote using the API Reference
- Execute your first swap with detailed examples
- Set up webhooks for real-time notifications

