Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.
true when the network reports the transaction as successful (RPC status SUCCESS, Horizon successful). A failed Soroban transaction is an error response, not success: false
Parsed return value, discriminated on type: swap {amountIn, amountOut, intermediateAmounts?}, add_liquidity {amountA, amountB, shares}, remove_liquidity {amountA, amountB}, unknown {value}. null when it could not be parsed.
Time the transaction closed. Unix seconds as a string for soroban submissions (passed through from RPC getTransaction), ISO 8601 for horizon submissions
soroban for invokeHostFunction transactions, horizon for everything else
Available options:
soroban,
horizon
Example:
"soroban"
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Soroswap Finance","description":"The Swap Aggregator for Stellar: one API that quotes every Stellar venue and returns the best route, plus the Soroswap AMM.","colors":{"primary":"#8866DD","light":"#A98BE8","dark":"#6F4FC7"},"logo":{"light":"https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/logo/light.svg?fit=max\u0026auto=format\u0026n=1xzCGA5zGx88_Gb9\u0026q=85\u0026s=167296c66e3d90415a7f2aa982f7843b","dark":"https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/logo/dark.svg?fit=max\u0026auto=format\u0026n=1xzCGA5zGx88_Gb9\u0026q=85\u0026s=77ca3dbbc4d3854eb6f326c89561e074","href":"https://soroswap.finance"},"favicon":"https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/favicon.png?fit=max\u0026auto=format\u0026n=1xzCGA5zGx88_Gb9\u0026q=85\u0026s=001876061b5f304af9d8fa19a3ff1da0","api":{"openapi":"https://api.soroswap.finance/api-json","mdx":{"auth":{"method":"bearer"},"server":"https://api.soroswap.finance"}},"navbar":{"links":[{"href":"https://app.soroswap.finance","label":"Launch App"},{"href":"https://discord.gg/A2rQ3cm9XG","label":"Support"}],"primary":{"type":"button","label":"Open console","href":"https://console.soroswap.finance"}},"footer":{"socials":{"x":"https://x.com/SoroswapFinance","discord":"https://discord.gg/A2rQ3cm9XG","github":"https://github.com/soroswap"}},"integrations":{"posthog":{"apiKey":"phc_C6MfPNluY4B1Kx7kFa4d2XPJmcGHhQAplhnzD8hIt6G","apiHost":"https://us.i.posthog.com","sessionRecording":false}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"markdown":{"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 \u0026 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."]},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Dune Dashboard","icon":"chart-line","href":"https://dune.com/paltalabs/soroswap"},{"anchor":"GitHub","icon":"github","href":"https://github.com/soroswap"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/A2rQ3cm9XG"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"soroswap","hasAudioNarration":false,"actualSubdomain":"soroswap","customDomains":["docs.soroswap.finance"],"gitSource":{"type":"github","owner":"soroswap","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"}},"buildId":"6af23399611a194646c15860","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"Learn","count":39},{"language":"default","tag":"Soroswap AMM","count":34},{"language":"default","tag":"API Reference","count":27},{"language":"default","tag":"Aggregator API","count":15},{"language":"default","tag":"Concepts","count":15},{"language":"default","tag":"Technical Reference","count":13},{"language":"default","tag":"Tutorials","count":11},{"language":"default","tag":"Getting Started","count":7},{"language":"default","tag":"Account","count":6},{"language":"default","tag":"Market data","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/quote/send","slug":"/api-reference/quote/send","pageMetadata":{"openapi":"POST /send","description":"Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.","title":"Send","href":"/api-reference/quote/send"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"POST /send","description":"Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.","title":"Send","href":"/api-reference/quote/send"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/soroswap/8cf4cc027d03ca5b/analytics.js"],"openApiReferenceData":{"operation":{"description":"Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.","operationId":"SwapController_sendTransaction","parameters":["96a59910-bc2a-4995-943c-de8036d91251"],"requestBody":"33ad948a-bd80-48e1-a1f5-5530558facf4","responses":{"200":"378a3d24-751f-4e7d-bae3-d6abc72a3e23","400":"a3f5d981-3dce-48c2-85ef-17542e945133","401":"0a2b02b7-d496-4a32-aa88-8650b20ac770","403":"8dd0b628-e75a-4979-84c4-82a7e9d34ccf"},"summary":"Send","tags":["Quote"],"security":["f0769954-31ae-4275-93fc-c2e93c6cc435"],"method":"post","type":"path","servers":[],"path":"/send","baseUrlOptions":["https://api.soroswap.finance"],"title":"Send","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"96a59910-bc2a-4995-943c-de8036d91251":{"name":"network","required":false,"in":"query","description":"Network on which the operation will be performed","schema":{"enum":["testnet","mainnet"],"type":"string","isRequired":false,"description":"Network on which the operation will be performed","uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"requestBody":{"required":true,"description":"Data of the signed transaction","content":{"application/json":{"schema":{"type":"object","properties":{"xdr":{"type":"string","description":"The signed transaction in XDR format","isRequired":true,"uniqueKey":"xdr","typeLabel":"string"}},"required":["xdr"],"uniqueKey":"","typeLabel":"object"},"examples":{"sendTransaction":{"title":"sendTransaction","value":{"xdr":"AAAAAgAAAABiSu3MsKtQvDuQO5i2b..."}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"378a3d24-751f-4e7d-bae3-d6abc72a3e23":{"description":"Transaction submitted and confirmed. Normalized SendTransactionResponse, the same shape for soroban and horizon submissions.","content":{"application/json":{"schema":{"type":"object","properties":{"txHash":{"type":"string","example":"a1b2c3d4e5f6...","description":"Transaction hash","uniqueKey":"txHash","typeLabel":"string"},"success":{"type":"boolean","example":true,"description":"true when the network reports the transaction as successful (RPC status SUCCESS, Horizon successful). A failed Soroban transaction is an error response, not success: false","uniqueKey":"success","typeLabel":"boolean"},"result":{"oneOf":[{"type":"object","description":"Parsed return value, discriminated on `type`: swap {amountIn, amountOut, intermediateAmounts?}, add_liquidity {amountA, amountB, shares}, remove_liquidity {amountA, amountB}, unknown {value}. null when it could not be parsed.","properties":{"type":{"type":"string","enum":["swap","add_liquidity","remove_liquidity","unknown"],"example":"swap","uniqueKey":"result.oneOf.0.type","typeLabel":"enum\u003cstring>"},"amountIn":{"type":"string","example":"10000000","uniqueKey":"result.oneOf.0.amountIn","typeLabel":"string"},"amountOut":{"type":"string","example":"5000000","uniqueKey":"result.oneOf.0.amountOut","typeLabel":"string"},"intermediateAmounts":{"type":"array","items":{"type":"string","uniqueKey":"result.oneOf.0.intermediateAmounts.items.[INDEX]","typeLabel":"string"},"uniqueKey":"result.oneOf.0.intermediateAmounts","typeLabel":"string[]"},"amountA":{"type":"string","uniqueKey":"result.oneOf.0.amountA","typeLabel":"string"},"amountB":{"type":"string","uniqueKey":"result.oneOf.0.amountB","typeLabel":"string"},"shares":{"type":"string","uniqueKey":"result.oneOf.0.shares","typeLabel":"string"},"value":{"description":"Raw native value, only for type unknown","uniqueKey":"result.oneOf.0.value","typeLabel":"any"}},"uniqueKey":"result.oneOf.0","typeLabel":"object"},{"type":"null","description":"Parsed return value, discriminated on `type`: swap {amountIn, amountOut, intermediateAmounts?}, add_liquidity {amountA, amountB, shares}, remove_liquidity {amountA, amountB}, unknown {value}. null when it could not be parsed.","properties":{"type":{"type":"string","enum":["swap","add_liquidity","remove_liquidity","unknown"],"example":"swap"},"amountIn":{"type":"string","example":"10000000"},"amountOut":{"type":"string","example":"5000000"},"intermediateAmounts":{"type":"array","items":{"type":"string"}},"amountA":{"type":"string"},"amountB":{"type":"string"},"shares":{"type":"string"},"value":{"description":"Raw native value, only for type unknown"}},"uniqueKey":"result.oneOf.1","typeLabel":"null"}],"uniqueKey":"result","typeLabel":"object | null"},"ledger":{"type":"number","example":12345,"description":"Ledger the transaction was included in","uniqueKey":"ledger","typeLabel":"number"},"createdAt":{"type":"string","example":"1793711685","description":"Time the transaction closed. Unix seconds as a string for soroban submissions (passed through from RPC getTransaction), ISO 8601 for horizon submissions","uniqueKey":"createdAt","typeLabel":"string"},"latestLedger":{"type":"number","example":12350,"description":"Latest known ledger; for horizon submissions it repeats ledger","uniqueKey":"latestLedger","typeLabel":"number"},"latestLedgerCloseTime":{"type":"string","example":"1793711710","description":"Close time of the latest known ledger. Unix seconds as a string for soroban submissions; for horizon submissions it repeats createdAt (ISO 8601)","uniqueKey":"latestLedgerCloseTime","typeLabel":"string"},"feeBump":{"type":"boolean","example":false,"description":"Whether the envelope was a fee bump (always false for Horizon submissions)","uniqueKey":"feeBump","typeLabel":"boolean"},"feeCharged":{"type":"string","example":"0","description":"Fee charged, in stroops, from Horizon fee_charged. Always \"0\" for soroban submissions, because RPC getTransaction does not report a fee","uniqueKey":"feeCharged","typeLabel":"string"},"protocol":{"type":"string","enum":["router","aggregator","sdex","unknown"],"example":"router","description":"router for the Soroswap router, aggregator for every other whitelisted Soroban target, sdex for Horizon submissions","uniqueKey":"protocol","typeLabel":"enum\u003cstring>"},"submissionMethod":{"type":"string","enum":["soroban","horizon"],"example":"soroban","description":"soroban for invokeHostFunction transactions, horizon for everything else","uniqueKey":"submissionMethod","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"txHash":"a1b2c3d4e5f6...","success":true,"result":{"type":"swap","amountIn":"10000000","amountOut":"5000000","intermediateAmounts":["\u003cstring>"],"amountA":"\u003cstring>","amountB":"\u003cstring>","shares":"\u003cstring>","value":"\u003cunknown>"},"ledger":12345,"createdAt":"1793711685","latestLedger":12350,"latestLedgerCloseTime":"1793711710","feeBump":false,"feeCharged":"0","protocol":"router","submissionMethod":"soroban"}}},"exampleType":"generated"}},"exampleType":"generated"},"a3f5d981-3dce-48c2-85ef-17542e945133":{"description":"The transaction was rejected or did not succeed. Returned when: the XDR cannot be parsed; the first operation invokes a contract that is not on the Soroswap whitelist; Soroban RPC sendTransaction returns status ERROR (body: title ERROR, detail = result code, extra.resultXdr); the transaction lands on chain with status FAILED (body title FAILED, detail = the operation result code when it can be parsed); Horizon rejects a horizon submission. Known bug: a DUPLICATE or TRY_AGAIN_LATER status from the RPC currently surfaces as a 400 with an empty {} body instead of being retried or reported, so resubmitting an already-sent transaction looks like a generic 400. A FAILED transaction caused by an archived ledger entry returns 428 with a restore action instead, when the restore transaction can be built.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"0a2b02b7-d496-4a32-aa88-8650b20ac770":{"description":"A valid JWT of a disabled account.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"8dd0b628-e75a-4979-84c4-82a7e9d34ccf":{"description":"Missing or invalid credential.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"f0769954-31ae-4275-93fc-c2e93c6cc435":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","scopes":[],"schemeName":"bearer"}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","bearerFormat":"JWT","type":"http","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"https://api.soroswap.finance/api-json"},"subdomain":"soroswap","siteName":"Soroswap Finance","title":"Send - Soroswap Finance","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-25T21:06:00.621Z","originalFileLocation":"api-reference/quote/send.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Soroswap Finance\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send - Soroswap Finance\">\u003cmeta data-mint-head property=\"og:description\" content=\"Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Soroswap Finance\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.soroswap.finance/api-reference/quote/send\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://soroswap.mintlify.site/_mintlify/api/og/v2?division=Swap\u0026amp;title=Send\u0026amp;description=Submits+a+signed+XDR+built+by+the+API+to+Stellar+through+Soroban+RPC+or+Horizon+and+returns+txHash+and+success.+400+Transaction+Failed+when+the+network+rejects+\u0026amp;theme=8d438c899d3ef343df4b702c\u0026amp;signature=e8d249c143a48896022ed84887c9d8683fefd337b75d9bb66c1668d28de8543e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send - Soroswap Finance\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://soroswap.mintlify.site/_mintlify/api/og/v2?division=Swap\u0026amp;title=Send\u0026amp;description=Submits+a+signed+XDR+built+by+the+API+to+Stellar+through+Soroban+RPC+or+Horizon+and+returns+txHash+and+success.+400+Transaction+Failed+when+the+network+rejects+\u0026amp;theme=8d438c899d3ef343df4b702c\u0026amp;signature=e8d249c143a48896022ed84887c9d8683fefd337b75d9bb66c1668d28de8543e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/soroswap/fuylThFPBoCQikOJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Soroswap Finance\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8866DD\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.soroswap.finance/api-reference/quote/send\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/quote/send.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.soroswap.finance/#organization\",\"name\":\"Soroswap Finance\",\"url\":\"https://docs.soroswap.finance\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/logo/light.svg?fit=max\u0026auto=format\u0026n=1xzCGA5zGx88_Gb9\u0026q=85\u0026s=167296c66e3d90415a7f2aa982f7843b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.soroswap.finance#website\",\"name\":\"Soroswap Finance\",\"url\":\"https://docs.soroswap.finance\",\"publisher\":{\"@id\":\"https://docs.soroswap.finance/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.soroswap.finance/api-reference/quote/send#webpage\",\"url\":\"https://docs.soroswap.finance/api-reference/quote/send\",\"name\":\"Send\",\"description\":\"Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.\",\"dateModified\":\"2026-10-25T21:06:00.621Z\",\"isPartOf\":{\"@id\":\"https://docs.soroswap.finance#website\"},\"breadcrumb\":{\"@id\":\"https://docs.soroswap.finance/api-reference/quote/send#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.soroswap.finance/api-reference/quote/send#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Swap\",\"item\":\"https://docs.soroswap.finance/api-reference/quote/protocols\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send\",\"item\":\"https://docs.soroswap.finance/api-reference/quote/send\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.soroswap.finance/api-reference/quote/send#apireference\",\"headline\":\"Send\",\"name\":\"Send\",\"description\":\"Submits a signed XDR built by the API to Stellar through Soroban RPC or Horizon and returns txHash and success. 400 Transaction Failed when the network rejects it; quote and build again instead of resending.\",\"url\":\"https://docs.soroswap.finance/api-reference/quote/send\",\"mainEntityOfPage\":{\"@id\":\"https://docs.soroswap.finance/api-reference/quote/send#webpage\"},\"dateModified\":\"2026-10-25T21:06:00.621Z\",\"publisher\":{\"@id\":\"https://docs.soroswap.finance/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.soroswap.finance#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Soroswap Finance\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Soroswap Finance","nav":{"global":{"anchors":[{"anchor":"Dune Dashboard","icon":"chart-line","href":"https://dune.com/paltalabs/soroswap"},{"anchor":"GitHub","icon":"github","href":"https://github.com/soroswap"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/A2rQ3cm9XG"}]},"tabs":[{"tab":"Aggregator API","pages":[{"title":"Aggregator API","href":""}]},{"tab":"API Reference","groups":[{"group":"Swap","pages":[{"openapi":"GET /protocols","title":"Available protocols","href":"/api-reference/quote/protocols"},{"openapi":"POST /quote","title":"Quote","href":"/api-reference/quote/quote"},{"openapi":"POST /quote/build","description":"Turns a quote into an unsigned XDR for from to sign. Send the quote unchanged and sign right away: a Soroban XDR is valid for 180 seconds. 428 CREATE_TRUSTLINE when a trustline is missing, 409 Quote stale when your fee changed.","title":"Build","href":"/api-reference/quote/build"},{"openapi":"POST /send","title":"Send","href":"/api-reference/quote/send"},{"openapi":"POST /swap","description":"Quote and build in one call: /quote fields plus from. Returns 200 with an action: SIGN_TRANSACTION, or CREATE_TRUSTLINE / RESTORE_BALANCE / RESTORE_CONTRACT with the XDR that resolves it. inlinePrerequisites returns the swap XDR too.","title":"Swap (all-in-one)","href":"/api-reference/quote/swap"}]},{"group":"Partner","pages":[{"openapi":"GET /partner","title":"Partner profile","href":"/api-reference/partner/partner-profile"},{"openapi":"PUT /partner/rate","title":"Set the fee your users pay","href":"/api-reference/partner/set-rate"},{"openapi":"PUT /partner/payout-address","title":"Set the USDC payout address","href":"/api-reference/partner/set-payout-address"},{"openapi":"GET /partner/statements","title":"List your payouts","href":"/api-reference/partner/list-payouts"},{"openapi":"GET /partner/statements/{payoutId}","title":"Statement for one payout","href":"/api-reference/partner/payout-statement"}]},{"group":"Market data","pages":[{"openapi":"GET /price","title":"Price information","href":"/api-reference/market-data/price"},{"openapi":"GET /asset-list","title":"Get asset lists","href":"/api-reference/market-data/asset-lists"},{"openapi":"GET /pools","title":"Pools","href":"/api-reference/market-data/pools"},{"openapi":"GET /pools/{tokenA}/{tokenB}","title":"Pool for two tokens","href":"/api-reference/market-data/pool"},{"openapi":"GET /balances/{walletAddress}","title":"Get all token balances for an address","href":"/api-reference/market-data/balances"},{"openapi":"GET /balances/{walletAddress}/{tokenAddress}","title":"Get balance for a specific token","href":"/api-reference/market-data/token-balance"}]},{"group":"Liquidity (Soroswap AMM)","pages":[{"openapi":"POST /liquidity/add","title":"Add liquidity to a pool","href":"/api-reference/liquidity/add"},{"openapi":"POST /liquidity/remove","title":"Remove liquidity from a pool","href":"/api-reference/liquidity/remove"},{"openapi":"GET /liquidity/positions/{address}","title":"Get user positions in pools","href":"/api-reference/liquidity/positions"}]},{"group":"Account","pages":[{"openapi":"POST /register","title":"Register a new user","href":"/api-reference/account/register"},{"openapi":"POST /login","title":"Login","href":"/api-reference/account/login"},{"openapi":"POST /refresh","title":"Refresh access token","href":"/api-reference/account/refresh"},{"openapi":"POST /api-keys/generate","title":"Generate API Key","href":"/api-reference/account/generate-api-key"},{"openapi":"GET /api-keys","title":"Get API Keys","href":"/api-reference/account/list-api-keys"},{"openapi":"POST /api-keys/{keyId}/revoke","title":"Revoke API Key","href":"/api-reference/account/revoke-api-key"}]},{"group":"Utilities","pages":[{"openapi":"GET /health","title":"Health","href":"/api-reference/utilities/health"},{"openapi":"GET /api/{network}/{contractName}","title":"Soroswap contracts","href":"/api-reference/utilities/contracts"}]}]},{"tab":"Soroswap AMM","pages":[{"title":"Soroswap AMM","href":"/amm"}]},{"tab":"Learn","pages":[{"title":"Learn","href":"/what-is-soroswap"}]}]},"basePath":"","title":"Send - Soroswap Finance","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}