Skip to main content

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:
Request Parameters: Response:

Estimate Transfer Gas

Get gas estimates before executing a transfer:
Response:

Master Wallet Transfer

Transfer assets directly from a master wallet:
Response:

Estimate Master Transfer Gas

Swap Operations

Create Address Swap Quote

Generate a quote for swapping tokens from a deposit address:
Request Parameters: Response:

Execute Address Swap

Execute a swap using a quote:
Response:

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

  • Never execute blind transfers or swaps
  • Quotes provide gas estimates and expected outcomes
  • Quotes include slippage protection details
  • Check quoteHash for encrypted execution data
  • 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
  • Use estimate-gas endpoints before execution
  • Check callGasLimit and verificationGasLimit
  • Compare gas costs across blockchains
  • Consider L2 networks for lower fees
  • Implement retry logic with exponential backoff
  • Handle network timeout errors
  • Log all transaction hashes for audit
  • Set up webhook monitoring for transfer status

Troubleshooting

Possible causes:
  • Insufficient balance
  • Invalid asset ID
  • Invalid recipient address
Solutions:
  • Check wallet balance using /balance endpoint
  • Verify asset ID from /assets/tokens endpoint
  • Validate recipient address format
Possible causes:
  • Insufficient liquidity
  • Invalid asset pair
  • Slippage too low
Solutions:
  • Increase slippage tolerance
  • Try different asset pairs
  • Check asset availability on destination blockchain
Possible causes:
  • Network congestion
  • Insufficient gas
  • Blockchain issues
Solutions:
  • Check transaction status via hash
  • Increase gas limit
  • Monitor blockchain status
Possible causes:
  • Network congestion
  • Complex transaction path
Solutions:
  • Wait for lower network traffic
  • Use L2 networks
  • Batch transactions when possible

Webhook Events

API Reference

Master Wallets

Source and destination wallets

Deposit Addresses

Address management and monitoring

Webhooks

Transfer and swap notifications

Next Steps