> ## Documentation Index
> Fetch the complete documentation index at: https://docs.soroswap.finance/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Soroswap Aggregator API: base URL https://api.soroswap.finance, pick the network with ?network=mainnet or ?network=testnet (omitted means mainnet).
> Auth: Authorization: Bearer sk_... on every call. Get a key at https://console.soroswap.finance/register. A missing or invalid key returns 401 with code and registerUrl (POST /send returns 403 instead); an expired JWT or a missing role returns 403. Free plan 1 request/s; see https://docs.soroswap.finance/api/plans.md.
> Flow: POST /quote (assetIn, assetOut as C... contract addresses, amount as an integer string in the smallest unit, tradeType, protocols) -> POST /quote/build with the unchanged quote and from -> the user signs the XDR -> POST /send. Build right after quoting: a Soroban XDR is valid for 180 seconds. Submit it as is, never re-simulate it.
> Partner id: every account has one (9 hex chars, permanent). Read partnerId from GET /partner, or in the console at https://console.soroswap.finance under Fees & payouts. The partner fee itself is switched on by Soroswap; see https://docs.soroswap.finance/api/fees.md.
> AI tools: docs MCP at https://docs.soroswap.finance/mcp (claude mcp add --transport http soroswap-docs https://docs.soroswap.finance/mcp), skill with npx skills add https://docs.soroswap.finance. Other clients: https://docs.soroswap.finance/api/build-with-ai.md.
> Units and Stellar pitfalls: https://docs.soroswap.finance/api/stellar-gotchas.md. Errors and retries: https://docs.soroswap.finance/api/errors.md.

# Status and claim

> Mainnet only. GET /bridge/status follows a bridge transfer through burned, attesting, forwarding, claimable, complete or failed; POST /bridge/claim/build builds the Stellar transaction that mints USDC into Stellar; every bridge error and what to do.

After the `bridge` step from [Quote, build and sign](https://docs.soroswap.finance/api/bridge-transfer.md) has landed, follow
the transfer until it is delivered.

## Status

Pass the hash of the `bridge` step's transaction:

```bash theme={null}
curl "https://api.soroswap.finance/bridge/status?network=mainnet&asset=USDC&sourceChain=base&txHash=0x..." \
  -H "Authorization: Bearer $SOROSWAP_API_KEY"
```

`phase` is one of:

| Phase | Meaning |
| - | - |
| `burned` | The source transaction is sent, but Circle or LayerZero hasn't picked it up yet. An unknown hash also reads `burned`. |
| `attesting` | Waiting for the source chain's finality and the attestation. |
| `forwarding` | Attested; the mint on the destination is on its way. |
| `claimable` | USDC into Stellar: ready to claim. `claim.available` says whether a claim sent now would succeed. |
| `complete` | Delivered. `destinationTxHash` carries the mint, when known. |
| `failed` | The destination reported a failure; `detail` says why. |

Poll every few seconds. How long a transfer takes depends on the source chain's finality: see
Circle's [block confirmation times](https://developers.circle.com/cctp/concepts/finality-and-block-confirmations).

## 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:

```bash theme={null}
curl -X POST "https://api.soroswap.finance/bridge/claim/build?network=mainnet" \
  -H "Authorization: Bearer $SOROSWAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "sourceChain": "base", "txHash": "0x...", "from": "G..." }'
```

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.

## Errors

| Status | When | Do |
| - | - | - |
| 400 | `bridge is mainnet only` | Send `network=mainnet`. |
| 400 | `Amount too small` | Send at least `limits.minAmountIn`. |
| 400 | `Recipient not ready` | The recipient needs a trustline or a valid wallet address; see `detail`. |
| 400 | `Sender not ready` | The Solana sender has no USDC token account. |
| 401 | No or invalid API key | See [Errors](https://docs.soroswap.finance/api/errors.md). |
| 409 | `Quote stale` | Quote again and show the new amounts. |
| 409 | `Already claimed` | The claim is done. |
| 425 | `Not attested yet` | Retry the claim once the status is `claimable`. |
| 428 | `CREATE_TRUSTLINE` | The Stellar sender signs and submits `actionData.xdr`, then build again. |
| 503 | An upstream (Circle, LayerZero, a chain RPC) is down | Retry with backoff. |

Every route and field is in the [API Reference](https://docs.soroswap.finance/api-reference/bridge/quote.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.