Skip to main content
The OpenXSwitch Swap API allows developers to execute instant same-chain and cross-chain asset swaps programmatically across supported blockchain networks. By routing liquidity through decentralized exchanges (DEXs), automated market makers (AMMs), and Request-for-Quote (RFQ) venues, OpenXSwitch provides fast, low-cost asset conversions directly within your user wallets or treasury operations.

Supported Liquidity & Asset Routes

  • EVM & Solana Cross-Chain Bridges: Enables bi-directional bridging and liquidity routing between Solana and EVM ecosystems (Ethereum L1, Arbitrum, Optimism, Base, Polygon) to swap assets to and fro seamlessly with minimal slippage.
  • EVM Same-Chain Swaps: Executes high-speed, capital-efficient DEX swaps directly on supported EVM chains.
  • Tokenized Stock Swaps (via Robinhood Chain): Facilitates instant on-chain swaps between Robinhood Stock Tokens (e.g., NVDA, AAPL, SPY) and stablecoins (e.g., USDG) via native RFQ execution.
  • Bitcoin Swaps (Coming Soon): Enables decentralized cross-chain swaps between native Bitcoin (BTC) and EVM ecosystems.

Key Benefits

  • Unified API Interface: Swap and bridge digital assets and tokenized stocks across disparate blockchains using a single RESTful endpoint.
  • Gasless Execution: Integrate with OpenXSwitch’s built-in ERC-4337 Paymaster and Solana Gas Station infrastructure to execute transactions gaslessly or allow users to pay route fees in stablecoins.
  • Auto-Routing: Automated routing across DEX and bridge venues to guarantee optimal liquidity depth and execution speed across crypto and tokenized equities.
  • Low-Cost Settlement: Capital-efficient trade routing with transparent execution fees starting as low as 0.05% per swap.

How Asset Swaps & Bridges Work

  1. Request a Quote: Query the OpenXSwitch API with the source chain, source asset, destination chain, destination asset, and amount.
  2. Review Execution Parameters: The API queries underlying DEX aggregators and bridge protocols to return live exchange rates, expected slippage, estimated execution time, and fee breakdown.
  3. Generate CallData & Execute: The liquidity venue generates the optimized transaction callData. OpenXSwitch then securely signs and executes the transaction on-chain on behalf of the smart wallet or treasury account.
  4. Monitor Lifecycle: Track settlement or refund status in real-time via OpenXSwitch Webhooks.

Security & On-Chain Execution

  • Protocol-Generated CallData: OpenXSwitch queries decentralized exchange and bridging protocols to construct calibrated, optimized callData payload parameters without exposing private keys or taking unneeded custody during route generation.
  • TEE Security & On-Chain Execution: Every transaction payload is validated, signed, and broadcast inside OpenXSwitch’s secure Trusted Execution Environment (TEE). This ensures key isolation, hardware-enforced integrity, and institutional-grade transaction orchestration directly to the destination blockchain network.
  • Slippage & Deadline Controls: Every generated payload includes strictly enforced slippage tolerance bounds and transaction execution deadlines to protect users from front-running, sandwich attacks, or extreme market volatility.