Returns a non-binding reference price for a cross-chain swap. Unlike GET /getAction, this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it’s priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses swap-action semantics regardless of any actionType you pass.
sender and recipient are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use GET /getAction instead.
GET
/
getQuote
Get Quote
curl --request GET \ --url https://api-v2.swaps.xyz/api/getQuote \ --header 'x-api-key: <api-key>'
Destination token address. Use native for the chain's native asset.
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
Solana address that would pay for tx fees and rent (e.g. ATA creation) if this quote were later executed. Only used for Solana same-chain swaps.
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
Price the route as if gasless execution were requested.
Optional: Has limited effect on this endpoint's response — executions/executionsType are never returned by getQuote, so this mainly affects fee computation, not the response shape.
Fee charged by a gasless relay provider, denominated in USDT. Rarely populated on this endpoint since executionsType/executions are not returned here — present mainly for schema parity with GET /getAction.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Swaps API Documentation","description":"Swaps is the execution layer for moving value across chains: swaps, bridges, cross-chain contract calls, prediction market trading, and dedicated stableswap liquidity — behind one API. Users transact with any token on any chain; Swaps handles routing, transaction construction, and end-to-end tracking.","colors":{"primary":"#6366F1","light":"#8B5CF6","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/swaps/0Y1Q5nsbTP7RcDGa/logo/light.svg?fit=max\u0026auto=format\u0026n=0Y1Q5nsbTP7RcDGa\u0026q=85\u0026s=b4ef18d882340b146df26c61511553d2","dark":"https://mintcdn.com/swaps/0Y1Q5nsbTP7RcDGa/logo/dark.svg?fit=max\u0026auto=format\u0026n=0Y1Q5nsbTP7RcDGa\u0026q=85\u0026s=59d4110408236ccb8bf596629a4999a0"},"favicon":"https://mintcdn.com/swaps/0Y1Q5nsbTP7RcDGa/favicon.svg?fit=max\u0026auto=format\u0026n=0Y1Q5nsbTP7RcDGa\u0026q=85\u0026s=0cd613f8ed2a18d7e151a1c01caa9db5","navbar":{"primary":{"type":"button","label":"Get Started","href":"https://dashboard.moonpay.com/signup"}},"footer":{"socials":{"x":"https://x.com/moonpay","linkedin":"https://www.linkedin.com/company/moonpay"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"swaps","hasAudioNarration":false,"actualSubdomain":"swaps","customDomains":["docs.swaps.xyz"],"gitSource":{"type":"github","owner":"swaps-xyz","repo":"box-monorepo","deployBranch":"main","contentDirectory":"apps/box-docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad7945dd201333bc5d36e53","collectionId":"986309f2-3617-4b94-a80e-23119a550aa4","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad7945dd201333bc5d36e53"},"entitlements":{},"buildId":"6ad7945dd201333bc5d36e53","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Prediction Market Reference","count":24},{"language":"default","tag":"Documentation","count":10},{"language":"default","tag":"Swap API Reference","count":10},{"language":"default","tag":"Trading","count":8},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Getting Started","count":6},{"language":"default","tag":"User Positions \u0026 Activity","count":5},{"language":"default","tag":"Market Information","count":4},{"language":"default","tag":"Core","count":4},{"language":"default","tag":"Protocol Reference","count":3}]},"assistantConfig":{},"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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","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":"billing-updated-9-15","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":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"swap-api-reference/get-quote","slug":"/swap-api-reference/get-quote","pageMetadata":{"title":"Get Quote","description":"Returns a non-binding reference price for a cross-chain swap. Unlike `GET /getAction`, this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it's priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses `swap-action` semantics regardless of any `actionType` you pass.\n\n`sender` and `recipient` are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use `GET /getAction` instead.","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getQuote","href":"/swap-api-reference/get-quote","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Returns a non-binding reference price for a cross-chain swap. Unlike \", _jsx(_components.code, {\n children: \"GET /getAction\"\n }), \", this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it’s priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses \", _jsx(_components.code, {\n children: \"swap-action\"\n }), \" semantics regardless of any \", _jsx(_components.code, {\n children: \"actionType\"\n }), \" you pass.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"sender\"\n }), \" and \", _jsx(_components.code, {\n children: \"recipient\"\n }), \" are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use \", _jsx(_components.code, {\n children: \"GET /getAction\"\n }), \" instead.\"]\n })]\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":{"title":"Get Quote","description":"Returns a non-binding reference price for a cross-chain swap. Unlike `GET /getAction`, this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it's priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses `swap-action` semantics regardless of any `actionType` you pass.\n\n`sender` and `recipient` are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use `GET /getAction` instead.","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getQuote","href":"/swap-api-reference/get-quote","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Get Quote","servers":["719e6cbe-9804-4b00-83f5-d7beb7241ca6"],"description":"Returns a non-binding reference price for a cross-chain swap. Unlike `GET /getAction`, this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it's priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses `swap-action` semantics regardless of any `actionType` you pass.\n\n`sender` and `recipient` are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use `GET /getAction` instead.","operationId":"getQuote","parameters":["fd13f01b-07d6-4515-92c9-17c27037c53a","3437f958-5b61-4407-bbba-187c2a80ac0e","d5bb1fb7-2014-4f9d-b4b5-12ee12e42b8f","e96b4e14-af8d-4bcf-bfc3-4ce7057d1e60","2208cdb8-d51b-47fa-bfae-fe8e6042c283","a0b586c8-dd8c-4fa2-b65c-1f5033238099","d875c479-471f-4420-ab02-c8f1d8068499","b2305b60-9013-4f52-b678-1989f20d4e2b","8abc97d2-46e6-4b11-9042-b6e937a787ff","c4c81872-c8d6-4e6a-b61b-a8179bc5f071","98437258-32fd-4e1a-8479-53bde5b799fa","e451f2cc-24dc-46ef-b6e4-25d35ff85ead","5f23ce35-7522-4174-a513-8958153b3a96","e3c3e239-91aa-4c52-ac5b-53291e6d2503","ebddfa91-0c1f-40b3-ab98-a467f1b9a4ef"],"responses":{"200":"4984dfe3-813d-4a80-9d08-04cfe8d0607b","400":"194b236f-3c10-4c5c-a9f0-d013b3f5ea1a","401":"0e6a1da1-33aa-4144-9d37-11ef5de18925","403":"fe7ca1c6-0e90-4285-8208-091a9abceb36","405":"2e0a543c-4f17-4dab-b797-70b58c885c85","500":"d2ebe7a2-d960-49cd-ba49-019664f33931"},"method":"get","type":"path","security":["5c705434-f1c8-4db2-b593-1b74a33126a3"],"path":"/getQuote","baseUrlOptions":["https://api-v2.swaps.xyz/api"],"title":"Get Quote","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"fd13f01b-07d6-4515-92c9-17c27037c53a":{"name":"srcChainId","in":"query","required":true,"description":"Source chain ID","schema":{"type":"integer","description":"Source chain ID\nChain ID. Find in the list of supported networks.","isRequired":true,"uniqueKey":"","typeLabel":"integer"}},"3437f958-5b61-4407-bbba-187c2a80ac0e":{"name":"srcToken","in":"query","required":true,"description":"Source token address. Use `native` for the chain's native asset.","schema":{"type":"string","description":"Source token address. Use `native` for the chain's native asset.\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"d5bb1fb7-2014-4f9d-b4b5-12ee12e42b8f":{"name":"dstChainId","in":"query","required":true,"description":"Destination chain ID","schema":{"type":"integer","description":"Destination chain ID\nChain ID. Find in the list of supported networks.","isRequired":true,"uniqueKey":"","typeLabel":"integer"}},"e96b4e14-af8d-4bcf-bfc3-4ce7057d1e60":{"name":"dstToken","in":"query","required":true,"description":"Destination token address. Use `native` for the chain's native asset.","schema":{"type":"string","description":"Destination token address. Use `native` for the chain's native asset.\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"2208cdb8-d51b-47fa-bfae-fe8e6042c283":{"name":"amount","in":"query","required":true,"description":"The exact in or exact out amount of the swap, in the source or destination token's base units respectively.","schema":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"description":"The exact in or exact out amount of the swap, in the source or destination token's base units respectively.","uniqueKey":"","typeLabel":"string"}},"a0b586c8-dd8c-4fa2-b65c-1f5033238099":{"name":"swapDirection","in":"query","required":true,"description":"Whether `amount` is an exact input or exact output amount.","schema":{"type":"string","enum":["exact-amount-in","exact-amount-out"],"description":"Whether `amount` is an exact input or exact output amount.\nSwap direction for the action.","isRequired":true,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"d875c479-471f-4420-ab02-c8f1d8068499":{"name":"slippage","in":"query","required":false,"description":"Slippage tolerance in bps. **Defaults to `50`** (0.5%) if omitted — unlike `GET /getAction`, where this parameter is required.","schema":{"type":"number","format":"float","minimum":0,"maximum":10000,"default":50,"isRequired":false,"description":"Slippage tolerance in bps. **Defaults to `50`** (0.5%) if omitted — unlike `GET /getAction`, where this parameter is required.","uniqueKey":"","typeLabel":"number\u003cfloat>"}},"b2305b60-9013-4f52-b678-1989f20d4e2b":{"name":"bridgeIds","in":"query","required":false,"description":"Specific bridge protocols to use\n\n**Optional:** Will default to all available protocols","schema":{"type":"array","items":{"type":"string","description":"Bridge protocol identifier (e.g. \"across\", \"relay\", \"mayan\").","uniqueKey":"items.[INDEX]","typeLabel":"string"},"isRequired":false,"description":"Specific bridge protocols to use\n\n**Optional:** Will default to all available protocols","uniqueKey":"","typeLabel":"string[]"}},"8abc97d2-46e6-4b11-9042-b6e937a787ff":{"name":"refundTo","in":"query","required":false,"description":"Alternate address the reference route would refund to\n\n**Optional:** Will default to an internal placeholder address","schema":{"type":"string","description":"Alternate address the reference route would refund to\n\n**Optional:** Will default to an internal placeholder address\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"c4c81872-c8d6-4e6a-b61b-a8179bc5f071":{"name":"solanaSponsor","in":"query","required":false,"description":"Solana address that would pay for tx fees and rent (e.g. ATA creation) if this quote were later executed. Only used for Solana same-chain swaps.","schema":{"type":"string","description":"Solana address that would pay for tx fees and rent (e.g. ATA creation) if this quote were later executed. Only used for Solana same-chain swaps.\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"98437258-32fd-4e1a-8479-53bde5b799fa":{"name":"returnDepositAddress","in":"query","required":false,"description":"Restrict the priced route universe to deposit-address-based flows\n\n**Optional:** Set to `true` to price against the deposit-address strategy set","schema":{"type":"boolean","default":false,"isRequired":false,"description":"Restrict the priced route universe to deposit-address-based flows\n\n**Optional:** Set to `true` to price against the deposit-address strategy set","uniqueKey":"","typeLabel":"boolean"}},"e451f2cc-24dc-46ef-b6e4-25d35ff85ead":{"name":"dstGas","in":"query","required":false,"description":"Extra gas to deliver on the destination chain, factored into the reference price\n\n**Optional**","schema":{"type":"string","pattern":"^[0-9]+$","isRequired":false,"description":"Extra gas to deliver on the destination chain, factored into the reference price\n\n**Optional**","uniqueKey":"","typeLabel":"string"}},"5f23ce35-7522-4174-a513-8958153b3a96":{"name":"appFees","in":"query","required":false,"description":"Application fees configuration as JSON array\n\n**Optional:** Will default to fees configured for the application\n\n **Example:** `[{ \"bps\": 50, \"receiverAddress\": \"0x...\" }]`","schema":{"type":"string","isRequired":false,"description":"Application fees configuration as JSON array\n\n**Optional:** Will default to fees configured for the application\n\n **Example:** `[{ \"bps\": 50, \"receiverAddress\": \"0x...\" }]`","uniqueKey":"","typeLabel":"string"}},"e3c3e239-91aa-4c52-ac5b-53291e6d2503":{"name":"gasless","in":"query","required":false,"description":"Price the route as if gasless execution were requested.\n\n**Optional:** Has limited effect on this endpoint's response — `executions`/`executionsType` are never returned by `getQuote`, so this mainly affects fee computation, not the response shape.","schema":{"type":"boolean","default":false,"isRequired":false,"description":"Price the route as if gasless execution were requested.\n\n**Optional:** Has limited effect on this endpoint's response — `executions`/`executionsType` are never returned by `getQuote`, so this mainly affects fee computation, not the response shape.","uniqueKey":"","typeLabel":"boolean"}},"ebddfa91-0c1f-40b3-ab98-a467f1b9a4ef":{"name":"skipCache","in":"query","required":false,"description":"Bypass the internal quote cache and re-price against live routes.\n\n**Optional:** Presence, not value, is checked — passing `skipCache=false` still skips the cache. Omit the parameter entirely to use the cache.","schema":{"type":"boolean","isRequired":false,"description":"Bypass the internal quote cache and re-price against live routes.\n\n**Optional:** Presence, not value, is checked — passing `skipCache=false` still skips the cache. Omit the parameter entirely to use the cache.","uniqueKey":"","typeLabel":"boolean"}}},"responses":{"4984dfe3-813d-4a80-9d08-04cfe8d0607b":{"description":"Successful response with a reference-price quote","content":{"application/json":{"schema":{"type":"object","required":["vmId","amountIn","amountInMax","amountOutMin","amountOut","protocolFee","applicationFee","exchangeRate","estimatedTxTime","estimatedPriceImpact","requiresTokenApproval","requiresRegisterTransaction"],"properties":{"vmId":{"type":"string","enum":["evm","solana","alt-vm","hypercore"],"description":"Virtual machine identifier.","isRequired":true,"uniqueKey":"vmId","typeLabel":"enum\u003cstring>"},"amountIn":{"type":"object","description":"Expected amount to input (exclusive of slippage - recommended value to display in frontend)","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"amountIn.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"amountIn.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"amountIn.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"amountIn.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"amountIn.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"amountIn.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"amountIn.amount","typeLabel":"string"},"logo":{"oneOf":[{"type":"string","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"amountIn.logo.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"amountIn.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"amountIn.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"amountIn.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"amountIn.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"amountIn.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"amountIn.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"amountIn","typeLabel":"object"},"amountInMax":{"type":"object","description":"Maximum amount to input (inclusive of slippage)","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"amountInMax.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"amountInMax.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"amountInMax.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"amountInMax.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"amountInMax.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"amountInMax.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"amountInMax.amount","typeLabel":"string"},"logo":{"oneOf":[{"type":"string","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"amountInMax.logo.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"amountInMax.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"amountInMax.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"amountInMax.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"amountInMax.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"amountInMax.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"amountInMax.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"amountInMax","typeLabel":"object"},"amountOut":{"type":"object","description":"Expected amount delivered to users (exclusive of slippage - recommended value to display in frontend)","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"amountOut.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"amountOut.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"amountOut.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"amountOut.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"amountOut.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"amountOut.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"amountOut.amount","typeLabel":"string"},"logo":{"oneOf":[{"type":"string","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"amountOut.logo.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"amountOut.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"amountOut.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"amountOut.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"amountOut.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"amountOut.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"amountOut.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"amountOut","typeLabel":"object"},"amountOutMin":{"type":"object","description":"Minimum amount delivered to users (inclusive of slippage)","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"amountOutMin.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"amountOutMin.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"amountOutMin.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"amountOutMin.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"amountOutMin.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"amountOutMin.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"amountOutMin.amount","typeLabel":"string"},"logo":{"oneOf":[{"type":"string","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"amountOutMin.logo.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"amountOutMin.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"amountOutMin.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"amountOutMin.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"amountOutMin.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"amountOutMin.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"amountOutMin.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"amountOutMin","typeLabel":"object"},"protocolFee":{"type":"object","description":"Swaps.xyz fee","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"protocolFee.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"protocolFee.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"protocolFee.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"protocolFee.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"protocolFee.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"protocolFee.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"protocolFee.amount","typeLabel":"string"},"logo":{"oneOf":[{"type":"string","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"protocolFee.logo.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"protocolFee.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"protocolFee.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"protocolFee.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"protocolFee.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"protocolFee.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"protocolFee.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"protocolFee","typeLabel":"object"},"applicationFee":{"type":"object","description":"Application fee (your fee!)","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"applicationFee.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"applicationFee.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"applicationFee.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"applicationFee.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"applicationFee.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"applicationFee.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"applicationFee.amount","typeLabel":"string"},"logo":{"oneOf":[{"type":"string","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"applicationFee.logo.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"applicationFee.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"applicationFee.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"applicationFee.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"applicationFee.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"applicationFee.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"applicationFee.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"applicationFee","typeLabel":"object"},"exchangeRate":{"type":"number","format":"float","description":"Exchange rate for the swap.","isRequired":true,"uniqueKey":"exchangeRate","typeLabel":"number\u003cfloat>"},"estimatedTxTime":{"type":"number","format":"float","description":"Estimated transaction time in seconds.","isRequired":true,"uniqueKey":"estimatedTxTime","typeLabel":"number\u003cfloat>"},"estimatedPriceImpact":{"type":"number","format":"float","description":"Estimated price impact percentage.","isRequired":true,"uniqueKey":"estimatedPriceImpact","typeLabel":"number\u003cfloat>"},"requiresTokenApproval":{"type":"boolean","description":"Flag indicating whether executing this route later would require a source token approval check.","isRequired":true,"uniqueKey":"requiresTokenApproval","typeLabel":"boolean"},"requiresRegisterTransaction":{"type":"boolean","description":"Flag indicating whether executing this route later would require registration via the registerTxs endpoint. Mandatory for non-EVM transactions.","isRequired":true,"uniqueKey":"requiresRegisterTransaction","typeLabel":"boolean"},"bridgeFee":{"type":"object","description":"Bridge fee (from aggregated providers). Only present when the reference route crosses a bridge.","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"bridgeFee.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"bridgeFee.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"bridgeFee.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"bridgeFee.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"bridgeFee.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"bridgeFee.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"bridgeFee.amount","typeLabel":"string"},"logo":{"oneOf":[{"type":"string","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"bridgeFee.logo.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"bridgeFee.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"bridgeFee.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"bridgeFee.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"bridgeFee.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"bridgeFee.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"bridgeFee.usdAmount","typeLabel":"number\u003cfloat> | null"}},"uniqueKey":"bridgeFee","typeLabel":"object"},"relayerFee":{"type":"object","description":"Fee charged by a gasless relay provider, denominated in USDT. Rarely populated on this endpoint since `executionsType`/`executions` are not returned here — present mainly for schema parity with `GET /getAction`.","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"relayerFee.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"relayerFee.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"relayerFee.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"relayerFee.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"relayerFee.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"relayerFee.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"relayerFee.amount","typeLabel":"string"},"logo":{"oneOf":[{"type":"string","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"relayerFee.logo.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the token's logo image. Can be null if logo is not available.","uniqueKey":"relayerFee.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"relayerFee.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"relayerFee.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"relayerFee.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"relayerFee.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"relayerFee.usdAmount","typeLabel":"number\u003cfloat> | null"}},"uniqueKey":"relayerFee","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"vmId":"evm","amountIn":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123},"amountInMax":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123},"amountOut":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123},"amountOutMin":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123},"protocolFee":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123},"applicationFee":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123},"exchangeRate":123,"estimatedTxTime":123,"estimatedPriceImpact":123,"requiresTokenApproval":true,"requiresRegisterTransaction":true,"bridgeFee":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123},"relayerFee":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"194b236f-3c10-4c5c-a9f0-d013b3f5ea1a":{"description":"Bad request due to missing or invalid parameters","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","description":"Always false for error responses","enum":[false],"example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","required":["code","name","message","title","statusCode","timestamp"],"properties":{"code":{"type":"string","description":"Error type code for programmatic handling","enum":["AMOUNT_INVALID","AMOUNT_TOO_HIGH","AMOUNT_TOO_LOW","CROSS_VM_RECEIVER_REQUIRED","EXCESSIVE_FEE","EXCESSIVE_RELAYER_FEE","GEO_BLOCKED","INSUFFICIENT_LIQUIDITY","INVALID_ADDRESS_FORMAT","INVALID_AMOUNT_ZERO","INVALID_API_KEY","INVALID_DESTINATION_TOKEN","INVALID_PARAMETER","INVALID_SOURCE_TOKEN","INTERNAL_SERVER_ERROR","METHOD_NOT_ALLOWED","MISSING_API_KEY","MISSING_REQUIRED_FIELD","NO_AVAILABLE_ROUTE","UNSUPPORTED_NETWORK","UNSUPPORTED_NETWORK_PAIR","UNSUPPORTED_NETWORK_TOKEN_PAIR","UNSUPPORTED_SWAP_DIRECTION","WALLET_SCREENED"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Error class name","example":"InvalidAddressError","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","description":"Detailed error message","example":"The format of the specified address is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"title":{"type":"string","description":"Short, user-friendly error title","example":"Invalid address format","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"statusCode":{"type":"integer","description":"HTTP status code","example":400,"isRequired":true,"uniqueKey":"error.statusCode","typeLabel":"integer"},"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error occurred","example":"2024-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"error.timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional context about the error, including invalid values and suggestions","properties":{"field":{"type":"string","description":"The field that caused the error","uniqueKey":"error.details.field","typeLabel":"string"},"address":{"type":"string","description":"The invalid address value","uniqueKey":"error.details.address","typeLabel":"string"},"reason":{"type":"string","description":"Explanation of why the value is invalid","uniqueKey":"error.details.reason","typeLabel":"string"}},"additionalProperties":true,"example":{"field":"srcToken","address":"0xinvalid","reason":"Address must be 40 characters long"},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"AMOUNT_TOO_HIGH":{"title":"AMOUNT_TOO_HIGH","value":{"success":false,"error":{"code":"AMOUNT_TOO_HIGH","name":"AmountTooHighError","message":"The specified amount is too high.","title":"Amount too high","statusCode":400,"details":{"srcToken":"0x0000000000000000000000000000000000000000","dstToken":"0x0000000000000000000000000000000000000000","srcChainId":1,"dstChainId":42161,"maxAmount":100000000000000000000},"timestamp":"2024-01-01T00:00:00.000Z"}}},"AMOUNT_TOO_LOW":{"title":"AMOUNT_TOO_LOW","value":{"success":false,"error":{"code":"AMOUNT_TOO_LOW","name":"AmountTooLowError","message":"The specified amount is too low.","title":"Amount too low","statusCode":400,"details":{"srcToken":"0x0000000000000000000000000000000000000000","dstToken":"0x0000000000000000000000000000000000000000","srcChainId":1,"dstChainId":42161,"minAmount":0.000123},"timestamp":"2024-01-01T00:00:00.000Z"}}},"CROSS_VM_RECEIVER_REQUIRED":{"title":"CROSS_VM_RECEIVER_REQUIRED","value":{"success":false,"error":{"code":"CROSS_VM_RECEIVER_REQUIRED","name":"CrossVmReceiverRequiredError","message":"Receiver address is required for swaps across different VMs.","title":"Receiver address required","statusCode":400,"details":{"srcChainId":1,"dstChainId":1399811149},"timestamp":"2024-01-01T00:00:00.000Z"}}},"EXCESSIVE_FEE":{"title":"EXCESSIVE_FEE","value":{"success":false,"error":{"code":"EXCESSIVE_FEE","name":"ExcessiveFeeError","message":"The inputted flat fee is too large (over 50% of tx input).","title":"Excessive fee","statusCode":400,"timestamp":"2024-01-01T00:00:00.000Z"}}},"EXCESSIVE_RELAYER_FEE":{"title":"EXCESSIVE_RELAYER_FEE","value":{"success":false,"error":{"code":"EXCESSIVE_RELAYER_FEE","name":"ExcessiveRelayerFeeError","message":"The relayer fee (50.0% of the input amount) is too high to execute this swap.","title":"Excessive relayer fee","statusCode":400,"timestamp":"2024-01-01T00:00:00.000Z"}}},"INSUFFICIENT_LIQUIDITY":{"title":"INSUFFICIENT_LIQUIDITY","value":{"success":false,"error":{"code":"INSUFFICIENT_LIQUIDITY","name":"InsufficientLiquidityError","message":"There is insufficient liquidity to complete this transaction.","title":"Insufficient liquidity","statusCode":400,"timestamp":"2024-01-01T00:00:00.000Z"}}},"INVALID_ADDRESS_FORMAT":{"title":"INVALID_ADDRESS_FORMAT","value":{"success":false,"error":{"code":"INVALID_ADDRESS_FORMAT","name":"InvalidAddressError","message":"The format of the specified address is invalid.","title":"Invalid address format","statusCode":400,"details":{"field":"sender","address":"0xinvalid","reason":"Address must be 40 characters long"},"timestamp":"2024-01-01T00:00:00.000Z"}}},"INVALID_AMOUNT_ZERO":{"title":"INVALID_AMOUNT_ZERO","value":{"success":false,"error":{"code":"INVALID_AMOUNT_ZERO","name":"InvalidAmountZeroError","message":"Amount must be greater than zero.","title":"Zero amount not allowed","statusCode":400,"timestamp":"2024-01-01T00:00:00.000Z"}}},"INVALID_DESTINATION_TOKEN":{"title":"INVALID_DESTINATION_TOKEN","value":{"success":false,"error":{"code":"INVALID_DESTINATION_TOKEN","name":"InvalidDstTokenError","message":"Destination token is required.","title":"Invalid destination token","statusCode":400,"timestamp":"2024-01-01T00:00:00.000Z"}}},"INVALID_PARAMETER":{"title":"INVALID_PARAMETER","value":{"success":false,"error":{"code":"INVALID_PARAMETER","name":"InvalidParameterError","message":"The request contains an invalid parameter.","title":"Invalid parameter","statusCode":400,"details":{"parameter":"slippage","value":"15000","reason":"Slippage must be between 0 and 10000 bps"},"timestamp":"2024-01-01T00:00:00.000Z"}}},"INVALID_SOURCE_TOKEN":{"title":"INVALID_SOURCE_TOKEN","value":{"success":false,"error":{"code":"INVALID_SOURCE_TOKEN","name":"InvalidSrcTokenError","message":"Source token is required.","title":"Invalid source token","statusCode":400,"timestamp":"2024-01-01T00:00:00.000Z"}}},"MISSING_REQUIRED_FIELD":{"title":"MISSING_REQUIRED_FIELD","value":{"success":false,"error":{"code":"MISSING_REQUIRED_FIELD","name":"MissingRequiredFieldError","message":"The request is missing a required field.","title":"Missing required field","statusCode":400,"details":{"field":"srcToken","context":"Source token address is required for swap actions"},"timestamp":"2024-01-01T00:00:00.000Z"}}},"NO_AVAILABLE_ROUTE":{"title":"NO_AVAILABLE_ROUTE","value":{"success":false,"error":{"code":"NO_AVAILABLE_ROUTE","name":"NoAvailableRouteError","message":"No route is available for the specified parameters.","title":"No available route","statusCode":400,"details":{"srcChainId":1,"dstChainId":42161,"srcToken":"0x0000000000000000000000000000000000000000","dstToken":"0x1234567890123456789012345678901234567890"},"timestamp":"2024-01-01T00:00:00.000Z"}}},"UNSUPPORTED_NETWORK":{"title":"UNSUPPORTED_NETWORK","value":{"success":false,"error":{"code":"UNSUPPORTED_NETWORK","name":"UnsupportedNetworkError","message":"The network with the specified chainId is not supported.","title":"Unsupported network","statusCode":400,"details":{"chainId":999999},"timestamp":"2024-01-01T00:00:00.000Z"}}},"UNSUPPORTED_NETWORK_PAIR":{"title":"UNSUPPORTED_NETWORK_PAIR","value":{"success":false,"error":{"code":"UNSUPPORTED_NETWORK_PAIR","name":"UnsupportedNetworkPairError","message":"Routing between the specified networks is not supported.","title":"Unsupported network pair","statusCode":400,"details":{"srcChainId":1,"dstChainId":999999},"timestamp":"2024-01-01T00:00:00.000Z"}}},"UNSUPPORTED_NETWORK_TOKEN_PAIR":{"title":"UNSUPPORTED_NETWORK_TOKEN_PAIR","value":{"success":false,"error":{"code":"UNSUPPORTED_NETWORK_TOKEN_PAIR","name":"UnsupportedNetworkAndTokenPairError","message":"Routing between the specified tokens and networks is not supported.","title":"Unsupported network and token pair","statusCode":400,"details":{"srcChainId":1,"srcToken":"0x0000000000000000000000000000000000000000","dstChainId":42161,"dstToken":"0x1234567890123456789012345678901234567890"},"timestamp":"2024-01-01T00:00:00.000Z"}}},"UNSUPPORTED_SWAP_DIRECTION":{"title":"UNSUPPORTED_SWAP_DIRECTION","value":{"success":false,"error":{"code":"UNSUPPORTED_SWAP_DIRECTION","name":"UnsupportedSwapDirectionError","message":"The specified swap direction is not supported.","title":"Unsupported swap direction","statusCode":400,"details":{"swapDirection":"exact-amount-out"},"timestamp":"2024-01-01T00:00:00.000Z"}}},"AMOUNT_INVALID":{"title":"AMOUNT_INVALID","value":{"success":false,"error":{"code":"AMOUNT_INVALID","name":"AmountInvalidError","message":"The specified amount is invalid.","title":"Invalid amount","statusCode":400,"timestamp":"2024-01-01T00:00:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"0e6a1da1-33aa-4144-9d37-11ef5de18925":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","description":"Always false for error responses","enum":[false],"example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","required":["code","name","message","title","statusCode","timestamp"],"properties":{"code":{"type":"string","description":"Error type code for programmatic handling","enum":["AMOUNT_INVALID","AMOUNT_TOO_HIGH","AMOUNT_TOO_LOW","CROSS_VM_RECEIVER_REQUIRED","EXCESSIVE_FEE","EXCESSIVE_RELAYER_FEE","GEO_BLOCKED","INSUFFICIENT_LIQUIDITY","INVALID_ADDRESS_FORMAT","INVALID_AMOUNT_ZERO","INVALID_API_KEY","INVALID_DESTINATION_TOKEN","INVALID_PARAMETER","INVALID_SOURCE_TOKEN","INTERNAL_SERVER_ERROR","METHOD_NOT_ALLOWED","MISSING_API_KEY","MISSING_REQUIRED_FIELD","NO_AVAILABLE_ROUTE","UNSUPPORTED_NETWORK","UNSUPPORTED_NETWORK_PAIR","UNSUPPORTED_NETWORK_TOKEN_PAIR","UNSUPPORTED_SWAP_DIRECTION","WALLET_SCREENED"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Error class name","example":"InvalidAddressError","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","description":"Detailed error message","example":"The format of the specified address is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"title":{"type":"string","description":"Short, user-friendly error title","example":"Invalid address format","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"statusCode":{"type":"integer","description":"HTTP status code","example":400,"isRequired":true,"uniqueKey":"error.statusCode","typeLabel":"integer"},"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error occurred","example":"2024-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"error.timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional context about the error, including invalid values and suggestions","properties":{"field":{"type":"string","description":"The field that caused the error","uniqueKey":"error.details.field","typeLabel":"string"},"address":{"type":"string","description":"The invalid address value","uniqueKey":"error.details.address","typeLabel":"string"},"reason":{"type":"string","description":"Explanation of why the value is invalid","uniqueKey":"error.details.reason","typeLabel":"string"}},"additionalProperties":true,"example":{"field":"srcToken","address":"0xinvalid","reason":"Address must be 40 characters long"},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"INVALID_API_KEY":{"title":"INVALID_API_KEY","value":{"success":false,"error":{"code":"INVALID_API_KEY","name":"InvalidApiKeyError","message":"The provided API key is invalid.","title":"Invalid API key","statusCode":401,"timestamp":"2024-01-01T00:00:00.000Z"}}},"MISSING_API_KEY":{"title":"MISSING_API_KEY","value":{"success":false,"error":{"code":"MISSING_API_KEY","name":"MissingApiKeyError","message":"API key is required.","title":"Missing API key","statusCode":401,"timestamp":"2024-01-01T00:00:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"fe7ca1c6-0e90-4285-8208-091a9abceb36":{"description":"Forbidden - Access denied due to restrictions","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","description":"Always false for error responses","enum":[false],"example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","required":["code","name","message","title","statusCode","timestamp"],"properties":{"code":{"type":"string","description":"Error type code for programmatic handling","enum":["AMOUNT_INVALID","AMOUNT_TOO_HIGH","AMOUNT_TOO_LOW","CROSS_VM_RECEIVER_REQUIRED","EXCESSIVE_FEE","EXCESSIVE_RELAYER_FEE","GEO_BLOCKED","INSUFFICIENT_LIQUIDITY","INVALID_ADDRESS_FORMAT","INVALID_AMOUNT_ZERO","INVALID_API_KEY","INVALID_DESTINATION_TOKEN","INVALID_PARAMETER","INVALID_SOURCE_TOKEN","INTERNAL_SERVER_ERROR","METHOD_NOT_ALLOWED","MISSING_API_KEY","MISSING_REQUIRED_FIELD","NO_AVAILABLE_ROUTE","UNSUPPORTED_NETWORK","UNSUPPORTED_NETWORK_PAIR","UNSUPPORTED_NETWORK_TOKEN_PAIR","UNSUPPORTED_SWAP_DIRECTION","WALLET_SCREENED"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Error class name","example":"InvalidAddressError","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","description":"Detailed error message","example":"The format of the specified address is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"title":{"type":"string","description":"Short, user-friendly error title","example":"Invalid address format","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"statusCode":{"type":"integer","description":"HTTP status code","example":400,"isRequired":true,"uniqueKey":"error.statusCode","typeLabel":"integer"},"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error occurred","example":"2024-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"error.timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional context about the error, including invalid values and suggestions","properties":{"field":{"type":"string","description":"The field that caused the error","uniqueKey":"error.details.field","typeLabel":"string"},"address":{"type":"string","description":"The invalid address value","uniqueKey":"error.details.address","typeLabel":"string"},"reason":{"type":"string","description":"Explanation of why the value is invalid","uniqueKey":"error.details.reason","typeLabel":"string"}},"additionalProperties":true,"example":{"field":"srcToken","address":"0xinvalid","reason":"Address must be 40 characters long"},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"GEO_BLOCKED":{"title":"GEO_BLOCKED","value":{"success":false,"error":{"code":"GEO_BLOCKED","name":"GeoBlockingError","message":"Access denied due to geo-blocking restrictions.","title":"Geo-blocking restriction","statusCode":403,"details":{"countryCode":"US","countryName":"United States","reason":"Country is on the blocked list","blockedAt":"2024-01-15T10:30:00.000Z"},"timestamp":"2024-01-01T00:00:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"2e0a543c-4f17-4dab-b797-70b58c885c85":{"description":"Method not allowed","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","description":"Always false for error responses","enum":[false],"example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","required":["code","name","message","title","statusCode","timestamp"],"properties":{"code":{"type":"string","description":"Error type code for programmatic handling","enum":["AMOUNT_INVALID","AMOUNT_TOO_HIGH","AMOUNT_TOO_LOW","CROSS_VM_RECEIVER_REQUIRED","EXCESSIVE_FEE","EXCESSIVE_RELAYER_FEE","GEO_BLOCKED","INSUFFICIENT_LIQUIDITY","INVALID_ADDRESS_FORMAT","INVALID_AMOUNT_ZERO","INVALID_API_KEY","INVALID_DESTINATION_TOKEN","INVALID_PARAMETER","INVALID_SOURCE_TOKEN","INTERNAL_SERVER_ERROR","METHOD_NOT_ALLOWED","MISSING_API_KEY","MISSING_REQUIRED_FIELD","NO_AVAILABLE_ROUTE","UNSUPPORTED_NETWORK","UNSUPPORTED_NETWORK_PAIR","UNSUPPORTED_NETWORK_TOKEN_PAIR","UNSUPPORTED_SWAP_DIRECTION","WALLET_SCREENED"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Error class name","example":"InvalidAddressError","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","description":"Detailed error message","example":"The format of the specified address is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"title":{"type":"string","description":"Short, user-friendly error title","example":"Invalid address format","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"statusCode":{"type":"integer","description":"HTTP status code","example":400,"isRequired":true,"uniqueKey":"error.statusCode","typeLabel":"integer"},"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error occurred","example":"2024-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"error.timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional context about the error, including invalid values and suggestions","properties":{"field":{"type":"string","description":"The field that caused the error","uniqueKey":"error.details.field","typeLabel":"string"},"address":{"type":"string","description":"The invalid address value","uniqueKey":"error.details.address","typeLabel":"string"},"reason":{"type":"string","description":"Explanation of why the value is invalid","uniqueKey":"error.details.reason","typeLabel":"string"}},"additionalProperties":true,"example":{"field":"srcToken","address":"0xinvalid","reason":"Address must be 40 characters long"},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"METHOD_NOT_ALLOWED":{"title":"METHOD_NOT_ALLOWED","value":{"success":false,"error":{"code":"METHOD_NOT_ALLOWED","name":"MethodNotAllowedError","message":"The HTTP request method specified is not allowed.","title":"Method not allowed","statusCode":405,"details":{"method":"POST"},"timestamp":"2024-01-01T00:00:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d2ebe7a2-d960-49cd-ba49-019664f33931":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","description":"Always false for error responses","enum":[false],"example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","required":["code","name","message","title","statusCode","timestamp"],"properties":{"code":{"type":"string","description":"Error type code for programmatic handling","enum":["AMOUNT_INVALID","AMOUNT_TOO_HIGH","AMOUNT_TOO_LOW","CROSS_VM_RECEIVER_REQUIRED","EXCESSIVE_FEE","EXCESSIVE_RELAYER_FEE","GEO_BLOCKED","INSUFFICIENT_LIQUIDITY","INVALID_ADDRESS_FORMAT","INVALID_AMOUNT_ZERO","INVALID_API_KEY","INVALID_DESTINATION_TOKEN","INVALID_PARAMETER","INVALID_SOURCE_TOKEN","INTERNAL_SERVER_ERROR","METHOD_NOT_ALLOWED","MISSING_API_KEY","MISSING_REQUIRED_FIELD","NO_AVAILABLE_ROUTE","UNSUPPORTED_NETWORK","UNSUPPORTED_NETWORK_PAIR","UNSUPPORTED_NETWORK_TOKEN_PAIR","UNSUPPORTED_SWAP_DIRECTION","WALLET_SCREENED"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Error class name","example":"InvalidAddressError","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"},"message":{"type":"string","description":"Detailed error message","example":"The format of the specified address is invalid.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"title":{"type":"string","description":"Short, user-friendly error title","example":"Invalid address format","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"statusCode":{"type":"integer","description":"HTTP status code","example":400,"isRequired":true,"uniqueKey":"error.statusCode","typeLabel":"integer"},"timestamp":{"type":"string","description":"ISO 8601 timestamp when the error occurred","example":"2024-01-01T00:00:00.000Z","isRequired":true,"uniqueKey":"error.timestamp","typeLabel":"string"},"details":{"type":"object","description":"Additional context about the error, including invalid values and suggestions","properties":{"field":{"type":"string","description":"The field that caused the error","uniqueKey":"error.details.field","typeLabel":"string"},"address":{"type":"string","description":"The invalid address value","uniqueKey":"error.details.address","typeLabel":"string"},"reason":{"type":"string","description":"Explanation of why the value is invalid","uniqueKey":"error.details.reason","typeLabel":"string"}},"additionalProperties":true,"example":{"field":"srcToken","address":"0xinvalid","reason":"Address must be 40 characters long"},"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"INTERNAL_SERVER_ERROR":{"title":"INTERNAL_SERVER_ERROR","value":{"success":false,"error":{"code":"INTERNAL_SERVER_ERROR","name":"InternalServerError","message":"An internal server error occurred while processing the request.","title":"Internal Server Error","statusCode":500,"timestamp":"2024-01-01T00:00:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"5c705434-f1c8-4db2-b593-1b74a33126a3":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Limited demo key for API Reference: `5c951bc81da566bbd030ba8e20724063`.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"719e6cbe-9804-4b00-83f5-d7beb7241ca6":{"url":"https://api-v2.swaps.xyz/api","description":"Core Swap API server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Limited demo key for API Reference: `5c951bc81da566bbd030ba8e20724063`.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Limited demo key for API Reference: `5c951bc81da566bbd030ba8e20724063`.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"swap-api-reference/openapi.json"},"subdomain":"swaps","siteName":"Swaps API Documentation","title":"Get Quote - Swaps API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-14T17:25:09.648Z","originalFileLocation":"swap-api-reference/get-quote.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=\"Returns a non-binding reference price for a cross-chain swap. Unlike GET /getAction, this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it\u0026#x27;s priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses swap-action semantics regardless of any actionType you pass. sender and recipient are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use GET /getAction instead.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Swaps API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/swaps/GMGSy86BYr2YqEGa/_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/swaps/GMGSy86BYr2YqEGa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/swaps/GMGSy86BYr2YqEGa/_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/swaps/GMGSy86BYr2YqEGa/_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/swaps/GMGSy86BYr2YqEGa/_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/swaps/GMGSy86BYr2YqEGa/_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/swaps/GMGSy86BYr2YqEGa/_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/swaps/GMGSy86BYr2YqEGa/_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/swaps/GMGSy86BYr2YqEGa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Quote - Swaps API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns a non-binding reference price for a cross-chain swap. Unlike GET /getAction, this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it\u0026#x27;s priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses swap-action semantics regardless of any actionType you pass. sender and recipient are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use GET /getAction instead.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Swaps API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.swaps.xyz/swap-api-reference/get-quote\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://swaps.mintlify.app/_mintlify/api/og/v2?division=Core\u0026amp;title=Get+Quote\u0026amp;description=Returns+a+non-binding+reference+price+for+a+cross-chain+swap.+Unlike+%60GET+%2FgetAction%60%2C+this+endpoint+never+allocates+a+deposit+address%2C+builds+transaction+calld\u0026amp;theme=e402633778683274be5dc99a\u0026amp;signature=7072b2af66a024b0dca18869cc10cbf5e8fc7d806cfd2320617b400b2dc239ce\">\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=\"Get Quote - Swaps API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns a non-binding reference price for a cross-chain swap. Unlike GET /getAction, this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it\u0026#x27;s priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses swap-action semantics regardless of any actionType you pass. sender and recipient are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use GET /getAction instead.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://swaps.mintlify.app/_mintlify/api/og/v2?division=Core\u0026amp;title=Get+Quote\u0026amp;description=Returns+a+non-binding+reference+price+for+a+cross-chain+swap.+Unlike+%60GET+%2FgetAction%60%2C+this+endpoint+never+allocates+a+deposit+address%2C+builds+transaction+calld\u0026amp;theme=e402633778683274be5dc99a\u0026amp;signature=7072b2af66a024b0dca18869cc10cbf5e8fc7d806cfd2320617b400b2dc239ce\">\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/swaps/GMGSy86BYr2YqEGa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Swaps API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.swaps.xyz/swap-api-reference/get-quote\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/swap-api-reference/get-quote.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.swaps.xyz/#organization\",\"name\":\"Swaps API Documentation\",\"url\":\"https://docs.swaps.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/swaps/0Y1Q5nsbTP7RcDGa/logo/light.svg?fit=max\u0026auto=format\u0026n=0Y1Q5nsbTP7RcDGa\u0026q=85\u0026s=b4ef18d882340b146df26c61511553d2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.swaps.xyz#website\",\"name\":\"Swaps API Documentation\",\"url\":\"https://docs.swaps.xyz\",\"publisher\":{\"@id\":\"https://docs.swaps.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.swaps.xyz/swap-api-reference/get-quote#webpage\",\"url\":\"https://docs.swaps.xyz/swap-api-reference/get-quote\",\"name\":\"Get Quote\",\"description\":\"Returns a non-binding reference price for a cross-chain swap. Unlike GET /getAction, this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it's priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses swap-action semantics regardless of any actionType you pass. sender and recipient are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use GET /getAction instead.\",\"dateModified\":\"2026-10-14T17:25:09.648Z\",\"isPartOf\":{\"@id\":\"https://docs.swaps.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.swaps.xyz/swap-api-reference/get-quote#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.swaps.xyz/swap-api-reference/get-quote#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Swaps API Documentation\",\"item\":\"https://docs.swaps.xyz\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Quote\",\"item\":\"https://docs.swaps.xyz/swap-api-reference/get-quote\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.swaps.xyz/swap-api-reference/get-quote#apireference\",\"headline\":\"Get Quote\",\"name\":\"Get Quote\",\"description\":\"Returns a non-binding reference price for a cross-chain swap. Unlike GET /getAction, this endpoint never allocates a deposit address, builds transaction calldata, or triggers wallet-screening checks — it's priced-only, safe to call at high frequency (e.g. to refresh a quote widget), and always uses swap-action semantics regardless of any actionType you pass. sender and recipient are not accepted as inputs — the endpoint prices the route using internal placeholder addresses, since no transaction is produced. If you need a signable transaction, use GET /getAction instead.\",\"url\":\"https://docs.swaps.xyz/swap-api-reference/get-quote\",\"mainEntityOfPage\":{\"@id\":\"https://docs.swaps.xyz/swap-api-reference/get-quote#webpage\"},\"dateModified\":\"2026-10-14T17:25:09.648Z\",\"publisher\":{\"@id\":\"https://docs.swaps.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.swaps.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Swaps API Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Swaps API Documentation","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Swap API Reference","groups":[{"group":"Getting Started","pages":[{"title":"Overview","description":"Flexible APIs for lightning-fast cross-chain transactions.","href":"/swap-api-reference/overview"}]},{"group":"Core","pages":[{"title":"Get Quote","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getQuote","href":"/swap-api-reference/get-quote"},{"title":"Get Action","description":"Generates a transaction for cross-chain swaps, bridges, and calls. The action includes transaction data, routing information, and fee calculations for executing the requested operation.","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getAction","href":"/swap-api-reference/get-action"},{"title":"Get Status","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getStatus","href":"/swap-api-reference/get-status"},{"title":"Register Transaction","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json post /registerTxs","href":"/swap-api-reference/register-transaction"}]},{"group":"Gasless","pages":[{"title":"Submit Gasless Transaction","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json post /submitTx","href":"/swap-api-reference/submit-gasless-transaction"}]},{"group":"Data","pages":[{"title":"Get Transactions","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getTransactions","href":"/swap-api-reference/get-transactions"}]},{"group":"Utilities","pages":[{"title":"Get Paths","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getPaths","href":"/swap-api-reference/get-paths"},{"title":"Get Chain List","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getChainList","href":"/swap-api-reference/get-chain-list"},{"title":"Get Token List","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getTokenList","href":"/swap-api-reference/get-token-list"}]}]},{"tab":"Prediction Market Reference","pages":[{"title":"Prediction Market Reference","href":"/prediction-market-reference/overview"}]},{"tab":"Protocol Reference","pages":[{"title":"Protocol Reference","href":"/protocol-reference/overview"}]}]},"title":"Get Quote - Swaps API Documentation","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","clsx-rL8ZCCw4.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-aeztFa9U.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BywkCr5C.js"]}