Skip to main content
The Soroswap API moves stablecoins into and out of Stellar, so your users can arrive with funds from another chain and leave with them. Two assets are supported:
  • USDC over Circle CCTP V2: USDC is burned on the source chain and Circle mints the same amount on the destination.
  • USDT over USDT0, the LayerZero OFT. On Stellar it arrives as the USDT0 asset.
The API quotes the transfer, checks that the recipient can receive it, and builds the unsigned transactions for the source chain. It never signs, never holds funds and never submits anything: your user signs every step with their own wallet.
The bridge is mainnet only. network=testnet returns 400 bridge is mainnet only.

The flow

  1. GET /bridge/routes lists the chains and which source can reach which destination.
  2. POST /bridge/quote prices a transfer and checks the recipient.
  3. POST /bridge/build re-quotes and returns the steps to sign on the source chain.
  4. The user signs and sends each step, in order.
  5. GET /bridge/status follows the transfer until it is complete.
  6. USDC into Stellar only: POST /bridge/claim/build returns the Stellar transaction that mints the USDC to the recipient.
Every route needs your API key, like the rest of the API. See Quickstart.

Routes

The response has one entry per asset. Each chain has an id (the value you pass as sourceChain or destinationChain), its kind (stellar, evm or solana), the token address, its decimals, and fastSource, whether USDC can leave it with a Fast Transfer. routes lists, for each source, the destinations it reaches. Read the chain list from this route instead of hardcoding it: chains get added.

Quote

Decimals differ by chain. Stellar tokens have 7 decimals and every other chain’s USDC and USDT have 6. 10 USDC is "10000000" on Base and "100000000" on Stellar.
A successful quote returns 201:
  • amountIn is what leaves the sender, in source units. amountOut is the guaranteed minimum the recipient gets, in destination units. For USDC that is amountIn minus maxFee, the most Circle can keep.
  • fees lists what the transfer pays:
    • cctp_protocol: Circle’s fee, in bps. It is 0 for a standard transfer and charged on Fast Transfers.
    • cctp_forward: Circle’s Forwarding Service fee, when Circle mints on the destination for the user (every USDC route except into Stellar).
    • oft_protocol: the USDT0 fee.
    • layerzero_messaging: the LayerZero fee in the source chain’s native token (ETH, XLM…), marked paidSeparately: true. It is not taken from the amount: the user pays it as gas.
  • recipient.ready is false when the recipient can’t receive yet, with a reason. A Stellar G... account needs a trustline to the asset. Without a recipient, checked is false.
  • claimRequired: true means the transfer ends with a claim on Stellar (USDC into Stellar).
  • limits.minAmountIn is the smallest amount that covers the fees. A smaller amount returns 400 Amount too small.
  • expiresAt is 30 seconds out. /bridge/build quotes again anyway.
Show the user amountOut and the fees before they sign.

Build

Send the quote back unchanged, with the addresses that will sign and receive:
The response is { quote, steps }. quote is the fresh quote the steps were built from. If the route now delivers less (EXACT_IN) or costs more (EXACT_OUT) than the quote you posted, the build returns 409 Quote stale: quote again and show the user the new numbers. steps are in order. Each one has a kind (reset_approval, approval, bridge or claim), the chain it runs on, a human description and a status:
  • ready: sign and send tx now.
  • rebuild_after_previous: no tx yet. Once the previous step has landed, call /bridge/build again to get it.
Every step must land before the next one is sent.

Signing each kind of transaction

tx.format tells you how to sign it.
{ format: "evm", chainId, to, data, value }. Send it from the sender’s wallet on chainId, as is. value is in wei: "0" for USDC, the LayerZero fee for USDT.
All EVM steps come back ready together: an approval for exactly the amount when the allowance is short, then the bridge. USDT on Ethereum may add a reset_approval first, because that token requires the allowance to go to zero before it changes. The API does not check balances; the wallet’s own estimate does.

Status

Pass the hash of the bridge step’s transaction:
phase is one of: Poll every few seconds. How long a transfer takes depends on the source chain’s finality: see Circle’s block confirmation times.

Claim (USDC into Stellar)

USDC into Stellar is minted by a Stellar transaction that someone has to submit. When the status is claimable, build it:
The response is { steps } with one ready step of kind claim and a stellar_xdr transaction. from is any Stellar G... account. It only pays the transaction fee: the USDC always goes to the recipient fixed at the burn. So your own account can claim for the user, and the user never needs XLM for it.
  • 425 Not attested yet: Circle hasn’t attested the burn. Retry once the status is claimable.
  • 409 Already claimed: it is done. Nothing to retry.

Rules worth knowing

  • Recipients on Stellar. USDC goes to a G... account with a USDC trustline, a C... contract or an M... address. USDT goes to a G... account with a USDT0 trustline only. A recipient that can’t receive returns 400 Recipient not ready at build.
  • Recipients on Solana. Use the wallet address, never a token account. A wallet with no USDC token account yet is fine: Circle creates it and the quote’s fee includes that.
  • EVM addresses must have a valid EIP-55 checksum, or be all lowercase. A mistyped mixed-case address returns 400 before anything is burned.
  • Stellar amounts have 7 decimals and CCTP has 6. A 7th decimal is rounded down before the burn, and amountIn shows the rounded value.
  • Solana senders need a USDC token account (400 Sender not ready otherwise) and enough SOL for the fee and Circle’s event account rent. The sender can reclaim that rent from Circle later.

Errors

Every route and field is in the API Reference.