Rails
Understanding transfer rails and routing
Rails
Rails are the foundational building blocks of the Swipelux transfer system. They represent different payment methods and networks that assets can move through, abstracting away the complexity of routing and conversion while providing a unified interface for all types of value transfer.
Philosophy: Rail-Agnostic Transfers
Swipelux treats all transfer rails equally, whether they're crypto networks or fiat payment methods. This rail-agnostic approach means you can seamlessly transfer value in any direction:
- Crypto → Crypto: From one blockchain to another
- Crypto → Fiat: From cryptocurrency to traditional payment methods
- Fiat → Crypto: From traditional payment methods to cryptocurrency
- Fiat → Fiat: Between different fiat payment methods
The beauty of this system is that routing complexity is handled under the hood. When you specify a transfer from "card" to "polygon", our system automatically:
- Finds the best onramp provider for card processing
- Identifies optimal swap routes for the best exchange rates
- Executes the transfer at the highest speed and lowest cost
- Handles all intermediate steps transparently
Types of Rails
Crypto Rails
Crypto rails represent different blockchain networks and protocols:
Rail | Network | Best For | Gas Costs | Confirmation Time |
---|---|---|---|---|
polygon | Polygon (MATIC) | High-frequency, low-value transfers | Very Low | ~2 seconds |
ethereum | Ethereum Mainnet | Maximum decentralization | High | ~1 minute |
base | Coinbase Layer 2 | Balanced speed & cost | Low | ~2 seconds |
binance | Binance Smart Chain | DeFi compatibility | Low | ~3 seconds |
arbitrum | Arbitrum Layer 2 | Ethereum L2 scaling | Low | ~2 seconds |
optimism | Optimism Layer 2 | Ethereum L2 scaling | Low | ~2 seconds |
avalanche | Avalanche C-Chain | High throughput | Medium | ~3 seconds |
Fiat Rails
Fiat rails represent traditional payment methods and banking systems:
Rail | Payment Method | Regions | Processing Time | KYC Required |
---|---|---|---|---|
card | Credit/Debit Cards | Global | Instant | Varies |
apple_pay | Apple Pay | Global | Instant | Varies |
google_pay | Google Pay | Global | Instant | Varies |
open_banking | Direct Bank Connection | EU/UK | Minutes | Yes |
wire_transfer | Bank Wire | Global | Hours to Days | Yes |
ach | ACH Transfer | US | 1-3 Business Days | Yes |
sepa | SEPA Transfer | Europe | Same Day | Yes |
faster_payments | Faster Payments | UK | Instant | Yes |
Transfer Examples
Cross-Rail Transfer: Card to Polygon
What happens behind the scenes:
- Card payment is processed through our onramp partners
- USD is converted to USDC at optimal rates
- USDC is bridged to Polygon network
- Final USDC balance appears in customer's Polygon wallet
Crypto-to-Crypto: Ethereum to Base
What happens behind the scenes:
- USDC is debited from customer's Ethereum wallet
- Cross-chain bridge routes the assets to Base network
- USDC arrives at the specified Base address
- All bridging fees and gas costs are optimized automatically
Multi-Hop Routing: Apple Pay to Binance
What happens behind the scenes:
- Apple Pay processes EUR payment
- EUR is converted to USD via forex markets
- USD is converted to USDC through our liquidity partners
- USDC is bridged from Ethereum to Binance Smart Chain
- Final USDC balance appears in recipient's Binance wallet
Transfer Types by Routing Complexity
Bridge Transfers (Cross-Chain)
Bridge transfers move the same currency across different blockchain networks. These are optimized for speed and cost across networks.
USDC Bridge: Ethereum to Polygon
Bridge routing:
- Same currency (USDC) on both sides
- Different networks (Ethereum → Polygon)
- Optimized for lowest bridge fees and fastest finality
USDC Bridge: Base to Arbitrum
Bridge routing:
- Layer 2 to Layer 2 bridging
- Direct cross-chain asset movement
- No currency conversion needed
Swap Transfers (Currency Exchange)
Swap transfers change currencies while potentially staying on the same rail or network.
Fiat Swap: USD to EUR via Wire Transfer
Swap routing:
- Same rail (wire_transfer) on both sides
- Different currencies (USD → EUR)
- Forex conversion with optimal rates
Cross-Asset Swap: USDC to USDT on Ethereum
Swap routing:
- Same network (Ethereum) on both sides
- Different stablecoins (USDC → USDT)
- DEX routing for best exchange rates
Mixed Transfers (Bridge + Swap)
Mixed transfers combine currency conversion and network changes in a single operation.
Complex Route: EUR Card to USDT on Polygon
Mixed routing:
- EUR card payment processed
- EUR → USD forex conversion
- USD → USDC onramp conversion
- USDC → USDT DEX swap on Polygon
- Final USDT balance on Polygon
Multi-Hop: GBP Open Banking to USDC on Avalanche
Mixed routing:
- GBP Open Banking payment
- GBP → USD forex conversion
- USD onramp to USDC on Ethereum
- USDC bridge from Ethereum to Avalanche
- Final USDC transfer to external address
Cross-Network Stablecoin Transfer
Mixed routing:
- USDC debited from Base network
- Cross-chain bridge to Binance Smart Chain
- USDC → BUSD swap on BSC
- BUSD credited to recipient's wallet
Intelligent Routing
Our routing engine continuously monitors:
- Exchange rates across 50+ liquidity providers
- Network congestion and gas fees across all supported chains
- Bridge availability and cross-chain transfer costs
- Onramp success rates and processing times
When you create a transfer, our system:
- Evaluates all possible routes between the source and destination rails
- Calculates total cost including fees, spreads, and gas
- Estimates completion time based on current network conditions
- Selects the optimal path balancing speed, cost, and reliability
- Executes atomically with automatic rollback on failure
Rail Configuration
Different rails have different requirements and capabilities:
Transfer Type | Source & Destination | Required Fields | Destination | Processing Time |
---|---|---|---|---|
Bridge (Cross-Chain) | Same currency, different networks (e.g., USDC Ethereum → USDC Polygon) | currency for both source & destination | Customer wallet or external address | 30s - 5 minutes |
Swap (Currency Exchange) | Same rail, different currencies (e.g., USD → EUR via wire) | currency for both source & destination | Customer wallet or external address | Minutes to hours |
Mixed (Bridge + Swap) | Different currencies & networks (e.g., EUR card → USDC Polygon) | currency for both source & destination | Depends on destination rail | End-to-end optimized |
Onramp (Fiat → Crypto) | Fiat rail → crypto network (e.g., card → polygon USDC) | Source: fiat currency Destination: crypto currency | Customer's own wallet | Minutes to hours |
Network Rails (Crypto ↔ Crypto)
- Required fields:
currency
(e.g., "USDC") must be specified - Destination: Can be customer wallet or external address
- KYC requirements: None for pure crypto transfers
- Processing time: Seconds to minutes depending on network
Cross-Rail Transfers
- Automatic conversion: Fiat ↔ crypto conversion handled seamlessly
- Multi-hop routing: Complex paths optimized automatically
- Atomic execution: All steps succeed or the entire transfer fails
- Transparent pricing: All fees disclosed upfront
Best Practices
Choosing Rails
For Speed: Use Layer 2 networks (see crypto rails table above)
For Cost: Consider lower-cost networks for smaller amounts (see crypto rails table above)
For Compatibility: Ethereum has the widest ecosystem support
For Fiat On/Off-ramps: Card and mobile payments offer the best user experience
Error Handling
Rails can experience temporary issues. Our system provides:
- Automatic retries for transient failures
- Alternative routing when primary paths fail
- Real-time status updates via webhooks
- Detailed error codes for troubleshooting
Monitoring
Track transfer performance across different rails:
- Success rates by rail and route
- Average completion times for planning user experiences
- Cost analysis to optimize your application's economics
- User preferences to suggest optimal rails for repeat customers
Future Rails
We're continuously expanding our rail support based on market demand and user feedback. Upcoming rails include:
Crypto: Solana, Cardano, Near Protocol, Cosmos Fiat: PayPal, Stripe Connect, Brazilian PIX, Indian UPI
Rail availability may vary by geographic region and regulatory requirements. Check our API reference for real-time rail availability.