Stablecoin to Stablecoin Conversion

Seemlessly convert Stablecoins from one currency/chain to another Stablecoin

Currently only supporting USDT <> USDC conversions

Our stablecoin to stablecoin product allows a user to convert stablecoins into other stablecoins. Programmatically transfer stablecoins to Bridge and tell us which address and via what chain you wish to receive stablecoins. We handle all the underlying conversions and funds orchestration required to deposit crypto into a customer's blockchain address.

To facilitate an stablecoin to stablecoin conversaion, you need to:

Example - POST /transfers

Here is an example showing how to convert USDT on Ethereum to USDC on Ethereum.

First, call the POST /transfers endpoint

curl --location --request POST 'https://api.bridge.xyz/v0/transfers' \
--header 'Content-Type: application/json' \
--header 'Api-Key: <API Key>' \
--header 'Idempotency-Key: <generate a idempotency-key>' \
--data-raw '{
  "amount": "100.00",
  "developer_fee": "0.5",
  "on_behalf_of": "customer_123",
  "source": {
    "payment_rail": "ethereum",
    "currency": "usdt",
    "from_address": "0xdeadbeef",
  },
  "destination": {
    "payment_rail": "ethereum",
    "currency": "usdc",
    "to_address": "0x0ff1ce",
  }
}'

Bridge will respond with:

{
  "id": "transfer_123",
  "amount": "100.00",
  "developer_fee": "0.5",
  "state": "awaiting_funds",
  "on_behalf_of": "customer_123",
  "source_deposit_instructions": {
    "payment_rail": "ethereum",
    "amount": "100.00",
    "currency": "usdt",
    "from_address": "0xdeadbeef",
    "to_address": "0xc0ff33",
  },
  "source": {
    "payment_rail": "ethereum",
    "currency": "usdt",
    "from_address": "0xdeadbeef",
  },
  "destination": {
    "payment_rail": "ethereum",
    "currency": "usdc",
    "to_address": "0x0ff1ce",
  },
  "receipt": {
    "initial_amount": "100.0",
    "developer_fee": "0.5",
    "exchange_fee": "0.0",
    "gas_fee": "0.0",
    "subtotal_amount": "99.5",
    "final_amount": "99.5"
  },
  "created_at": "2023-04-26 00:44:03",
  "updated_at": "2023-04-26 00:44:03",
}

Then, have your customer send crypto into their Bridge deposit address (0xc0ff33), specified in source_deposit_instructions. When the crypto lands and has been confirmed by Bridge, we will automatically send the stablecoins.