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.
GET
/
getAction
Get Action
curl --request GET \ --url https://api-v2.swaps.xyz/api/getAction \ --header 'x-api-key: <api-key>'
Limited demo key for API Reference: 5c951bc81da566bbd030ba8e20724063.
Query Parameters
actionType
enum<string>
required
Type of action to perform
Type of action to perform.
Available options:
swap-action,
evm-calldata-tx,
polymarket
sender
string
required
The address of the sender/user
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
srcChainId
integer
required
Source chain ID
Chain ID. Find in the list of supported networks.
srcToken
string
required
Source token address
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
dstChainId
integer
required
Destination chain ID
Chain ID. Find in the list of supported networks.
dstToken
string
required
Destination token address
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
slippage
number<float>
required
Slippage tolerance in bps. Set this value carefully: a high slippage can degrade swap quality, as the swap may execute at a worse price than quoted. MoonPay is not responsible for outcomes within the slippage tolerance you configure.
Required range: 0 <= x <= 10000
amount
string
The exact in or exact out amount of the swap
Required: for swap-action
Required: for polymarket action type
Pattern: ^[0-9]+$
swapDirection
enum<string>
Swap direction for the action
Required: for swap-action
For polymarket, optional — defaults to exact-amount-in (recommended).
Swap direction for the action.
Available options:
exact-amount-in,
exact-amount-out
recipient
string
Address to receive the swapped tokens
Optional: for swap-action
Required: for polymarket action type (should be the proxy wallet address)
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
to
string
The EVM address of the target contract (20 bytes hex)
Required: for evm-calldata-tx action type
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
data
string
Calldata for the transaction
Required: for evm-calldata-tx action type
Hex string with 0x prefix
Pattern: ^0x[a-fA-F0-9]*$
value
string
Value to send with transaction
Optional: for evm-calldata-tx action type
Pattern: ^[0-9]+$
erc20Amount
string
The amount of Erc20 being transferred
Optional: for evm-calldata-tx action type (use for calls requiring Erc20 transfers)
Pattern: ^[0-9]+$
erc20Spender
string
The Erc20 spender requiring approval for the transaction call
Optional: for evm-calldata-tx action type (will default to the to address)
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
solanaSponsor
string
Solana address that pays for tx fees and rent (e.g. ATA creation). Only used for Solana same chain swaps. Transaction must be signed by both the user and the sponsor.
Optional: When provided, the sponsor covers transaction costs on behalf of the user.
Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
Polymarket user ID - returned from POST /workflows/polymarket/createOrFetchPolymarketUser
Required: for polymarket action type
side
enum<string>
Order side for Polymarket orders
Required: for polymarket action type
Available options:
BUY,
SELL
tokenID
string
Polymarket CLOB token ID
Required: for polymarket action type
orderType
enum<string>
Polymarket order type
Required: for polymarket action type
FOK: Fill or Kill (market order)
FAK: Fill and Kill (market order)
Available options:
FOK,
FAK
tickSize
enum<string>
Price tick size for Polymarket orders
Required: for polymarket action type
Available options:
0.01,
0.001,
0.0001
negRisk
enum<string>
Negative risk flag for Polymarket
Required: for polymarket action type
Available options:
true,
false
gasless
boolean
default:false
Request gasless execution. When true, the response includes an executions array of signed steps to relay through the gasless provider instead of broadcasting a transaction directly.
Optional: Only supported on chains with a configured gasless provider (currently Tron). Requires the API key to have gasless enabled.
Response
Successful response with action data
tx
EVM Transaction · object
required
Transaction data for execution
EVM Transaction
Solana Transaction
Alt VM Transaction
HyperCore Transaction
HyperCore Transaction
Tron Transaction
Ton Transaction
Show child attributes
txId
string
required
Transaction ID
Pattern: ^0x[a-fA-F0-9]*$
vmId
enum<string>
required
Virtual machine identifier.
Available options:
evm,
solana,
alt-vm,
hypercore,
tron,
ton
amountIn
object
required
Expected amount to input (exclusive of slippage - recommended value to display in frontend)
Show child attributes
amountInMax
object
required
Maximum amount to input (inclusive of slippage)
Show child attributes
amountOut
object
required
Expected amount delivered to users (exclusive of slippage - recommended value to display in frontend)
Show child attributes
amountOutMin
object
required
Minimum amount delivered to users (inclusive of slippage)
Show child attributes
protocolFee
object
required
Swaps.xyz fee
Show child attributes
applicationFee
object
required
Application fee (your fee!)
Show child attributes
exchangeRate
number<float>
required
Exchange rate for the swap.
estimatedTxTime
number<float>
required
Estimated transaction time in seconds.
estimatedPriceImpact
number<float> | null
required
Estimated price impact percentage.
requiresTokenApproval
boolean
required
Flag indicating whether the transaction object requires a source token approval check.
requiresRegisterTransaction
boolean
required
Flag indicating whether the transaction requires registration via the registerTxs endpoint. Mandatory for non-EVM transactions.
Indicates the execution mode. GASLESS when gasless=true was requested and a relay provider is available; DEFAULT otherwise.
Available options:
DEFAULT,
GASLESS
executions
object[]
Ordered list of signing steps the client must complete before calling POST /submitTx. Only present when executionsType is GASLESS.
A single signing step returned in the executions array of a gasless getAction response. Only available for Tron same-chain swaps. The client must sign each item in order and include the signatures when calling POST /submitTx.
Option 1
Option 2
Show child attributes
relayerFee
object
Fee charged by the relay provider, denominated in USDT. If non-zero, the user must hold USDT in addition to the source token. Only present when executionsType is GASLESS.
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":""},"entitlements":{},"buildId":"6afe09394090677059e6e5a3","clientVersion":"0.0.4324","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":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"swap-api-reference/get-action","slug":"/swap-api-reference/get-action","pageMetadata":{"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","autogeneratedByOpenApi":true},"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: \"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.\"\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 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","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Get Action","servers":["a366d9e7-26fc-4f36-9998-85686157374c"],"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.","operationId":"getAction","parameters":["7908d3d4-b374-4855-9e12-7a002a3fdac1","aa1cec89-6dc6-4fcd-ba4d-58c0f9965568","ca89fc2a-2387-47a2-b43a-c1332e4f6be8","a96ff66f-e796-424e-8003-0c12b3d7c286","a40da740-2125-4786-bde4-4c2ec58df94b","9db5c401-b532-466e-b10a-6002c61a56c5","85eb3e5e-e9d0-410b-9729-69254dfdd395","c3d9f931-f04f-44ce-9d21-17d3c7155015","b86b3dda-668c-4334-88cf-a0e4e5f531b7","47e3fb14-7890-4b38-9412-054cac9f0b85","309f8485-7801-4f07-9990-45fd165f53f7","b773fb8f-31a0-4cc2-a1c4-757c9ce36e38","ee90711c-56ef-46d1-b654-2acaed0c2054","fdc5a441-ec88-4588-a378-4c68e3c3bb48","a43d16a4-256b-4aa6-b55f-7c7d5fee9c7d","bfc8a032-3604-4140-94d1-4098d454f041","ec18242a-b728-4be6-8216-8a0f339ec0e7","5ced0e8a-9cbd-47fc-8c9d-16cef6d4970d","077d0c64-82ad-4bad-b753-aacd4aeafce0","7894447b-c4ab-4266-8f29-c09a664a5c06","c06a3bc6-e73c-4a35-9ebb-a38bb3c8c471","27c418db-dee9-42cb-acd8-db91c1e76f3a","735142cd-551a-4340-b199-5aad09af0046","cd8cdc8b-164b-4f9e-8ff8-650056c3ae3a","73818459-22b8-44f2-8e24-5b7be3475caf","1c1b2d9e-5cd9-4c2e-a783-eed53be6013e","023c9dc4-39a8-4d5a-9120-818551a35f9e"],"responses":{"200":"71e0be98-89c7-4ad0-9567-1fb2835fc06a","400":"044830c0-09f5-4064-9770-dd85b63b275b","401":"a03c481b-f8be-484c-89ce-efddf222a84b","403":"e97f3064-b7b5-4bab-91e4-5804de8cd0d7","405":"cbb57b67-6e3d-4091-8bd8-af2d88d2e312","500":"4f5cbc01-540e-4703-8a16-91adeac6fc61"},"method":"get","type":"path","security":["90ee6fdd-ed07-470a-8684-d713c233a266"],"path":"/getAction","baseUrlOptions":["https://api-v2.swaps.xyz/api"],"title":"Get Action","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"7908d3d4-b374-4855-9e12-7a002a3fdac1":{"name":"actionType","in":"query","required":true,"description":"Type of action to perform","schema":{"type":"string","enum":["swap-action","evm-calldata-tx","polymarket"],"description":"Type of action to perform\nType of action to perform.","isRequired":true,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"aa1cec89-6dc6-4fcd-ba4d-58c0f9965568":{"name":"sender","in":"query","required":true,"description":"The address of the sender/user","schema":{"type":"string","description":"The address of the sender/user\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"ca89fc2a-2387-47a2-b43a-c1332e4f6be8":{"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"}},"a96ff66f-e796-424e-8003-0c12b3d7c286":{"name":"srcToken","in":"query","required":true,"description":"Source token address","schema":{"type":"string","description":"Source token address\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"a40da740-2125-4786-bde4-4c2ec58df94b":{"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"}},"9db5c401-b532-466e-b10a-6002c61a56c5":{"name":"dstToken","in":"query","required":true,"description":"Destination token address","schema":{"type":"string","description":"Destination token address\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"85eb3e5e-e9d0-410b-9729-69254dfdd395":{"name":"slippage","in":"query","required":true,"description":"Slippage tolerance in bps. Set this value carefully: a high slippage can degrade swap quality, as the swap may execute at a worse price than quoted. MoonPay is not responsible for outcomes within the slippage tolerance you configure.","schema":{"type":"number","format":"float","minimum":0,"maximum":10000,"isRequired":true,"description":"Slippage tolerance in bps. Set this value carefully: a high slippage can degrade swap quality, as the swap may execute at a worse price than quoted. MoonPay is not responsible for outcomes within the slippage tolerance you configure.","uniqueKey":"","typeLabel":"number\u003cfloat>"}},"c3d9f931-f04f-44ce-9d21-17d3c7155015":{"name":"amount","in":"query","required":false,"description":"The exact in or exact out amount of the swap\n\n**Required:** for `swap-action`\n\n**Required:** for `polymarket` action type","schema":{"type":"string","pattern":"^[0-9]+$","isRequired":false,"description":"The exact in or exact out amount of the swap\n\n**Required:** for `swap-action`\n\n**Required:** for `polymarket` action type","uniqueKey":"","typeLabel":"string"}},"b86b3dda-668c-4334-88cf-a0e4e5f531b7":{"name":"swapDirection","in":"query","required":false,"description":"Swap direction for the action\n\n**Required:** for `swap-action`\n\nFor `polymarket`, optional — defaults to `exact-amount-in` (recommended).","schema":{"type":"string","enum":["exact-amount-in","exact-amount-out"],"description":"Swap direction for the action\n\n**Required:** for `swap-action`\n\nFor `polymarket`, optional — defaults to `exact-amount-in` (recommended).\nSwap direction for the action.","isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"47e3fb14-7890-4b38-9412-054cac9f0b85":{"name":"recipient","in":"query","required":false,"description":"Address to receive the swapped tokens\n\n**Optional:** for `swap-action`\n\n**Required:** for `polymarket` action type (should be the proxy wallet address)","schema":{"type":"string","description":"Address to receive the swapped tokens\n\n**Optional:** for `swap-action`\n\n**Required:** for `polymarket` action type (should be the proxy wallet address)\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"309f8485-7801-4f07-9990-45fd165f53f7":{"name":"to","in":"query","required":false,"description":"The EVM address of the target contract (20 bytes hex)\n\n**Required:** for `evm-calldata-tx` action type","schema":{"type":"string","description":"The EVM address of the target contract (20 bytes hex)\n\n**Required:** for `evm-calldata-tx` action type\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"b773fb8f-31a0-4cc2-a1c4-757c9ce36e38":{"name":"data","in":"query","required":false,"description":"Calldata for the transaction\n\n**Required:** for `evm-calldata-tx` action type","schema":{"type":"string","pattern":"^0x[a-fA-F0-9]*$","description":"Calldata for the transaction\n\n**Required:** for `evm-calldata-tx` action type\nHex string with 0x prefix","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"ee90711c-56ef-46d1-b654-2acaed0c2054":{"name":"value","in":"query","required":false,"description":"Value to send with transaction\n\n**Optional:** for `evm-calldata-tx` action type","schema":{"type":"string","pattern":"^[0-9]+$","isRequired":false,"description":"Value to send with transaction\n\n**Optional:** for `evm-calldata-tx` action type","uniqueKey":"","typeLabel":"string"}},"fdc5a441-ec88-4588-a378-4c68e3c3bb48":{"name":"erc20Amount","in":"query","required":false,"description":"The amount of Erc20 being transferred\n\n**Optional:** for `evm-calldata-tx` action type (use for calls requiring Erc20 transfers)","schema":{"type":"string","pattern":"^[0-9]+$","isRequired":false,"description":"The amount of Erc20 being transferred\n\n**Optional:** for `evm-calldata-tx` action type (use for calls requiring Erc20 transfers)","uniqueKey":"","typeLabel":"string"}},"a43d16a4-256b-4aa6-b55f-7c7d5fee9c7d":{"name":"erc20Spender","in":"query","required":false,"description":"The Erc20 spender requiring approval for the transaction call\n\n**Optional:** for `evm-calldata-tx` action type (will default to the `to` address)","schema":{"type":"string","description":"The Erc20 spender requiring approval for the transaction call\n\n**Optional:** for `evm-calldata-tx` action type (will default to the `to` address)\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"bfc8a032-3604-4140-94d1-4098d454f041":{"name":"solanaSponsor","in":"query","required":false,"description":"Solana address that pays for tx fees and rent (e.g. ATA creation). Only used for Solana same chain swaps. Transaction must be signed by both the user and the sponsor.\n\n**Optional:** When provided, the sponsor covers transaction costs on behalf of the user.","schema":{"type":"string","description":"Solana address that pays for tx fees and rent (e.g. ATA creation). Only used for Solana same chain swaps. Transaction must be signed by both the user and the sponsor.\n\n**Optional:** When provided, the sponsor covers transaction costs on behalf of the user.\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"ec18242a-b728-4be6-8216-8a0f339ec0e7":{"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[]"}},"5ced0e8a-9cbd-47fc-8c9d-16cef6d4970d":{"name":"refundTo","in":"query","required":false,"description":"Alternate address to receive refunds\n\n**Optional:** Will default to the `sender`","schema":{"type":"string","description":"Alternate address to receive refunds\n\n**Optional:** Will default to the `sender`\nAddress type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"077d0c64-82ad-4bad-b753-aacd4aeafce0":{"name":"returnDepositAddress","in":"query","required":false,"description":"Return a deposit address for deposit-based flows\n\n**Optional:** Set to `true` to receive a deposit address in the response","schema":{"type":"boolean","default":false,"isRequired":false,"description":"Return a deposit address for deposit-based flows\n\n**Optional:** Set to `true` to receive a deposit address in the response","uniqueKey":"","typeLabel":"boolean"}},"7894447b-c4ab-4266-8f29-c09a664a5c06":{"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"}},"c06a3bc6-e73c-4a35-9ebb-a38bb3c8c471":{"name":"userId","in":"query","required":false,"description":"Polymarket user ID - returned from `POST /workflows/polymarket/createOrFetchPolymarketUser`\n\n**Required:** for `polymarket` action type","schema":{"type":"string","isRequired":false,"description":"Polymarket user ID - returned from `POST /workflows/polymarket/createOrFetchPolymarketUser`\n\n**Required:** for `polymarket` action type","uniqueKey":"","typeLabel":"string"}},"27c418db-dee9-42cb-acd8-db91c1e76f3a":{"name":"side","in":"query","required":false,"description":"Order side for Polymarket orders\n\n**Required:** for `polymarket` action type","schema":{"type":"string","enum":["BUY","SELL"],"isRequired":false,"description":"Order side for Polymarket orders\n\n**Required:** for `polymarket` action type","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"735142cd-551a-4340-b199-5aad09af0046":{"name":"tokenID","in":"query","required":false,"description":"Polymarket CLOB token ID\n\n**Required:** for `polymarket` action type","schema":{"type":"string","isRequired":false,"description":"Polymarket CLOB token ID\n\n**Required:** for `polymarket` action type","uniqueKey":"","typeLabel":"string"}},"cd8cdc8b-164b-4f9e-8ff8-650056c3ae3a":{"name":"orderType","in":"query","required":false,"description":"Polymarket order type\n\n**Required:** for `polymarket` action type\n\n- `FOK`: Fill or Kill (market order)\n- `FAK`: Fill and Kill (market order)","schema":{"type":"string","enum":["FOK","FAK"],"isRequired":false,"description":"Polymarket order type\n\n**Required:** for `polymarket` action type\n\n- `FOK`: Fill or Kill (market order)\n- `FAK`: Fill and Kill (market order)","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"73818459-22b8-44f2-8e24-5b7be3475caf":{"name":"tickSize","in":"query","required":false,"description":"Price tick size for Polymarket orders\n\n**Required:** for `polymarket` action type","schema":{"type":"string","enum":["0.01","0.001","0.0001"],"isRequired":false,"description":"Price tick size for Polymarket orders\n\n**Required:** for `polymarket` action type","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"1c1b2d9e-5cd9-4c2e-a783-eed53be6013e":{"name":"negRisk","in":"query","required":false,"description":"Negative risk flag for Polymarket\n\n**Required:** for `polymarket` action type","schema":{"type":"string","enum":["true","false"],"isRequired":false,"description":"Negative risk flag for Polymarket\n\n**Required:** for `polymarket` action type","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"023c9dc4-39a8-4d5a-9120-818551a35f9e":{"name":"gasless","in":"query","required":false,"description":"Request gasless execution. When `true`, the response includes an `executions` array of signed steps to relay through the gasless provider instead of broadcasting a transaction directly.\n\n**Optional:** Only supported on chains with a configured gasless provider (currently Tron). Requires the API key to have gasless enabled.","schema":{"type":"boolean","default":false,"isRequired":false,"description":"Request gasless execution. When `true`, the response includes an `executions` array of signed steps to relay through the gasless provider instead of broadcasting a transaction directly.\n\n**Optional:** Only supported on chains with a configured gasless provider (currently Tron). Requires the API key to have gasless enabled.","uniqueKey":"","typeLabel":"boolean"}}},"responses":{"71e0be98-89c7-4ad0-9567-1fb2835fc06a":{"description":"Successful response with action data","content":{"application/json":{"schema":{"type":"object","required":["tx","txId","vmId","amountIn","amountInMax","amountOutMin","amountOut","protocolFee","applicationFee","exchangeRate","estimatedTxTime","estimatedPriceImpact","allRoutes","requiresTokenApproval","requiresRegisterTransaction"],"properties":{"tx":{"oneOf":[{"type":"object","title":"EVM Transaction","description":"Transaction data for execution","required":["to","data","value"],"properties":{"to":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"EVM address (0x prefix + 40 hex characters)","isRequired":true,"uniqueKey":"tx.oneOf.0.to","typeLabel":"string"},"data":{"type":"string","pattern":"^0x[a-fA-F0-9]*$","description":"Hex string with 0x prefix","isRequired":true,"uniqueKey":"tx.oneOf.0.data","typeLabel":"string"},"value":{"type":"string","pattern":"^[0-9]+$","description":"Value in wei as string","isRequired":true,"uniqueKey":"tx.oneOf.0.value","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID. Find in the list of supported networks.","uniqueKey":"tx.oneOf.0.chainId","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"tx.oneOf.0","typeLabel":"EVM Transaction · object"},{"type":"object","title":"Solana Transaction","description":"Transaction data for execution","required":["base64Tx","recentBlockhash","payer"],"properties":{"base64Tx":{"type":"string","description":"Base64-encoded transaction","isRequired":true,"uniqueKey":"tx.oneOf.1.base64Tx","typeLabel":"string"},"recentBlockhash":{"type":"string","description":"Recent blockhash for transaction validity","isRequired":true,"uniqueKey":"tx.oneOf.1.recentBlockhash","typeLabel":"string"},"payer":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{32,44}$","description":"PublicKey who pays fees","isRequired":true,"uniqueKey":"tx.oneOf.1.payer","typeLabel":"string"}},"isRequired":true,"uniqueKey":"tx.oneOf.1","typeLabel":"Solana Transaction · object"},{"type":"object","title":"Alt VM Transaction","description":"Transaction data for execution","required":["to","value","chainId","chainKey"],"properties":{"to":{"type":"string","description":"Exchange address","isRequired":true,"uniqueKey":"tx.oneOf.2.to","typeLabel":"string"},"value":{"type":"string","pattern":"^[0-9]+$","description":"Value as string","isRequired":true,"uniqueKey":"tx.oneOf.2.value","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID. Find in the list of supported networks.","isRequired":true,"uniqueKey":"tx.oneOf.2.chainId","typeLabel":"integer"},"chainKey":{"type":"string","description":"Chain key identifier","isRequired":true,"uniqueKey":"tx.oneOf.2.chainKey","typeLabel":"string"},"toExtra":{"oneOf":[{"type":"string","description":"Additional address information (e.g., memo, tag). Can be null.","uniqueKey":"tx.oneOf.2.toExtra.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional address information (e.g., memo, tag). Can be null.","uniqueKey":"tx.oneOf.2.toExtra.oneOf.1","typeLabel":"null"}],"uniqueKey":"tx.oneOf.2.toExtra","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"tx.oneOf.2","typeLabel":"Alt VM Transaction · object"},{"type":"object","title":"HyperCore Transaction","description":"Transaction data for execution","required":["type","destination","amount","chainId"],"properties":{"type":{"type":"string","enum":["usdSend"],"isRequired":true,"uniqueKey":"tx.oneOf.3.type","typeLabel":"enum\u003cstring>"},"destination":{"type":"string","description":"Destination address","isRequired":true,"uniqueKey":"tx.oneOf.3.destination","typeLabel":"string"},"amount":{"type":"string","description":"Amount to transfer","isRequired":true,"uniqueKey":"tx.oneOf.3.amount","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID. 1337 for HyperCore","isRequired":true,"uniqueKey":"tx.oneOf.3.chainId","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"tx.oneOf.3","typeLabel":"HyperCore Transaction · object"},{"type":"object","title":"HyperCore Transaction","description":"Transaction data for execution","required":["type","destination","amount","chainId","sourceDex","destinationDex","token","fromSubAccount"],"properties":{"type":{"type":"string","enum":["sendAsset"],"isRequired":true,"uniqueKey":"tx.oneOf.4.type","typeLabel":"enum\u003cstring>"},"destination":{"type":"string","description":"Destination address","isRequired":true,"uniqueKey":"tx.oneOf.4.destination","typeLabel":"string"},"amount":{"type":"string","description":"Amount to transfer","isRequired":true,"uniqueKey":"tx.oneOf.4.amount","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID. 1337 for HyperCore","isRequired":true,"uniqueKey":"tx.oneOf.4.chainId","typeLabel":"integer"},"sourceDex":{"type":"string","description":"Source perp dex identifier. Empty string for the default perp dex, \"spot\" for the spot dex.","isRequired":true,"uniqueKey":"tx.oneOf.4.sourceDex","typeLabel":"string"},"destinationDex":{"type":"string","description":"Destination perp dex identifier","isRequired":true,"uniqueKey":"tx.oneOf.4.destinationDex","typeLabel":"string"},"token":{"type":"string","description":"Token identifier in \"SYMBOL:ADDRESS\" form","isRequired":true,"uniqueKey":"tx.oneOf.4.token","typeLabel":"string"},"fromSubAccount":{"type":"string","description":"Sub-account to send from. Empty string for the main account.","isRequired":true,"uniqueKey":"tx.oneOf.4.fromSubAccount","typeLabel":"string"}},"isRequired":true,"uniqueKey":"tx.oneOf.4","typeLabel":"HyperCore Transaction · object"},{"type":"object","title":"Tron Transaction","description":"Transaction data for execution","required":["to","data","value"],"properties":{"to":{"type":"string","pattern":"^T[a-zA-Z0-9]{33}$","description":"Tron address (base58, starts with 'T', 34 chars)","isRequired":true,"uniqueKey":"tx.oneOf.5.to","typeLabel":"string"},"data":{"type":"string","description":"Hex-encoded calldata","isRequired":true,"uniqueKey":"tx.oneOf.5.data","typeLabel":"string"},"value":{"type":"string","pattern":"^[0-9]+$","description":"Value as string","isRequired":true,"uniqueKey":"tx.oneOf.5.value","typeLabel":"string"}},"isRequired":true,"uniqueKey":"tx.oneOf.5","typeLabel":"Tron Transaction · object"},{"type":"object","title":"Ton Transaction","description":"Transaction data for execution","required":["messages"],"properties":{"messages":{"type":"array","description":"Outbound TON messages for the wallet to sign and send, in order. Field names and encodings match TonConnect's `sendTransaction` message shape, so this array can be passed through as-is (add your own `validUntil`).","items":{"type":"object","required":["address","amount"],"properties":{"address":{"type":"string","description":"Target contract address (user-friendly base64url, 48 chars)","isRequired":true,"uniqueKey":"tx.oneOf.6.messages.items.[INDEX].address","typeLabel":"string"},"amount":{"type":"string","description":"Nanotons to attach to the message — send exactly this, never add value on top. For a native-TON source it covers the swapped amount plus the gas budget; for a jetton source it is gas only (the jetton amount rides inside `payload`).","isRequired":true,"uniqueKey":"tx.oneOf.6.messages.items.[INDEX].amount","typeLabel":"string"},"payload":{"type":"string","description":"Message body (BoC), base64-encoded. Omitted for a plain value transfer.","uniqueKey":"tx.oneOf.6.messages.items.[INDEX].payload","typeLabel":"string"},"stateInit":{"type":"string","description":"State init (BoC), base64-encoded; only set when the jetton wallet still needs deploying","uniqueKey":"tx.oneOf.6.messages.items.[INDEX].stateInit","typeLabel":"string"}},"uniqueKey":"tx.oneOf.6.messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"tx.oneOf.6.messages","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"tx.oneOf.6","typeLabel":"Ton Transaction · object"}],"isRequired":true,"uniqueKey":"tx","typeLabel":"EVM Transaction · object · Solana Transaction · object · Alt VM Transaction · object · HyperCore Transaction · object · HyperCore Transaction · object · Tron Transaction · object · Ton Transaction · object"},"txId":{"type":"string","pattern":"^0x[a-fA-F0-9]*$","description":"Transaction ID","isRequired":true,"uniqueKey":"txId","typeLabel":"string"},"vmId":{"type":"string","enum":["evm","solana","alt-vm","hypercore","tron","ton"],"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":{"oneOf":[{"type":"number","format":"float","description":"Estimated price impact percentage.","isRequired":true,"uniqueKey":"estimatedPriceImpact.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"Estimated price impact percentage.","isRequired":true,"uniqueKey":"estimatedPriceImpact.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"estimatedPriceImpact","typeLabel":"number\u003cfloat> | null"},"requiresTokenApproval":{"type":"boolean","description":"Flag indicating whether the transaction object requires a source token approval check.","isRequired":true,"uniqueKey":"requiresTokenApproval","typeLabel":"boolean"},"requiresRegisterTransaction":{"type":"boolean","description":"Flag indicating whether the transaction requires registration via the registerTxs endpoint. Mandatory for non-EVM transactions.","isRequired":true,"uniqueKey":"requiresRegisterTransaction","typeLabel":"boolean"},"allRoutes":{"type":"array","items":{"type":"object","required":["tx","txId","amountIn","vmId","amountInMax","amountOutMin","amountOut","protocolFee","applicationFee","exchangeRate","estimatedTxTime","estimatedPriceImpact","requiresRegisterTransaction"],"properties":{"tx":{"oneOf":[{"type":"object","title":"EVM Transaction","description":"Transaction data for execution","required":["to","data","value"],"properties":{"to":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"EVM address (0x prefix + 40 hex characters)","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.0.to","typeLabel":"string"},"data":{"type":"string","pattern":"^0x[a-fA-F0-9]*$","description":"Hex string with 0x prefix","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.0.data","typeLabel":"string"},"value":{"type":"string","pattern":"^[0-9]+$","description":"Value in wei as string","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.0.value","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID. Find in the list of supported networks.","uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.0.chainId","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.0","typeLabel":"EVM Transaction · object"},{"type":"object","title":"Solana Transaction","description":"Transaction data for execution","required":["base64Tx","recentBlockhash","payer"],"properties":{"base64Tx":{"type":"string","description":"Base64-encoded transaction","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.1.base64Tx","typeLabel":"string"},"recentBlockhash":{"type":"string","description":"Recent blockhash for transaction validity","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.1.recentBlockhash","typeLabel":"string"},"payer":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{32,44}$","description":"PublicKey who pays fees","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.1.payer","typeLabel":"string"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.1","typeLabel":"Solana Transaction · object"},{"type":"object","title":"Alt VM Transaction","description":"Transaction data for execution","required":["to","value","chainId","chainKey"],"properties":{"to":{"type":"string","description":"Exchange address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.2.to","typeLabel":"string"},"value":{"type":"string","pattern":"^[0-9]+$","description":"Value as string","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.2.value","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID. Find in the list of supported networks.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.2.chainId","typeLabel":"integer"},"chainKey":{"type":"string","description":"Chain key identifier","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.2.chainKey","typeLabel":"string"},"toExtra":{"oneOf":[{"type":"string","description":"Additional address information (e.g., memo, tag). Can be null.","uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.2.toExtra.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional address information (e.g., memo, tag). Can be null.","uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.2.toExtra.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.2.toExtra","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.2","typeLabel":"Alt VM Transaction · object"},{"type":"object","title":"HyperCore Transaction","description":"Transaction data for execution","required":["type","destination","amount","chainId"],"properties":{"type":{"type":"string","enum":["usdSend"],"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.3.type","typeLabel":"enum\u003cstring>"},"destination":{"type":"string","description":"Destination address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.3.destination","typeLabel":"string"},"amount":{"type":"string","description":"Amount to transfer","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.3.amount","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID. 1337 for HyperCore","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.3.chainId","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.3","typeLabel":"HyperCore Transaction · object"},{"type":"object","title":"HyperCore Transaction","description":"Transaction data for execution","required":["type","destination","amount","chainId","sourceDex","destinationDex","token","fromSubAccount"],"properties":{"type":{"type":"string","enum":["sendAsset"],"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.4.type","typeLabel":"enum\u003cstring>"},"destination":{"type":"string","description":"Destination address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.4.destination","typeLabel":"string"},"amount":{"type":"string","description":"Amount to transfer","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.4.amount","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID. 1337 for HyperCore","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.4.chainId","typeLabel":"integer"},"sourceDex":{"type":"string","description":"Source perp dex identifier. Empty string for the default perp dex, \"spot\" for the spot dex.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.4.sourceDex","typeLabel":"string"},"destinationDex":{"type":"string","description":"Destination perp dex identifier","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.4.destinationDex","typeLabel":"string"},"token":{"type":"string","description":"Token identifier in \"SYMBOL:ADDRESS\" form","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.4.token","typeLabel":"string"},"fromSubAccount":{"type":"string","description":"Sub-account to send from. Empty string for the main account.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.4.fromSubAccount","typeLabel":"string"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.4","typeLabel":"HyperCore Transaction · object"},{"type":"object","title":"Tron Transaction","description":"Transaction data for execution","required":["to","data","value"],"properties":{"to":{"type":"string","pattern":"^T[a-zA-Z0-9]{33}$","description":"Tron address (base58, starts with 'T', 34 chars)","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.5.to","typeLabel":"string"},"data":{"type":"string","description":"Hex-encoded calldata","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.5.data","typeLabel":"string"},"value":{"type":"string","pattern":"^[0-9]+$","description":"Value as string","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.5.value","typeLabel":"string"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.5","typeLabel":"Tron Transaction · object"},{"type":"object","title":"Ton Transaction","description":"Transaction data for execution","required":["messages"],"properties":{"messages":{"type":"array","description":"Outbound TON messages for the wallet to sign and send, in order. Field names and encodings match TonConnect's `sendTransaction` message shape, so this array can be passed through as-is (add your own `validUntil`).","items":{"type":"object","required":["address","amount"],"properties":{"address":{"type":"string","description":"Target contract address (user-friendly base64url, 48 chars)","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.6.messages.items.[INDEX].address","typeLabel":"string"},"amount":{"type":"string","description":"Nanotons to attach to the message — send exactly this, never add value on top. For a native-TON source it covers the swapped amount plus the gas budget; for a jetton source it is gas only (the jetton amount rides inside `payload`).","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.6.messages.items.[INDEX].amount","typeLabel":"string"},"payload":{"type":"string","description":"Message body (BoC), base64-encoded. Omitted for a plain value transfer.","uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.6.messages.items.[INDEX].payload","typeLabel":"string"},"stateInit":{"type":"string","description":"State init (BoC), base64-encoded; only set when the jetton wallet still needs deploying","uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.6.messages.items.[INDEX].stateInit","typeLabel":"string"}},"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.6.messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.6.messages","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx.oneOf.6","typeLabel":"Ton Transaction · object"}],"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].tx","typeLabel":"EVM Transaction · object · Solana Transaction · object · Alt VM Transaction · object · HyperCore Transaction · object · HyperCore Transaction · object · Tron Transaction · object · Ton Transaction · object"},"txId":{"type":"string","pattern":"^0x[a-fA-F0-9]*$","description":"Transaction ID","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].txId","typeLabel":"string"},"vmId":{"type":"string","enum":["evm","solana","alt-vm","hypercore","tron","ton"],"description":"Virtual machine identifier.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].amountIn.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountIn.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountIn.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountIn.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountIn.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountIn.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].amountIn.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].amountIn.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"allRoutes.items.[INDEX].amountIn.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].amountIn.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].amountIn.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].amountIn.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].amountInMax.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountInMax.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountInMax.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountInMax.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountInMax.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountInMax.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].amountInMax.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].amountInMax.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"allRoutes.items.[INDEX].amountInMax.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].amountInMax.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].amountInMax.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].amountInMax.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].amountOut.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOut.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOut.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOut.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOut.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOut.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].amountOut.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].amountOut.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"allRoutes.items.[INDEX].amountOut.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].amountOut.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].amountOut.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].amountOut.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].amountOutMin.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOutMin.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOutMin.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOutMin.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOutMin.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].amountOutMin.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].amountOutMin.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].amountOutMin.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"allRoutes.items.[INDEX].amountOutMin.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].amountOutMin.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].amountOutMin.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].amountOutMin.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].protocolFee.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].protocolFee.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].protocolFee.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].protocolFee.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].protocolFee.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].protocolFee.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].protocolFee.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].protocolFee.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"allRoutes.items.[INDEX].protocolFee.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].protocolFee.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].protocolFee.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].protocolFee.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].applicationFee.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].applicationFee.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].applicationFee.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].applicationFee.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].applicationFee.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].applicationFee.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].applicationFee.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].applicationFee.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"allRoutes.items.[INDEX].applicationFee.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].applicationFee.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].applicationFee.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].applicationFee.usdAmount","typeLabel":"number\u003cfloat> | null"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].applicationFee","typeLabel":"object"},"exchangeRate":{"type":"number","format":"float","description":"Exchange rate for the swap.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].exchangeRate","typeLabel":"number\u003cfloat>"},"estimatedTxTime":{"type":"number","format":"float","description":"Estimated transaction time in seconds.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].estimatedTxTime","typeLabel":"number\u003cfloat>"},"estimatedPriceImpact":{"oneOf":[{"type":"number","format":"float","description":"Estimated price impact percentage.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].estimatedPriceImpact.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"Estimated price impact percentage.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].estimatedPriceImpact.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].estimatedPriceImpact","typeLabel":"number\u003cfloat> | null"},"requiresRegisterTransaction":{"type":"boolean","description":"Flag indicating whether the transaction requires registration via the registerTxs endpoint. Mandatory for non-EVM transactions.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].requiresRegisterTransaction","typeLabel":"boolean"},"bridgeFee":{"type":"object","description":"Bridge fee (from aggregated providers)","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeFee.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeFee.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeFee.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeFee.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeFee.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeFee.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].bridgeFee.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].bridgeFee.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"allRoutes.items.[INDEX].bridgeFee.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].bridgeFee.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].bridgeFee.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].bridgeFee.usdAmount","typeLabel":"number\u003cfloat> | null"}},"uniqueKey":"allRoutes.items.[INDEX].bridgeFee","typeLabel":"object"},"bridgeIds":{"type":"array","items":{"type":"string","description":"Bridge protocol identifier (e.g. \"across\", \"relay\", \"mayan\").","uniqueKey":"allRoutes.items.[INDEX].bridgeIds.items.[INDEX]","typeLabel":"string"},"description":"Bridge IDs used in the route.","uniqueKey":"allRoutes.items.[INDEX].bridgeIds","typeLabel":"string[]"},"bridgeRoute":{"type":"array","items":{"type":"object","required":["srcChainId","dstChainId","srcBridgeToken","dstBridgeToken","bridgeId"],"properties":{"srcChainId":{"type":"integer","description":"Chain ID. Find in the list of supported networks.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeRoute.items.[INDEX].srcChainId","typeLabel":"integer"},"dstChainId":{"type":"integer","description":"Chain ID. Find in the list of supported networks.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeRoute.items.[INDEX].dstChainId","typeLabel":"integer"},"srcBridgeToken":{"type":"string","description":"Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeRoute.items.[INDEX].srcBridgeToken","typeLabel":"string"},"dstBridgeToken":{"type":"string","description":"Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeRoute.items.[INDEX].dstBridgeToken","typeLabel":"string"},"bridgeId":{"type":"string","description":"Bridge protocol identifier (e.g. \"across\", \"relay\", \"mayan\").","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].bridgeRoute.items.[INDEX].bridgeId","typeLabel":"string"}},"uniqueKey":"allRoutes.items.[INDEX].bridgeRoute.items.[INDEX]","typeLabel":"object"},"description":"Bridge route information (src chain + token, dst chain + token, BridgeId)","uniqueKey":"allRoutes.items.[INDEX].bridgeRoute","typeLabel":"object[]"},"executionsType":{"type":"string","enum":["DEFAULT","GASLESS"],"description":"Indicates the execution mode. `GASLESS` when `gasless=true` was requested and a relay provider is available; `DEFAULT` otherwise.","uniqueKey":"allRoutes.items.[INDEX].executionsType","typeLabel":"enum\u003cstring>"},"executions":{"type":"array","items":{"oneOf":[{"type":"object","description":"A single signing step returned in the `executions` array of a gasless `getAction` response. Only available for Tron same-chain swaps. The client must sign each item in order and include the signatures when calling `POST /submitTx`.","required":["txType","data"],"properties":{"txType":{"type":"string","enum":["evmTransactionSign"],"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.0.txType","typeLabel":"enum\u003cstring>"},"data":{"type":"string","description":"JSON string of an unsigned Tron transaction (TronWeb `raw_data` shape)","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.0.data","typeLabel":"string"},"signature":{"type":"string","description":"Hex-encoded signature from TronLink or compatible Tron wallet","uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.0.signature","typeLabel":"string"}},"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A single signing step returned in the `executions` array of a gasless `getAction` response. Only available for Tron same-chain swaps. The client must sign each item in order and include the signatures when calling `POST /submitTx`.","required":["txType","data"],"properties":{"txType":{"type":"string","enum":["evmSignTypedData"],"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.txType","typeLabel":"enum\u003cstring>"},"data":{"oneOf":[{"type":"string","description":"EIP-712 typed data to sign. Accepted as either a JSON string (same format returned by `GET /getAction`) or a parsed object — both are equivalent.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.0","typeLabel":"string"},{"type":"object","description":"EIP-712 typed data to sign. Accepted as either a JSON string (same format returned by `GET /getAction`) or a parsed object — both are equivalent.","required":["domain","types","message"],"properties":{"domain":{"type":"object","required":["name","version","chainId","verifyingContract"],"properties":{"name":{"type":"string","description":"EIP-712 domain name","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.domain.name","typeLabel":"string"},"version":{"type":"string","description":"EIP-712 domain version","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.domain.version","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID the typed data is bound to","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.domain.chainId","typeLabel":"integer"},"verifyingContract":{"type":"string","description":"Address of the contract verifying the signature","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.domain.verifyingContract","typeLabel":"string"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.domain","typeLabel":"object"},"types":{"type":"object","description":"EIP-712 type definitions (field name → array of {name, type} pairs)","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.types.additionalProperties.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.types.additionalProperties.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.types.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.types.additionalProperties","typeLabel":"object[]"},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.types","typeLabel":"object"},"message":{"type":"object","description":"The typed data message payload","additionalProperties":true,"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1.message","typeLabel":"object"}},"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.data","typeLabel":"string | object"},"signature":{"type":"string","description":"Hex-encoded EIP-712 signature","uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1.signature","typeLabel":"string"}},"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"allRoutes.items.[INDEX].executions.items.[INDEX]","typeLabel":"object"},"description":"Ordered list of signing steps the client must complete before calling `POST /submitTx`. Only present when `executionsType` is `GASLESS`.","uniqueKey":"allRoutes.items.[INDEX].executions","typeLabel":"object[]"},"relayerFee":{"type":"object","description":"Fee charged by the relay provider, denominated in USDT. If non-zero, the user must hold USDT in addition to the source token. Only present when `executionsType` is `GASLESS`.","required":["amount","chainId","address","name","symbol","decimals","isNative"],"properties":{"chainId":{"type":"integer","description":"Chain ID for the token","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].relayerFee.chainId","typeLabel":"integer"},"address":{"type":"string","description":"Token address","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].relayerFee.address","typeLabel":"string"},"name":{"type":"string","description":"Token name","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].relayerFee.name","typeLabel":"string"},"symbol":{"type":"string","description":"Token symbol","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].relayerFee.symbol","typeLabel":"string"},"decimals":{"type":"integer","description":"Token decimals","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].relayerFee.decimals","typeLabel":"integer"},"isNative":{"type":"boolean","description":"Boolean flag for whether token is the chain's gas token.","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].relayerFee.isNative","typeLabel":"boolean"},"amount":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].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":"allRoutes.items.[INDEX].relayerFee.logo.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].relayerFee.logo","typeLabel":"string | null"},"swapsXyzCode":{"type":"string","description":"Internal Swaps.xyz token identifier code.","uniqueKey":"allRoutes.items.[INDEX].relayerFee.swapsXyzCode","typeLabel":"string"},"usdAmount":{"oneOf":[{"type":"number","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].relayerFee.usdAmount.oneOf.0","typeLabel":"number\u003cfloat>"},{"type":"null","format":"float","description":"USD value of the payment amount","uniqueKey":"allRoutes.items.[INDEX].relayerFee.usdAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"allRoutes.items.[INDEX].relayerFee.usdAmount","typeLabel":"number\u003cfloat> | null"}},"uniqueKey":"allRoutes.items.[INDEX].relayerFee","typeLabel":"object"}},"uniqueKey":"allRoutes.items.[INDEX]","typeLabel":"object"},"description":"All available routes for the action.","isRequired":true,"uniqueKey":"allRoutes","typeLabel":"object[]"},"bridgeFee":{"type":"object","description":"Bridge fee (from aggregated providers)","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"},"bridgeIds":{"type":"array","items":{"type":"string","description":"Bridge protocol identifier (e.g. \"across\", \"relay\", \"mayan\").","uniqueKey":"bridgeIds.items.[INDEX]","typeLabel":"string"},"description":"Bridge IDs used in the route.","uniqueKey":"bridgeIds","typeLabel":"string[]"},"bridgeRoute":{"type":"array","items":{"type":"object","required":["srcChainId","dstChainId","srcBridgeToken","dstBridgeToken","bridgeId"],"properties":{"srcChainId":{"type":"integer","description":"Chain ID. Find in the list of supported networks.","isRequired":true,"uniqueKey":"bridgeRoute.items.[INDEX].srcChainId","typeLabel":"integer"},"dstChainId":{"type":"integer","description":"Chain ID. Find in the list of supported networks.","isRequired":true,"uniqueKey":"bridgeRoute.items.[INDEX].dstChainId","typeLabel":"integer"},"srcBridgeToken":{"type":"string","description":"Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":true,"uniqueKey":"bridgeRoute.items.[INDEX].srcBridgeToken","typeLabel":"string"},"dstBridgeToken":{"type":"string","description":"Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.","isRequired":true,"uniqueKey":"bridgeRoute.items.[INDEX].dstBridgeToken","typeLabel":"string"},"bridgeId":{"type":"string","description":"Bridge protocol identifier (e.g. \"across\", \"relay\", \"mayan\").","isRequired":true,"uniqueKey":"bridgeRoute.items.[INDEX].bridgeId","typeLabel":"string"}},"uniqueKey":"bridgeRoute.items.[INDEX]","typeLabel":"object"},"description":"Bridge route information (src chain + token, dst chain + token, BridgeId)","uniqueKey":"bridgeRoute","typeLabel":"object[]"},"executionsType":{"type":"string","enum":["DEFAULT","GASLESS"],"description":"Indicates the execution mode. `GASLESS` when `gasless=true` was requested and a relay provider is available; `DEFAULT` otherwise.","uniqueKey":"executionsType","typeLabel":"enum\u003cstring>"},"executions":{"type":"array","items":{"oneOf":[{"type":"object","description":"A single signing step returned in the `executions` array of a gasless `getAction` response. Only available for Tron same-chain swaps. The client must sign each item in order and include the signatures when calling `POST /submitTx`.","required":["txType","data"],"properties":{"txType":{"type":"string","enum":["evmTransactionSign"],"isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.0.txType","typeLabel":"enum\u003cstring>"},"data":{"type":"string","description":"JSON string of an unsigned Tron transaction (TronWeb `raw_data` shape)","isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.0.data","typeLabel":"string"},"signature":{"type":"string","description":"Hex-encoded signature from TronLink or compatible Tron wallet","uniqueKey":"executions.items.[INDEX].oneOf.0.signature","typeLabel":"string"}},"uniqueKey":"executions.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A single signing step returned in the `executions` array of a gasless `getAction` response. Only available for Tron same-chain swaps. The client must sign each item in order and include the signatures when calling `POST /submitTx`.","required":["txType","data"],"properties":{"txType":{"type":"string","enum":["evmSignTypedData"],"isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.txType","typeLabel":"enum\u003cstring>"},"data":{"oneOf":[{"type":"string","description":"EIP-712 typed data to sign. Accepted as either a JSON string (same format returned by `GET /getAction`) or a parsed object — both are equivalent.","isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.0","typeLabel":"string"},{"type":"object","description":"EIP-712 typed data to sign. Accepted as either a JSON string (same format returned by `GET /getAction`) or a parsed object — both are equivalent.","required":["domain","types","message"],"properties":{"domain":{"type":"object","required":["name","version","chainId","verifyingContract"],"properties":{"name":{"type":"string","description":"EIP-712 domain name","isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.domain.name","typeLabel":"string"},"version":{"type":"string","description":"EIP-712 domain version","isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.domain.version","typeLabel":"string"},"chainId":{"type":"integer","description":"Chain ID the typed data is bound to","isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.domain.chainId","typeLabel":"integer"},"verifyingContract":{"type":"string","description":"Address of the contract verifying the signature","isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.domain.verifyingContract","typeLabel":"string"}},"isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.domain","typeLabel":"object"},"types":{"type":"object","description":"EIP-712 type definitions (field name → array of {name, type} pairs)","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.types.additionalProperties.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.types.additionalProperties.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.types.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.types.additionalProperties","typeLabel":"object[]"},"isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.types","typeLabel":"object"},"message":{"type":"object","description":"The typed data message payload","additionalProperties":true,"isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1.message","typeLabel":"object"}},"isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"executions.items.[INDEX].oneOf.1.data","typeLabel":"string | object"},"signature":{"type":"string","description":"Hex-encoded EIP-712 signature","uniqueKey":"executions.items.[INDEX].oneOf.1.signature","typeLabel":"string"}},"uniqueKey":"executions.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"executions.items.[INDEX]","typeLabel":"object"},"description":"Ordered list of signing steps the client must complete before calling `POST /submitTx`. Only present when `executionsType` is `GASLESS`.","uniqueKey":"executions","typeLabel":"object[]"},"relayerFee":{"type":"object","description":"Fee charged by the relay provider, denominated in USDT. If non-zero, the user must hold USDT in addition to the source token. Only present when `executionsType` is `GASLESS`.","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":{"tx":{"to":"\u003cstring>","data":"\u003cstring>","value":"\u003cstring>","chainId":123},"txId":"\u003cstring>","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,"allRoutes":[{"tx":{"to":"\u003cstring>","data":"\u003cstring>","value":"\u003cstring>","chainId":123},"txId":"\u003cstring>","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,"requiresRegisterTransaction":true,"bridgeFee":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123},"bridgeIds":["\u003cstring>"],"bridgeRoute":[{"srcChainId":123,"dstChainId":123,"srcBridgeToken":"\u003cstring>","dstBridgeToken":"\u003cstring>","bridgeId":"\u003cstring>"}],"executionsType":"DEFAULT","executions":[{"txType":"evmTransactionSign","data":"\u003cstring>","signature":"\u003cstring>"}],"relayerFee":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123}}],"bridgeFee":{"chainId":123,"address":"\u003cstring>","name":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"isNative":true,"amount":"\u003cstring>","logo":"\u003cstring>","swapsXyzCode":"\u003cstring>","usdAmount":123},"bridgeIds":["\u003cstring>"],"bridgeRoute":[{"srcChainId":123,"dstChainId":123,"srcBridgeToken":"\u003cstring>","dstBridgeToken":"\u003cstring>","bridgeId":"\u003cstring>"}],"executionsType":"DEFAULT","executions":[{"txType":"evmTransactionSign","data":"\u003cstring>","signature":"\u003cstring>"}],"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"},"044830c0-09f5-4064-9770-dd85b63b275b":{"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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","summary":"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"}}}},"exampleType":"examples"}},"exampleType":"examples"},"a03c481b-f8be-484c-89ce-efddf222a84b":{"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","summary":"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","summary":"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"},"e97f3064-b7b5-4bab-91e4-5804de8cd0d7":{"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","summary":"Geographic Restriction","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"}}},"WALLET_SCREENED":{"title":"WALLET_SCREENED","summary":"Wallet Screening","value":{"success":false,"error":{"code":"WALLET_SCREENED","name":"WalletScreeningError","message":"Access denied due to wallet screening restrictions.","title":"Wallet screening restriction","statusCode":403,"details":{"walletAddress":"0x1234567890123456789012345678901234567890","chainId":1,"riskLevel":"HIGH","reason":"Wallet flagged by screening service","screenedAt":"2024-01-15T10:30:00.000Z"},"timestamp":"2024-01-01T00:00:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"cbb57b67-6e3d-4091-8bd8-af2d88d2e312":{"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","summary":"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"},"4f5cbc01-540e-4703-8a16-91adeac6fc61":{"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","summary":"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":{"90ee6fdd-ed07-470a-8684-d713c233a266":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Limited demo key for API Reference: `5c951bc81da566bbd030ba8e20724063`.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"a366d9e7-26fc-4f36-9998-85686157374c":{"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 Action - Swaps API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T20:23:28.177Z","originalFileLocation":"swap-api-reference/get-action.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=\"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.\">\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 Action - Swaps API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"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.\">\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-action\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://swaps.mintlify.site/_mintlify/api/og/v2?division=Core\u0026amp;title=Get+Action\u0026amp;description=Generates+a+transaction+for+cross-chain+swaps%2C+bridges%2C+and+calls.+The+action+includes+transaction+data%2C+routing+information%2C+and+fee+calculations+for+executing\u0026amp;theme=fc8d807329a31d9bcd1aecb1\u0026amp;signature=83ef95f33c9cd73061ef7f82c4727e31d065703836209a335d821c113a5d6ed6\">\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 Action - Swaps API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://swaps.mintlify.site/_mintlify/api/og/v2?division=Core\u0026amp;title=Get+Action\u0026amp;description=Generates+a+transaction+for+cross-chain+swaps%2C+bridges%2C+and+calls.+The+action+includes+transaction+data%2C+routing+information%2C+and+fee+calculations+for+executing\u0026amp;theme=fc8d807329a31d9bcd1aecb1\u0026amp;signature=83ef95f33c9cd73061ef7f82c4727e31d065703836209a335d821c113a5d6ed6\">\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-action\">\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-action.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-action#webpage\",\"url\":\"https://docs.swaps.xyz/swap-api-reference/get-action\",\"name\":\"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.\",\"dateModified\":\"2026-11-18T20:23:28.177Z\",\"isPartOf\":{\"@id\":\"https://docs.swaps.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.swaps.xyz/swap-api-reference/get-action#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.swaps.xyz/swap-api-reference/get-action#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core\",\"item\":\"https://docs.swaps.xyz/swap-api-reference/get-quote\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Action\",\"item\":\"https://docs.swaps.xyz/swap-api-reference/get-action\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.swaps.xyz/swap-api-reference/get-action#apireference\",\"headline\":\"Get Action\",\"name\":\"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.\",\"url\":\"https://docs.swaps.xyz/swap-api-reference/get-action\",\"mainEntityOfPage\":{\"@id\":\"https://docs.swaps.xyz/swap-api-reference/get-action#webpage\"},\"dateModified\":\"2026-11-18T20:23:28.177Z\",\"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\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Swaps API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/swap-api-reference/get-action.md","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","href":"/swap-api-reference/overview"}]},{"group":"Core","pages":[{"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"},{"title":"Get Action","deprecated":null,"version":null,"openapi":"/swap-api-reference/openapi.json get /getAction","href":"/swap-api-reference/get-action"},{"title":"Get Status","description":"Retrieve the status and details of a transaction by transaction ID.","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"}]}]},"basePath":"","title":"Get Action - Swaps API Documentation","deploymentId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","buildId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CbGMcFGR.js","snippetPresets-Bmv5mKa2.js","utils-CIXWNXpX.js","style-to-object-BY3JEAdk.js","utils-Ao5f3MLv.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CnDl3Tzk.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DCKK_-ms.js","_Uint8Array-AD2KodMR.js","isObject-FP1Yky1u.js","ApiExamples-WuhTLGpi.js","usePlaygroundInputsStore-TEEPsnq4.js","shallow-CPMaphSa.js","isEqual-DPVEsfEY.js","CodeSnippets-4KiTz0PS.js","CodeSnippet-Cy8aP2_X.js","use-playground-group-access-DM2iaKsK.js","Page-Ch7YiUoh.js","api-description-markdown-CN0nQq69.js","DynamicMarkdown-fZBmrd-V.js","SectionHeading-CwLwzaE9.js","MethodPill-De3Dnqxv.js","getPastedJson-obk3J_hD.js","Check2Icon-BbG90KLF.js","axios-CsQoIw0U.js","Markdown-CaQvVc8r.js","AssistantPageLink-C8wUIKD2.js","dist-CpT8yZOW.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}