[ 01 / 04 ]

Universal Asset Bridge

/// one bridge. all chains. atomic swaps.

Bridge assets between 20+ blockchains with atomic swap guarantees. Real-time exchange rates, transaction tracking, and automatic rollback on failure.

Scroll to explore
Section 01
[ 01 / 04 ]

Overview

OASIS Universal Asset Bridge enables atomic swaps between 20+ blockchains. Real-time exchange rates from CoinGecko, transaction status tracking, and automatic rollback protect users from failed transactions.

Traditional bridges require separate implementations for each chain pair. OASIS Bridge provides a unified interface with per-chain bridge services (SolanaBridgeService, ArbitrumBridgeService, etc.) that all implement the IOASISBridge interface for consistent API access.

[ 02 / 04 ]

Why OASIS Bridge?

/ A

Atomic Swaps

All-or-nothing transactions prevent partial transfers. If any step fails, the entire transaction is rolled back automatically, protecting users from lost funds.

/ B

Real-Time Exchange Rates

CoinGecko integration provides real-time exchange rates for 17+ tokens. Accurate pricing ensures fair swaps across all supported chain pairs.

/ C

Multi-Chain Support

Bridge between Solana, Arbitrum, Ethereum, Polygon, Base, and 15+ more chains. Unified interface with per-chain bridge services for optimal performance.

/ D

Transaction Tracking

Real-time status updates for all bridge transactions. Automatic rollback on failure. Complete transaction history and audit trail.

[ 03 / 04 ]

Use Cases

SWAP

Cross-Chain Asset Transfers

Transfer assets between any supported blockchain. Atomic swaps ensure all-or-nothing execution, protecting users from partial transfers and lost funds.

DEFI

DeFi Interoperability

Enable DeFi protocols to work across multiple chains. Users can access liquidity and yield opportunities on any supported blockchain.

MANAGE

Multi-Chain Portfolio

Manage assets across 20+ blockchains from a single interface. Bridge tokens between chains to optimize for gas costs, yield, or liquidity.

[ 04 / 04 ]

Core Concept

Atomic Swaps: A New Bridge Primitive

Bridge assets between any supported chain with atomic swap guarantees. Real-time exchange rates and automatic rollback protect users from failed transactions.

Bridge Assets - Atomic Swap Bridge between any supported chain with atomic guarantees
// Bridge SOL from Solana to ETH on Ethereum
POST /api/bridge/bridge-asset
{
  "fromChain": "Solana",
  "toChain": "Ethereum",
  "fromToken": "SOL",
  "toToken": "ETH",
  "amount": 1.0,
  "fromAddress": "...",
  "toAddress": "..."
}

// Atomic swap process:
// 1. Locks SOL on Solana
// 2. Calculates exchange rate
// 3. Mints equivalent ETH on Ethereum
// 4. If any step fails, entire transaction rolls back
Get Exchange Rate - Real-Time CoinGecko integration for accurate pricing
// Get exchange rate between any token pair
GET /api/bridge/exchange-rate
{
  "fromToken": "SOL",
  "toToken": "ETH"
}

// Returns:
{
  "fromToken": "SOL",
  "toToken": "ETH",
  "rate": 0.0234,
  "timestamp": "2025-01-15T10:30:00Z",
  "source": "CoinGecko"
}

// Supports 17+ tokens across all chains
// Real-time updates every few seconds
Track Transaction - Status Updates Real-time status and automatic rollback
// Get bridge transaction status
GET /api/bridge/transaction-status/{transactionId}

// Returns:
{
  "transactionId": "...",
  "status": "completed",
  "fromChain": "Solana",
  "toChain": "Ethereum",
  "amount": 1.0,
  "exchangeRate": 0.0234,
  "steps": [
    {"step": "lock", "status": "completed"},
    {"step": "mint", "status": "completed"}
  ],
  "rollback": false
}

// Automatic rollback if any step fails