# MindSwap > MindSwap is a non-custodial cross-chain swap service with a public HTTP API, a TypeScript SDK (`@mindswap/sdk`) and an MCP server (`@mindswap/mcp`). Quote a pair, create an order from a route, the user sends the deposit, and the order pays out to the user's own address. No account is needed to swap. Base URL: https://api.mindswap.io. Amounts are decimal strings, never numbers. Asset IDs are `:` (`btc:bitcoin`, `usdt:tron`). ## Ten-minute path 1. `GET /v1/assets`: find the asset IDs. 2. `GET /v1/quotes?from=btc:bitcoin&to=usdt:tron&amountIn=0.01`: pick a route. MIND's pick is in `mind`. 3. Confirm the route with the user and get their payout address (and a refund address for a fixed route). Never guess an address. 4. `POST /v1/orders` with the route's `routeId`, `pickedBy`, the addresses and a new `Idempotency-Key`. Store the key first; a retry with it never makes a second order. 5. Show `deposit` exactly: amount, address, memo, deadline. 6. `GET /v1/orders/{id}` every 30 to 60 seconds until the order is final. Money safety: on `create_in_doubt` never retry and never create another order; tell the user not to send funds. On `rate_limited`, wait `retryAfterMs`. ## Docs - [Everything in one file](https://mindswap.io/llms-full.txt): every endpoint, field, error and safety rule, for agents - [OpenAPI 3.1 document](https://api.mindswap.io/v1/openapi.json): the machine-readable contract (also at https://api.mindswap.io/openapi.json) - [Developer guide](https://mindswap.io/developers): overview and the ten-minute path - [API reference](https://mindswap.io/developers/api): endpoints with cURL, JavaScript, Python and Go - [SDK](https://mindswap.io/developers/sdk): `npm i @mindswap/sdk` - [Status](https://mindswap.io/developers/status): live API status ## Agent channels - MCP server: `npx -y @mindswap/mcp` (stdio), or hosted at https://api.mindswap.io/mcp (streamable HTTP). Send your key as `x-api-key`. - TypeScript SDK: `@mindswap/sdk`. - HTTP: send your key as `x-api-key: msk_live_…` or `Authorization: Bearer msk_live_…`. Quotes, assets and tracking need no key. ## Endpoints - `GET /v1/assets` (`listAssets`): List tradable assets - `GET /v1/networks` (`listNetworks`): List networks - `GET /v1/orders` (`listOrders`): List the orders made with this key - `POST /v1/orders` (`createOrder`): Create a swap order - `GET /v1/orders/{id}` (`getOrder`): Read a swap order - `GET /v1/orders/{id}/events` (`streamOrderEvents`): Stream live updates of an order - `POST /v1/orders/{id}/issues` (`reportIssue`): Report a problem with a swap order - `POST /v1/orders/track` (`trackOrder`): Track a swap order by ID and payout address - `GET /v1/pairs` (`getPair`): Check whether a pair can be swapped - `GET /v1/partner/earnings` (`getPartnerEarnings`): Read your key's partner fee earnings - `GET /v1/quotes` (`getQuotes`): Get swap quotes - `POST /v1/quotes/recipients` (`quoteRecipients`): Estimate each wallet of a multi-wallet swap - `GET /v1/quotes/stream` (`streamQuotes`): Stream quotes as late routes arrive - `GET /v1/rewards/program` (`rewardsProgramGet`): Points program and cashback tiers - `GET /v1/usage` (`getUsage`): Read this API key's usage