Swipelux
Transfers

Cross-Chain Bridge Transfer

Bridge transfers move the same cryptocurrency across different blockchain networks. These are ideal for optimizing gas costs, accessing different DeFi ecosystems, or moving funds to networks with better performance characteristics.

Prepare the bridge transfer

Make sure you have:

  • Source network balance: Customer must have sufficient cryptocurrency on the source network
  • Same currency: Bridge transfers use the same currency (e.g., USDC) on both networks
  • Gas coverage: Ensure source network has gas for the bridge transaction

For this guide, we'll bridge USDC from Ethereum to Polygon.

Make the bridge API request

Call the POST /v1/transfers endpoint with the same currency on different rails:

curl https://wallet.swipelux.com/v1/transfers \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: YOUR_SECRET_API_KEY' \
  --data '{
    "from": {
      "identifier": "cus_cK69MttD5nAUAbud1B",
      "amount": "100.00",
      "rail": "ethereum",
      "currency": "USDC"
    },
    "to": {
      "identifier": "cus_cK69MttD5nAUAbud1B",
      "rail": "polygon", 
      "currency": "USDC"
    }
  }'

Bridge transfer characteristics:

  • Same currency ("USDC") on both source and destination
  • Different rail values representing different networks
  • Optimized routing through the best available cross-chain bridges
  • Automatic handling of bridge fees and gas costs

Handle the bridge response

The API returns details about the cross-chain bridge operation:

Bridge Transfer Response
{
  "id": "tr_bridge_nEZHWur1pBSAKY7",
  "from": {
    "identifier": "cus_cK69MttD5nAUAbud1B",
    "amount": "100.00",
    "rail": "ethereum",
    "currency": "USDC"
  },
  "to": {
    "identifier": "cus_cK69MttD5nAUAbud1B",
    "rail": "polygon",
    "currency": "USDC"  
  },
  "state": "processing",
  "url": "https://polygonscan.com/tx/0x123abc...",
  "createdAt": "2025-04-29T10:54:08.724Z",
  "updatedAt": "2025-04-29T10:54:08.724Z"
}

Bridge transfers use the same response structure as other transfers:

  • state: Current status of the cross-chain transfer
  • url: Blockchain explorer link to track the transaction

Monitor bridge completion

Bridge transfers are processed automatically with the same monitoring as other transfers:

Track progress via:

  • Webhook notifications: Receive transfer.completed events
  • Status polling: Check transfer status periodically
  • Blockchain explorer: Monitor via the provided url field

Bridge Routing

Our system automatically handles:

  • Optimal route selection based on cost, speed, and reliability
  • Gas estimation to prevent failed transactions
  • Status tracking through the same transfer monitoring system
  • Error handling with automatic retries when needed

On this page