Swipelux
Rails

Rails Guide

Rails are the foundation of the Swipelux transfer system. Each rail represents a type of payment method for moving value.

For complete API specification, see the API Reference.

Supported Crypto Rails

We support transfers across the following blockchain networks:

RailNetwork
polygonPolygon
ethereumEthereum
bscBNB Smart Chain
avalancheAvalanche C-Chain
optimismOptimism
arbitrumArbitrum One
solanaSolana
stellarStellar
tonTON

Crypto Transfer Example

{
  "from": {
    "rail": "polygon",
    "id": "cus_123",
    "amount": "25"
  },
  "to": {
    "rail": "polygon",
    "id": "0x1234567890abcdef1234567890abcdef12345678",
    "amount": "25"
  }
}

Supported Fiat Rails

RailMethod
wireBank wire transfer (SEPA/SWIFT)
cardCredit/Debit card
open_bankingOpen Banking
apple_payApple Pay

Fiat to Crypto Example (Pay-in)

{
  "from": {
    "rail": "card",
    "id": "cus_123",
    "amount": "100",
    "currency": "USD"
  },
  "to": {
    "rail": "polygon",
    "id": "cus_123",
    "amount": "100",
    "currency": "USDC"
  }
}

OnRamp Widget

For card-based crypto purchases, use our embeddable OnRamp Widget which provides:

  • Credit/debit card payments
  • Apple Pay support
  • Customizable appearance and branding
  • Pre-filled customer data

Quick Widget Integration

<script src="https://cdn.jsdelivr.net/npm/@swipelux/onramp-js@^1.0.0"></script>
<swipelux-widget api-key="YOUR_PUBLISHABLE_API_KEY"></swipelux-widget>

See Widget Customization for full configuration options.

Next Steps

On this page