{"openapi":"3.0.3","info":{"title":"SwapKit API","description":"Documentation for the SwapKit API.\n\n* [SwapKit Documentation](https://docs.swapkit.dev)\n* [Create & Manage API Keys](https://partners.swapkit.dev)\n* [SwapKit Website](https://swapkit.dev)","version":"0.1.0"},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"x-api-key","in":"header"}},"schemas":{}},"paths":{"/quote":{"post":{"tags":["Quote V2"],"description":"Geo-restricted tokens return 451: the asset is not available in the caller's jurisdiction. Send the end user's IP in `X-Forwarded-For` (or `X-User-Ip`) so the region is resolved for them rather than for the calling server.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"sellAsset":{"type":"string","description":"Asset to sell"},"buyAsset":{"type":"string","description":"Asset to buy"},"sellAmount":{"type":"string","description":"Amount of asset to sell"},"providers":{"type":"array","items":{"type":"string","description":"List of providers to use"}},"sourceAddress":{"type":"string","description":"Address to send asset from. On a UTXO sell chain this may name several addresses to draw inputs from, separated by `;` — the first is used wherever a single address is required (refund address, memos, deposit channels). At most 20 addresses when every one is native SegWit (`bc1…`/`ltc1…`) on Bitcoin or Litecoin, and at most 6 addresses otherwise; repeats are ignored, empty entries are rejected."},"destinationAddress":{"type":"string","description":"Address to send asset to"},"slippage":{"type":"number","minimum":0,"maximum":100,"description":"Slippage tolerance as a percentage. Default is 1%."},"cfBoost":{"type":"boolean","description":"Set to true to enable CF boost to speed up Chainflip swaps. BTC only."},"usePrivacyMode":{"type":"boolean","description":"Set to true to request a privacy-preserving swap, where the trade details are not exposed publicly while the swap executes. Acts as a filter, not a hint: only routes on which EVERY provider supports a privacy mode are returned, since a single public leg would expose the trade. Today NEAR (Confidential Intents) is the only such provider, so routes touching any other provider are dropped and a pair with no privacy-capable route returns no routes at all."},"quoteType":{"default":"EXACT_INPUT","type":"string","enum":["EXACT_INPUT","FLEX_INPUT","EXACT_OUTPUT"],"description":"EXACT_INPUT (default) or FLEX_INPUT. On FLEX_INPUT, routes whose first-leg provider can't honour the mode are filtered out. Supported first-leg providers: THORCHAIN, MAYACHAIN, CHAINFLIP (incl. streaming variants), NEAR, and FLASHNET. EXACT_OUTPUT is v3 only — use /v3/quote."},"disableEstimate":{"default":true,"type":"boolean","description":"Set to true to disable on-chain estimation"},"enableSweep":{"type":"boolean","description":"Set to true to enable sweeping wallet funds when the transaction would otherwise leave unspendable dust in the address (opt-in)."},"gasCheck":{"type":"boolean","description":"Set to true to check the wallet's native gas balance and warn when it can't cover the network fee (opt-in). Acted on at /swap, which inherits this value unless it sets its own."},"maxExecutionTime":{"type":"number","minimum":1,"description":"Maximum execution time in seconds. Routes exceeding this time will be filtered out."},"affiliateFee":{"type":"number","maximum":1000,"description":"Affiliate fee in basis points. This should only be used as an override, for example when you have some rebate or discount program. If not provided, the fees configured in your API Key will be used."}},"required":["sellAsset","buyAsset","sellAmount"]},{"type":"object","properties":{"allowSmartContractSender":{"type":"boolean","description":"Allow smart contract as sender"},"allowSmartContractReceiver":{"type":"boolean","description":"Allow smart contract as recipient"},"disableSecurityChecks":{"type":"boolean","description":"Disable security checks"},"disableBalanceCheck":{"type":"boolean","description":"Disable balance check"},"includeTx":{"type":"boolean","description":"Set to true to include an transaction object (EVM only)"}}}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string","description":"Quote ID"},"routes":{"type":"array","items":{"type":"object","properties":{"sellAsset":{"type":"string","description":"Asset to sell"},"sellAmount":{"type":"string","description":"Sell amount"},"buyAsset":{"type":"string","description":"Asset to buy"},"buyAmount":{"type":"string","description":"Buy amount"},"buyAmountMaxSlippage":{"type":"string","description":"Buy amount max slippage"},"expectedBuyAmount":{"type":"string","description":"Expected Buy amount"},"expectedBuyAmountMaxSlippage":{"type":"string","description":"Expected Buy amount max slippage"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"previousLegProvider":{"description":"The provider of the previous leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"nextLegProvider":{"description":"The provider of the next leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"routeId":{"type":"string","description":"Route ID"},"providers":{"type":"array","items":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"expiration":{"type":"string","description":"Expiration"},"estimatedTime":{"type":"object","properties":{"inbound":{"type":"number","description":"Time to receive inbound asset in seconds"},"swap":{"type":"number","description":"Time to swap assets in seconds"},"outbound":{"type":"number","description":"Time to receive outbound asset in seconds"},"total":{"type":"number","description":"Total time in seconds"}},"required":["total"],"additionalProperties":false},"totalSlippageBps":{"type":"number","description":"Total slippage in bps"},"legs":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"sellAsset":{"type":"string","description":"Asset to sell"},"sellAmount":{"type":"string","description":"Sell amount"},"buyAsset":{"type":"string","description":"Asset to buy"},"buyAmount":{"type":"string","description":"Buy amount"},"buyAmountMaxSlippage":{"type":"string","description":"Buy amount max slippage"},"expectedBuyAmount":{"type":"string","description":"Expected Buy amount"},"expectedBuyAmountMaxSlippage":{"type":"string","description":"Expected Buy amount max slippage"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"previousLegProvider":{"description":"The provider of the previous leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"nextLegProvider":{"description":"The provider of the next leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["provider","sellAsset","sellAmount","buyAsset","fees"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["highSlippage","highPriceImpact","noSourceAddressToBuildTransaction","affiliateFeeTooSmallSoRemoved","unableToApplyReferralProgram","insufficientBalance","insufficientGas","unableToBuildTransaction","unableToEstimateGas","limitPriceBelowSpot","limitPriceWithinFeeGap","limitOrderNotionalTooSmall","outputBelowPublishedFloor","litecoinMwebNotSupported","refundAddressNotApplied","vaultSwapUnavailable"]},"display":{"type":"string"},"tooltip":{"type":"string"},"data":{"description":"Structured form of the figures embedded in `display`. Present only on `insufficientGas`; absent on every other warning code.","type":"object","properties":{"chain":{"type":"string","description":"Chain whose native gas asset is short, e.g. \"TRON\"."},"asset":{"type":"string","description":"Identifier of the gas asset, e.g. \"TRON.TRX\"."},"ticker":{"type":"string","description":"Ticker of the gas asset, e.g. \"TRX\"."},"estimatedFee":{"type":"string","description":"Estimated network fee, as a decimal string in the gas asset's own units. An estimate, not a quoted fee: on TRON it is what a node says this specific wallet would pay, and it drifts as staked energy/bandwidth regenerates. Good for display and for comparing against the balance; not a 'top up exactly this much' figure."},"balance":{"type":"string","description":"The source address' gas-asset balance as read while building this swap, as a decimal string in the gas asset's own units. Read at /swap time, not at quote time."}},"required":["chain","asset","ticker","estimatedFee","balance"],"additionalProperties":false}},"required":["code","display"],"additionalProperties":false}},"txHint":{"type":"string","enum":["simpleTransfer","transferWithMemo","contractCall"]},"sourceAddress":{"type":"string","description":"Source address"},"destinationAddress":{"type":"string","description":"Destination address"},"targetAddress":{"type":"string","description":"Target address"},"inboundAddress":{"type":"string","description":"Inbound address"},"shieldedMemo":{"description":"Shielded ZEC source only: send a 0-value shielded note carrying the memo to this unified address, in the SAME transaction as the value output to inboundAddress","type":"object","properties":{"unifiedAddress":{"type":"string","description":"Maya's unified address that receives the 0-value shielded memo note"},"uivk":{"description":"Maya's unified incoming viewing key used to decrypt the memo note","type":"string"}},"required":["unifiedAddress"],"additionalProperties":false},"memo":{"type":"string","description":"Memo to include in the transaction"},"txType":{"type":"string","enum":["PSBT","EVM","COSMOS","SERIALIZED_BASE64","RIPPLE","TRON","NEAR","SUI","CBOR","TON","STARKNET","zcash-unsigned","STELLAR","EIP_712_HYPE_WITHDRAW","EIP_712_HYPE_SEND_ASSET"]},"tx":{"anyOf":[{"type":"object","properties":{"to":{"type":"string","description":"Hex-encoded recipient address (native TRX) or TRC-20 token contract address"},"from":{"type":"string","description":"Hex-encoded sender address"},"value":{"type":"string","description":"Transfer amount in base units"},"data":{"type":"string","description":"ABI-encoded TRC-20 transfer parameters, or 0x for native TRX"},"memo":{"type":"string","description":"Transaction memo to attach on-chain: either a plain-text provider memo (e.g. THORChain) or a 0x-prefixed hex byte payload (e.g. Chainflip vault swap parameters), which must be attached as raw bytes"}},"required":["to","value","data","memo"],"additionalProperties":false},{"type":"object","properties":{"to":{"type":"string","description":"Address of the recipient"},"from":{"type":"string","description":"Address of the sender"},"gas":{"type":"string","description":"Gas limit"},"gasPrice":{"type":"string","description":"Gas price (legacy, type-0 transactions only)"},"maxFeePerGas":{"type":"string","description":"Maximum total fee per gas (EIP-1559, type-2 transactions only)"},"maxPriorityFeePerGas":{"type":"string","description":"Maximum priority fee per gas, the validator tip (EIP-1559, type-2 only)"},"type":{"type":"string","description":"EIP-2718 transaction type, hex-quantified — \"0x2\" for EIP-1559"},"value":{"type":"string","description":"Value to send"},"data":{"type":"string","description":"Data to send"}},"required":["to","value","data"],"additionalProperties":false},{"type":"object","properties":{"memo":{"type":"string"},"accountNumber":{"type":"number"},"sequence":{"type":"number"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"msgs":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"value":{}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"typeUrl":{"type":"string"},"value":{}},"required":["typeUrl","value"],"additionalProperties":false}]}},"fee":{"type":"object","properties":{"amount":{"type":"array","items":{"type":"object","properties":{"denom":{"type":"string"},"amount":{"type":"string"}},"required":["denom","amount"],"additionalProperties":false}},"gas":{"type":"string"}},"required":["amount","gas"],"additionalProperties":false}},"required":["memo","accountNumber","sequence","chainId","msgs","fee"],"additionalProperties":false},{"type":"object","properties":{"visible":{"type":"boolean"},"txID":{"type":"string"},"raw_data":{"type":"object","properties":{"contract":{},"ref_block_bytes":{"type":"string"},"ref_block_hash":{"type":"string"},"expiration":{"type":"number"},"fee_limit":{},"timestamp":{"type":"number"},"data":{}},"required":["contract","ref_block_bytes","ref_block_hash","expiration","timestamp"],"additionalProperties":false},"raw_data_hex":{"type":"string"}},"required":["txID","raw_data","raw_data_hex"],"additionalProperties":false},{"type":"array","items":{"type":"object","properties":{"contractAddress":{"type":"string"},"entrypoint":{"type":"string"},"calldata":{"type":"array","items":{"type":"string"}}},"required":["contractAddress","entrypoint","calldata"],"additionalProperties":false}},{"type":"object","properties":{"sendMode":{"type":"number","description":"@ton/ton SendMode bitmask applied to the whole transfer — TON wallets take a single mode per transaction, not per message. 3 (PAY_GAS_SEPARATELY | IGNORE_ERRORS) normally; 130 (CARRY_ALL_REMAINING_BALANCE | IGNORE_ERRORS) on sweeps, so the wallet sends balance − fees instead of the literal amount."},"messages":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","description":"Destination address in friendly format"},"amount":{"type":"string","description":"Amount in nanotons"},"payload":{"description":"Base64 BOC of body cell","type":"string"},"stateInit":{"description":"Base64 BOC of state init","type":"string"}},"required":["address","amount"],"additionalProperties":false}}},"required":["sendMode","messages"],"additionalProperties":false},{"type":"object","properties":{"domain":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"chainId":{"type":"number"},"verifyingContract":{"type":"string"}},"required":["name","version","chainId","verifyingContract"],"additionalProperties":false},"types":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}}},"value":{"type":"object","additionalProperties":{}}},"required":["domain","types","value"],"additionalProperties":false},{"type":"object","properties":{"typedData":{"type":"object","properties":{"domain":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"chainId":{"type":"number"},"verifyingContract":{"type":"string"}},"required":["name","version","chainId","verifyingContract"],"additionalProperties":false},"primaryType":{"type":"string"},"types":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}}},"message":{"type":"object","additionalProperties":{}}},"required":["domain","primaryType","types","message"],"additionalProperties":false},"action":{"type":"object","properties":{"type":{"type":"string","enum":["sendAsset"]},"hyperliquidChain":{"type":"string"},"signatureChainId":{"type":"string"},"destination":{"type":"string"},"sourceDex":{"type":"string"},"destinationDex":{"type":"string"},"token":{"type":"string"},"amount":{"type":"string"},"fromSubAccount":{"type":"string"},"nonce":{"type":"number"}},"required":["type","hyperliquidChain","signatureChainId","destination","sourceDex","destinationDex","token","amount","fromSubAccount","nonce"],"additionalProperties":false},"submitTo":{"type":"string"}},"required":["typedData","action","submitTo"],"additionalProperties":false},{"type":"string"}]},"meta":{"type":"object","properties":{"assets":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string","description":"Asset name"},"price":{"type":"number","description":"Price in USD"},"image":{"type":"string","description":"Asset image"}},"required":["asset","price","image"],"additionalProperties":false}},"tags":{"type":"array","items":{"type":"string","enum":["CHEAPEST","FASTEST","RECOMMENDED"]}},"streamingInterval":{"type":"number"},"maxStreamingQuantity":{"type":"number"},"referrer":{"type":"string"},"quoteType":{"type":"string","enum":["EXACT_INPUT","FLEX_INPUT","EXACT_OUTPUT"],"description":"The quoteType this route was built for (EXACT_INPUT, FLEX_INPUT or EXACT_OUTPUT). Echoes the request's quoteType so /swap can carry the mode forward."},"priceImpact":{"type":"number","description":"Price impact"},"approvalAddress":{"type":"string","description":"Approval address for swap"},"affiliate":{"type":"string"},"affiliateFee":{"type":"string"},"txType":{"type":"string","enum":["PSBT","EVM","COSMOS","SERIALIZED_BASE64","RIPPLE","TRON","NEAR","SUI","CBOR","TON","STARKNET","zcash-unsigned","STELLAR","EIP_712_HYPE_WITHDRAW","EIP_712_HYPE_SEND_ASSET"]},"chainflip":{"type":"object","properties":{"destinationAddress":{"type":"string"},"sellAsset":{"type":"object","properties":{"chain":{"type":"string"},"asset":{"type":"string"}},"required":["chain","asset"],"additionalProperties":false},"buyAsset":{"type":"object","properties":{"chain":{"type":"string"},"asset":{"type":"string"}},"required":["chain","asset"],"additionalProperties":false},"sourceAddress":{"type":"string"},"channelMetadata":{"type":"object","properties":{"ccmAdditionalData":{"type":"string"},"gasBudget":{"type":"string"},"message":{"type":"string"},"cfParameters":{"type":"string"}},"additionalProperties":false},"affiliateFees":{"type":"array","items":{"type":"object","properties":{"brokerAddress":{"type":"string"},"feeBps":{"type":"number"}},"required":["brokerAddress","feeBps"],"additionalProperties":false}},"refundParameters":{"type":"object","properties":{"minPrice":{"type":"string"},"refundAddress":{"type":"string"},"retryDuration":{"type":"number"},"maxOraclePriceSlippage":{"type":"number"},"slippageTolerancePercent":{"type":"number"},"livePriceSlippageTolerancePercent":{"type":"number"}},"additionalProperties":false},"dcaParameters":{"type":"object","properties":{"chunkInterval":{"type":"number"},"numberOfChunks":{"type":"number"}},"additionalProperties":false},"brokerCommissionBps":{"type":"number"},"maxBoostFeeBps":{"type":"number"}},"required":["destinationAddress","sellAsset","buyAsset"],"additionalProperties":false},"garden":{"type":"object","properties":{"destinationAddress":{"type":"string"},"sellAsset":{"type":"string"},"buyAsset":{"type":"string"},"buyAmount":{"type":"string"},"sellAmount":{"type":"string"},"sourceAddress":{"type":"string"},"affiliateFees":{"type":"object","properties":{"address":{"type":"string"},"asset":{"type":"string"},"fee":{"type":"number"}},"required":["address","asset","fee"],"additionalProperties":false},"slippage":{"type":"number"}},"required":["destinationAddress","sellAsset","buyAsset","buyAmount","sellAmount","sourceAddress","slippage"],"additionalProperties":false},"near":{"type":"object","properties":{"destinationAddress":{"type":"string"},"sellAsset":{"type":"string"},"buyAsset":{"type":"string"},"sourceAddress":{"type":"string"},"sellAmount":{"type":"string"},"affiliateFees":{"type":"object","properties":{"nearId":{"type":"string"},"feeBps":{"type":"number"}},"required":["nearId","feeBps"],"additionalProperties":false},"slippage":{"type":"number"}},"required":["destinationAddress","sellAsset","buyAsset","sourceAddress","sellAmount","slippage"],"additionalProperties":false},"providerDepositChannelId":{"type":"string","description":"Deposit channel ID"},"depositChannelExpiration":{"description":"Deposit channel expiry, unix seconds. NEAR/GARDEN: the provider's own real deadline. CHAINFLIP/FLASHNET: channel creation time + 24h (Chainflip's documented fixed channel lifetime; Flashnet's own `expiresAt` is a ~2-minute price-validity window, not a channel lifetime — use `expiration` for that).","type":"number"},"depositChannelExpirationBlock":{"description":"CHAINFLIP only: the raw source-chain block at which the deposit channel expires (sourceChainExpiryBlock). Not used to compute depositChannelExpiration.","type":"number"},"isFastQuote":{"type":"boolean"},"isRefreshed":{"type":"boolean","description":"Indicates if the quote was refreshed"},"isWrapped":{"type":"boolean","description":"Indicates if the tx is wrapped"},"isSweep":{"type":"boolean","description":"True when the request was treated as a max-spend sweep (sellAmount adjusted for gas/fees)."},"signedTx":{"type":"string"},"signature":{"type":"string"},"signedTxString":{"type":"string","description":"Exact byte string that was SHA-256 hashed and ES256-signed (RFC 8785 canonical JSON for object txs, or the raw serialized tx for string txs). Verify `signature` over these literal bytes — no re-serialization needed."},"slip24":{"type":"object","properties":{"recipientName":{"type":"string"},"nonce":{"anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"coinType":{"type":"number"},"memos":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["refund"]},"refund":{"type":"object","properties":{"address":{"type":"string","minLength":1,"description":"Refund destination the provider was configured with for this payment request"}},"required":["address"],"additionalProperties":false}},"required":["type","refund"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["coinPurchase"]},"coinPurchase":{"type":"object","properties":{"coinType":{"type":"number"},"amount":{"type":"string"},"address":{"type":"string"}},"required":["coinType","amount","address"],"additionalProperties":false}},"required":["type","coinPurchase"],"additionalProperties":false}]}},"outputs":{"type":"array","items":{"type":"object","properties":{"amount":{"anyOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^\\d+$"}],"description":"Output amount in base units (satoshis, wei, …). A JSON number (exact only up to 2^53) for SLIP24_HEX and SLIP24_BASE64 keys; a decimal integer string, exact for u64/u256 amounts, for key types that use it"},"address":{"type":"string"}},"required":["amount","address"],"additionalProperties":false}},"signature":{"type":"string"}},"required":["recipientName","nonce","coinType","memos","outputs","signature"],"additionalProperties":false}},"required":["tags"],"additionalProperties":false}},"required":["sellAsset","sellAmount","buyAsset","fees","routeId","providers","totalSlippageBps","legs","warnings","sourceAddress","destinationAddress","meta"],"additionalProperties":false}},"error":{"type":"string","description":"Error message"},"providerErrors":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"string","enum":["noRpcFallbacks","requestTimeout","invalidApiVersion","isSanctionedAddress","unknownError","collectorEgressForbidden","collectorUpstreamHttpError","collectorUpstreamTransient","collectorRetriesExhausted","collectorUnreachable","mergeScriptResultMissing","mergeTargetFailed","internalServerError","upstreamDependencyFailed","chainflipSwapNotFound","test_error","blockHeaderNotFound","blockHashNotFoundAtHeight","blackListAsset","txHashMissing","invalidAsset","assetDecimalsUnknown","currentBlockHeaderNotFound","failedToRetrieveBalance","failedToRetrieveBlock","failedToRetrieveFees","notImplementedBCH","notImplementedDoge","noPoolsFound","noVaultsFound","noTxFound","multipleCosmosMessages","heightOrHashNotProvided","priceTooVolatile","unknownDenom","invalidBlockHeight","timestampExtrinsicNoArgumentsForBlock","timestampExtrinsicNoTimestampForBlock","noTimestampExtrinsicForHash","timestampExtrinsicNoArgumentsForHash","txMemoUndefined","txMemoIncorrect","txTypeNotFound","txNoMessage","txNotFound","txReceiptNotFound","txParsingError","txLogsParsingError","txFailed","jobDataParsingError","dataformRunFailed","dataformAssertionFailed","blockNotFound","balanceNotFound","blockbookCallFailed","previousTxEntryInvalid","configError","unsafeTestDatabase","synthSwapDisallowed","noQuoteResponse","invalidProviderResponse","noPoolAssetsFound","noThorchainPools","noMayachainPools","noThorchainNetworkInfo","invalidAffiliateFee","invalidBuyAssetAddress","invalidSellAssetAddress","invalidSourceAddress","invalidSourceAddressList","invalidRefundAddress","invalidDestinationAddress","invalidParam","xrpAddressRequiresTag","invalidChainId","invalidChain","unsupportedChainId","unsupportedEVMChainId","unsupportedMethod","unsupportedProvider","refundAddressUnsupportedByRoute","refundAddressTooLongForSellChain","unsupportedProgram","unsupportedEvent","invalidParamsForMethod","noWhitelistTokens","failedFetchGasPrice","chainflipBrokerApiUnavailable","failedToBuildVaultSwapTransaction","failedToOpenBtcPrivateChannel","failedToCloseBtcPrivateChannel","affiliateNotRegistered","failedToCreateDepositChannel","failedToRegisterAccount","failedToRegisterAffiliate","failedToWithdrawAffiliate","failedToDeregisterAffiliate","affiliateHasUnclaimedBalance","affiliateRecentlyActive","chainflipRecoveryAccountNotConfigured","chainflipRecoveryAccountInvalid","chainflipRecoveryAccountConfirmationMismatch","chainflipRecoveryAccountAlreadyLinked","chainflipRecoveryAccountNotLiquidityProvider","failedToLinkRecoveryAccount","noProviderDetailsFound","noTokenListsFound","tokenNotFound","tokenPriceNotFound","tokenPriceUnavailable","tokenPriceFailedToUpdate","legsArrayIsEmpty","failedToFetchQuoteForLeg","noBlockHeaderFound","failedToSimulateSwap","swapHalted","memoTooLongForSourceChain","addressScreeningFailed","missingScreeningConfig","insufficientLiquidity","noSaversFound","noInbounDataFound","noInboundAddressesFound","noTargetAddress","noInboundAddressFoundForChain","noLastBlocksFound","noVersionFound","noConstantsFound","noMimirsFound","noRoutesFound","geoRestrictedToken","quoteNotFound","providerResponseFormError","ledgerWrongPayload","failedToFetchTx","failedBuildTransactionDetails","failedToCreateRouteMetadata","txBuildingTimeout","noLegsForRoute","insufficientBalance","utxoSelectionRefused","utxoFeeHeadroomInsufficient","utxoBalanceBelowAmount","insufficientAllowance","insufficientGas","unableToBuildTransaction","unableToDecodeTransaction","noRouterAddressFound","noAggregatorAddressFound","noContractInstanceFound","noContractAddressFound","invalidAffiliate","invalidAffiliateName","thornameNotFound","thornameAffiliate","No provider found","providerStatusesUnavailable","providerAssetNotFound","No Record found","Slippage too low","tradingHalted","mayanameNotFound","noWrappedGasAsset","aggregatorAddressNotFound","routerAddressNotFound","dummyAddressNotFound","trackerError","providerUnavailable","thorchainPoolUnavailable","noTradingPairs","missingState","ledgerSwapNotFound","ledgerSwapNotReadyForTracking","ledgerInvalidParsingMode","ledgerWebhookNotifyFailed","errorEstimatingGas","apiKeyInvalid","apiKeyFailedToUpdate","apiKeyUpdateConflict","apiKeySignatureExists","apiKeySignatureKeyTypeMismatch","apiKeyExpired","unauthorized","failedToCreateMemo","invalidAddressForChain","invalidAddress","riskyAddress","noRoutesToProcess","sellAssetAmountTooSmall","sellAssetAmountTooLarge","estimatedTimeTooLong","missingPrivateKey","noMemoPriceProtection","nodeMethodNotFound","nodeRpcNotFound","thirdPartyProviderNotFound","quoteUnavailable","targetInstructionNotFound","referrerExist","referrerNotFound","invalidReferrer","quoteLogicError","missingDecimal","noGasInfoInDB","quoteError","valueOverflow","missingChainflipMeta","contractAndMethodRequired","tokenImageError","fileNotFound","fileFormatError","ipError","failedToSaveLedgerSwap","missingValue","missingDBQueryParam","unableEstimateTxTime","affiliateStatsMissingDate","affiliateStatsMissingNextFilter","affiliateStatsNoActions","unsupportedNotificationEvent","unsupportedNotificationChannel","invalidWebhookUrl","webhookDeliveryFailed","serverStateNotFound","apiRequestFailed","apiRateLimit","invalidActionStep","providerIsRequired","rateLimitExceeded","depositChannelNotFound","auditLogInsertFailed","affiliateNameHistoryInsertFailed","invalidRouteId","invalidQuoteId","invalidRoute","destinationTrustlineRequired","stellarHorizonUnavailable","quoteExpired","swapQuoteNotFound","swapRouteNotFound","swapTransactionFailed","swapChainflipMetaMissing","swapChainflipChannelFailed","swapTransferTxFailed","chainflipVaultSwapNotSupported","chainflipVaultSwapEncodingFailed","chainflipVaultSwapInvalidChain","chainflipVaultSwapBitcoinCCMNotSupported","chainflipVaultSwapTransactionBuildFailed","zcashInvalidAddress","zcashInsufficientUTXOs","zcashUTXOSelectionFailed","zcashTransactionBuildFailed","zcashShieldedRefundMissing","zcashMemoTooLong","litecoinMwebAddressUnsupported","zcashUnifiedAddressUnsupported","zcashShieldedMemoUnavailable","zcashTransactionFormatRetired","zcashNetworkUpgradeImminent","invalidTokenProgram","solanaOutputBelowRentExemptMinimum","solanaTokenProgramUnavailable","invalidRequest","pubsubEventNotRegistered","pubsubTopicNotFound","pubsubEnvelopeParsingError","invalidSpender","outputAmountDeviationTooHigh","inputAmountDeviationTooHigh","outputBelowPublishedFloor","swapSizeExceeded","v2EndpointNotAllowed","externalServiceFailed","tenantEncryptKeyNotFound","tenantKeyPairEncryptionError","slip24AmountOverflow","slip24InvalidSignature","slip24DigestComputationFailed","slip24RefundUnverifiable","invalidTxHashFormat","affiliateNotFound","affiliateQuickSetupRunNotFound","affiliateQuickSetupRunInProgress","affiliateQuickSetupRunInsertFailed","nearAffiliateProviderAssetNotFound","nearAffiliateDepositAddressFailed","nearAffiliateDepositAddressUnknown","nearAffiliateNameMismatch","nearAffiliateDepositAddressClaimed","nearAffiliateSaveFailed","nearAffiliateNotRegistered","flashnetAffiliateRegistrationFailed","flashnetAffiliateClaimFailed","flashnetAffiliateNotFound","pactswapAffiliateRegistrationFailed","pactswapAffiliateNotFound","limitOrderUnsupportedChain","limitOrderQuoteNotFound","limitOrderRouteNotFound","limitOrderNotFound","limitOrderInvalidState","limitOrderInvalidCursor","limitOrderBuildFailed","limitOrderSubmissionFailed","limitOrderCancelFailed","limitOrderCancelSignatureInvalid","limitOrderExpirationOutOfBounds","limitOrderUnsupportedFillFlags","limitOrderAmountAmbiguous","limitOrderChainMismatch","limitOrderUnsupportedPair","limitOrderProviderUnsupported","limitOrderActionUnavailable","limitOrderProviderError","limitOrderMakerBlacklisted","limitOrderInsufficientAllowance","limitOrderMaxOrdersExceeded","limitOrderRejected","tokenAdmissionEvaluationFailed","tokenAdmissionAnalysisSaveFailed","tokenAdmissionVerdictWriteFailed","tokenAdmissionRecordFailed","tokenAdmissionSpendUnreadable","rawImportFetchFailed","rawImportOpenSetFailed","rawImportLookupFailed","rawImportLookupAmbiguous","rawImportMapFailed","rawImportPublishFailed","rawImportChangeStoreFailed","rawImportProviderUnsupported","rawImportProgressFailed","rawImportInvalidCursor","rawImportThrottled","feeFixtureRunFailed","candidateTokenNotFound","candidateTokenIdentifierUnavailable","candidateTokenInvalidTransition","candidateTokenExtensionUnavailable","swapkitTokenNotFound","swapkitTokenAlreadyExists","swapkitTokenDecimalsMismatch","swapkitTokenImplausibleDecimals","swapkitTokenDenylisted","swapkitTokenFieldNotEdited","swapkitTokenDiscoveryFailed","swapkitTokenDataDiscarded","swapkitTokenAdmissionDecimalsMismatch"]},"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"message":{"type":"string"},"minAmount":{"description":"Provider minimum sell amount (human units), when the provider reported one","type":"string"},"data":{"type":"object","additionalProperties":{"type":"string"}}},"required":["errorCode"],"additionalProperties":false}}},"required":["quoteId","routes"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"451":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/v3/quote":{"post":{"operationId":"getQuote","tags":["Quote"],"description":"Geo-restricted tokens return 451: the asset is not available in the caller's jurisdiction. Send the end user's IP in `X-Forwarded-For` (or `X-User-Ip`) so the region is resolved for them rather than for the calling server.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"sellAsset":{"type":"string","description":"Asset to sell"},"buyAsset":{"type":"string","description":"Asset to buy"},"sellAmount":{"type":"string","description":"Amount of asset to sell. Required unless quoteType is EXACT_OUTPUT, which must omit it."},"providers":{"type":"array","items":{"type":"string","description":"List of providers to use"}},"sourceAddress":{"type":"string","description":"Address to send asset from. On a UTXO sell chain this may name several addresses to draw inputs from, separated by `;` — the first is used wherever a single address is required (refund address, memos, deposit channels). At most 20 addresses when every one is native SegWit (`bc1…`/`ltc1…`) on Bitcoin or Litecoin, and at most 6 addresses otherwise; repeats are ignored, empty entries are rejected."},"destinationAddress":{"type":"string","description":"Address to send asset to"},"slippage":{"type":"number","minimum":0,"maximum":100,"description":"Slippage tolerance as a percentage. Default is 1%."},"cfBoost":{"type":"boolean","description":"Set to true to enable CF boost to speed up Chainflip swaps. BTC only."},"usePrivacyMode":{"type":"boolean","description":"Set to true to request a privacy-preserving swap, where the trade details are not exposed publicly while the swap executes. Acts as a filter, not a hint: only routes on which EVERY provider supports a privacy mode are returned, since a single public leg would expose the trade. Today NEAR (Confidential Intents) is the only such provider, so routes touching any other provider are dropped and a pair with no privacy-capable route returns no routes at all."},"referrer":{"type":"string"},"quoteType":{"default":"EXACT_INPUT","type":"string","enum":["EXACT_INPUT","FLEX_INPUT","EXACT_OUTPUT"],"description":"EXACT_INPUT (default), FLEX_INPUT or EXACT_OUTPUT. EXACT_OUTPUT requires buyAmount (and must omit sellAmount) and is supported by FLASHNET and NEAR; routes on any other provider are filtered out. FLASHNET additionally serves EXACT_OUTPUT only when the buy asset is USDC or USDT. On FLEX_INPUT, routes whose first-leg provider can't honour the mode are filtered out."},"disableEstimate":{"default":true,"type":"boolean","description":"Set to true to disable on-chain estimation"},"enableSweep":{"type":"boolean","description":"Set to true to enable sweeping wallet funds when the transaction would otherwise leave unspendable dust in the address (opt-in)."},"gasCheck":{"type":"boolean","description":"Set to true to check the wallet's native gas balance and warn when it can't cover the network fee (opt-in). Acted on at /swap, which inherits this value unless it sets its own."},"maxExecutionTime":{"type":"number","minimum":1,"description":"Maximum execution time in seconds. Routes exceeding this time will be filtered out."},"affiliateFee":{"type":"number","maximum":1000,"description":"Affiliate fee in basis points. This should only be used as an override, for example when you have some rebate or discount program. If not provided, the fees configured in your API Key will be used."},"refundAddress":{"type":"string","description":"Address to refund to if the swap fails, on the SELL chain. Defaults to sourceAddress — set it when the sender cannot receive funds, e.g. a send-only contract wallet. Forwarded to CHAINFLIP, CHAINFLIP_STREAMING, MAYACHAIN, MAYACHAIN_STREAMING, THORCHAIN, THORCHAIN_STREAMING, NEAR, HARBOR, FLASHNET, RELAY; routes through providers that always refund the on-chain sender are dropped from the response when this differs from sourceAddress."},"refundAddressSetting":{"default":"WARNING","type":"string","enum":["STRICT","WARNING"],"description":"How to react when a route cannot honour refundAddress: WARNING (default) keeps the route and reports refundAddressNotApplied in its warnings[], STRICT drops it instead. Ignored when refundAddress is absent."},"buyAmount":{"type":"string","description":"Amount of asset to buy. Required when quoteType is EXACT_OUTPUT, and rejected otherwise."},"txHints":{"minItems":1,"type":"array","items":{"type":"string","enum":["simpleTransfer","transferWithMemo","contractCall"]},"description":"Only return routes with one of these txHints. Returns 404 noRoutesFound if none match.","x-docs-description":"Only return routes your wallet can sign.\n\n- `simpleTransfer` — transfer to a deposit address\n- `transferWithMemo` — transfer with a memo or OP_RETURN\n- `contractCall` — calldata to a contract\n\nAn alternative to filtering by `providers` — a provider can emit different shapes per chain. No match returns `404 noRoutesFound`."}},"required":["sellAsset","buyAsset"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string","description":"Quote ID"},"createdAt":{"type":"string","description":"Quote creation timestamp (ISO 8601)"},"routes":{"type":"array","items":{"type":"object","properties":{"sellAsset":{"type":"string","description":"Asset to sell"},"sellAmount":{"type":"string","description":"Sell amount"},"buyAsset":{"type":"string","description":"Asset to buy"},"buyAmount":{"type":"string","description":"Buy amount"},"buyAmountMaxSlippage":{"type":"string","description":"Buy amount max slippage"},"expectedBuyAmount":{"type":"string","description":"Expected Buy amount"},"expectedBuyAmountMaxSlippage":{"type":"string","description":"Expected Buy amount max slippage"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"previousLegProvider":{"description":"The provider of the previous leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"nextLegProvider":{"description":"The provider of the next leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"routeId":{"type":"string","description":"Route ID"},"providers":{"type":"array","items":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"expiration":{"type":"string","description":"Expiration"},"estimatedTime":{"type":"object","properties":{"inbound":{"type":"number","description":"Time to receive inbound asset in seconds"},"swap":{"type":"number","description":"Time to swap assets in seconds"},"outbound":{"type":"number","description":"Time to receive outbound asset in seconds"},"total":{"type":"number","description":"Total time in seconds"}},"required":["total"],"additionalProperties":false},"totalSlippageBps":{"type":"number","description":"Total slippage in bps"},"legs":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"sellAsset":{"type":"string","description":"Asset to sell"},"sellAmount":{"type":"string","description":"Sell amount"},"buyAsset":{"type":"string","description":"Asset to buy"},"buyAmount":{"type":"string","description":"Buy amount"},"buyAmountMaxSlippage":{"type":"string","description":"Buy amount max slippage"},"expectedBuyAmount":{"type":"string","description":"Expected Buy amount"},"expectedBuyAmountMaxSlippage":{"type":"string","description":"Expected Buy amount max slippage"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"previousLegProvider":{"description":"The provider of the previous leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"nextLegProvider":{"description":"The provider of the next leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["provider","sellAsset","sellAmount","buyAsset","fees"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["highSlippage","highPriceImpact","noSourceAddressToBuildTransaction","affiliateFeeTooSmallSoRemoved","unableToApplyReferralProgram","insufficientBalance","insufficientGas","unableToBuildTransaction","unableToEstimateGas","limitPriceBelowSpot","limitPriceWithinFeeGap","limitOrderNotionalTooSmall","outputBelowPublishedFloor","litecoinMwebNotSupported","refundAddressNotApplied","vaultSwapUnavailable"]},"display":{"type":"string"},"tooltip":{"type":"string"},"data":{"description":"Structured form of the figures embedded in `display`. Present only on `insufficientGas`; absent on every other warning code.","type":"object","properties":{"chain":{"type":"string","description":"Chain whose native gas asset is short, e.g. \"TRON\"."},"asset":{"type":"string","description":"Identifier of the gas asset, e.g. \"TRON.TRX\"."},"ticker":{"type":"string","description":"Ticker of the gas asset, e.g. \"TRX\"."},"estimatedFee":{"type":"string","description":"Estimated network fee, as a decimal string in the gas asset's own units. An estimate, not a quoted fee: on TRON it is what a node says this specific wallet would pay, and it drifts as staked energy/bandwidth regenerates. Good for display and for comparing against the balance; not a 'top up exactly this much' figure."},"balance":{"type":"string","description":"The source address' gas-asset balance as read while building this swap, as a decimal string in the gas asset's own units. Read at /swap time, not at quote time."}},"required":["chain","asset","ticker","estimatedFee","balance"],"additionalProperties":false}},"required":["code","display"],"additionalProperties":false}},"txHint":{"type":"string","enum":["simpleTransfer","transferWithMemo","contractCall"]},"meta":{"type":"object","properties":{"assets":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string","description":"Asset name"},"price":{"type":"number","description":"Price in USD"},"image":{"type":"string","description":"Asset image"}},"required":["asset","price","image"],"additionalProperties":false}},"tags":{"type":"array","items":{"type":"string","enum":["CHEAPEST","FASTEST","RECOMMENDED"]}},"streamingInterval":{"type":"number"},"maxStreamingQuantity":{"type":"number"},"referrer":{"type":"string"},"quoteType":{"type":"string","enum":["EXACT_INPUT","FLEX_INPUT","EXACT_OUTPUT"],"description":"The quoteType this route was built for (EXACT_INPUT, FLEX_INPUT or EXACT_OUTPUT). Echoes the request's quoteType so /swap can carry the mode forward."},"approvalAddress":{"type":"string","description":"Approval address for token swap"}},"required":["tags"],"additionalProperties":false},"nextActions":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"url":{"type":"string"},"payload":{}},"required":["method","url"],"additionalProperties":false}}},"required":["sellAsset","sellAmount","buyAsset","fees","routeId","providers","totalSlippageBps","legs","warnings","meta"],"additionalProperties":false}},"error":{"type":"string","description":"Error message"},"providerErrors":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"errorCode":{"type":"string","enum":["noRpcFallbacks","requestTimeout","invalidApiVersion","isSanctionedAddress","unknownError","collectorEgressForbidden","collectorUpstreamHttpError","collectorUpstreamTransient","collectorRetriesExhausted","collectorUnreachable","mergeScriptResultMissing","mergeTargetFailed","internalServerError","upstreamDependencyFailed","chainflipSwapNotFound","test_error","blockHeaderNotFound","blockHashNotFoundAtHeight","blackListAsset","txHashMissing","invalidAsset","assetDecimalsUnknown","currentBlockHeaderNotFound","failedToRetrieveBalance","failedToRetrieveBlock","failedToRetrieveFees","notImplementedBCH","notImplementedDoge","noPoolsFound","noVaultsFound","noTxFound","multipleCosmosMessages","heightOrHashNotProvided","priceTooVolatile","unknownDenom","invalidBlockHeight","timestampExtrinsicNoArgumentsForBlock","timestampExtrinsicNoTimestampForBlock","noTimestampExtrinsicForHash","timestampExtrinsicNoArgumentsForHash","txMemoUndefined","txMemoIncorrect","txTypeNotFound","txNoMessage","txNotFound","txReceiptNotFound","txParsingError","txLogsParsingError","txFailed","jobDataParsingError","dataformRunFailed","dataformAssertionFailed","blockNotFound","balanceNotFound","blockbookCallFailed","previousTxEntryInvalid","configError","unsafeTestDatabase","synthSwapDisallowed","noQuoteResponse","invalidProviderResponse","noPoolAssetsFound","noThorchainPools","noMayachainPools","noThorchainNetworkInfo","invalidAffiliateFee","invalidBuyAssetAddress","invalidSellAssetAddress","invalidSourceAddress","invalidSourceAddressList","invalidRefundAddress","invalidDestinationAddress","invalidParam","xrpAddressRequiresTag","invalidChainId","invalidChain","unsupportedChainId","unsupportedEVMChainId","unsupportedMethod","unsupportedProvider","refundAddressUnsupportedByRoute","refundAddressTooLongForSellChain","unsupportedProgram","unsupportedEvent","invalidParamsForMethod","noWhitelistTokens","failedFetchGasPrice","chainflipBrokerApiUnavailable","failedToBuildVaultSwapTransaction","failedToOpenBtcPrivateChannel","failedToCloseBtcPrivateChannel","affiliateNotRegistered","failedToCreateDepositChannel","failedToRegisterAccount","failedToRegisterAffiliate","failedToWithdrawAffiliate","failedToDeregisterAffiliate","affiliateHasUnclaimedBalance","affiliateRecentlyActive","chainflipRecoveryAccountNotConfigured","chainflipRecoveryAccountInvalid","chainflipRecoveryAccountConfirmationMismatch","chainflipRecoveryAccountAlreadyLinked","chainflipRecoveryAccountNotLiquidityProvider","failedToLinkRecoveryAccount","noProviderDetailsFound","noTokenListsFound","tokenNotFound","tokenPriceNotFound","tokenPriceUnavailable","tokenPriceFailedToUpdate","legsArrayIsEmpty","failedToFetchQuoteForLeg","noBlockHeaderFound","failedToSimulateSwap","swapHalted","memoTooLongForSourceChain","addressScreeningFailed","missingScreeningConfig","insufficientLiquidity","noSaversFound","noInbounDataFound","noInboundAddressesFound","noTargetAddress","noInboundAddressFoundForChain","noLastBlocksFound","noVersionFound","noConstantsFound","noMimirsFound","noRoutesFound","geoRestrictedToken","quoteNotFound","providerResponseFormError","ledgerWrongPayload","failedToFetchTx","failedBuildTransactionDetails","failedToCreateRouteMetadata","txBuildingTimeout","noLegsForRoute","insufficientBalance","utxoSelectionRefused","utxoFeeHeadroomInsufficient","utxoBalanceBelowAmount","insufficientAllowance","insufficientGas","unableToBuildTransaction","unableToDecodeTransaction","noRouterAddressFound","noAggregatorAddressFound","noContractInstanceFound","noContractAddressFound","invalidAffiliate","invalidAffiliateName","thornameNotFound","thornameAffiliate","No provider found","providerStatusesUnavailable","providerAssetNotFound","No Record found","Slippage too low","tradingHalted","mayanameNotFound","noWrappedGasAsset","aggregatorAddressNotFound","routerAddressNotFound","dummyAddressNotFound","trackerError","providerUnavailable","thorchainPoolUnavailable","noTradingPairs","missingState","ledgerSwapNotFound","ledgerSwapNotReadyForTracking","ledgerInvalidParsingMode","ledgerWebhookNotifyFailed","errorEstimatingGas","apiKeyInvalid","apiKeyFailedToUpdate","apiKeyUpdateConflict","apiKeySignatureExists","apiKeySignatureKeyTypeMismatch","apiKeyExpired","unauthorized","failedToCreateMemo","invalidAddressForChain","invalidAddress","riskyAddress","noRoutesToProcess","sellAssetAmountTooSmall","sellAssetAmountTooLarge","estimatedTimeTooLong","missingPrivateKey","noMemoPriceProtection","nodeMethodNotFound","nodeRpcNotFound","thirdPartyProviderNotFound","quoteUnavailable","targetInstructionNotFound","referrerExist","referrerNotFound","invalidReferrer","quoteLogicError","missingDecimal","noGasInfoInDB","quoteError","valueOverflow","missingChainflipMeta","contractAndMethodRequired","tokenImageError","fileNotFound","fileFormatError","ipError","failedToSaveLedgerSwap","missingValue","missingDBQueryParam","unableEstimateTxTime","affiliateStatsMissingDate","affiliateStatsMissingNextFilter","affiliateStatsNoActions","unsupportedNotificationEvent","unsupportedNotificationChannel","invalidWebhookUrl","webhookDeliveryFailed","serverStateNotFound","apiRequestFailed","apiRateLimit","invalidActionStep","providerIsRequired","rateLimitExceeded","depositChannelNotFound","auditLogInsertFailed","affiliateNameHistoryInsertFailed","invalidRouteId","invalidQuoteId","invalidRoute","destinationTrustlineRequired","stellarHorizonUnavailable","quoteExpired","swapQuoteNotFound","swapRouteNotFound","swapTransactionFailed","swapChainflipMetaMissing","swapChainflipChannelFailed","swapTransferTxFailed","chainflipVaultSwapNotSupported","chainflipVaultSwapEncodingFailed","chainflipVaultSwapInvalidChain","chainflipVaultSwapBitcoinCCMNotSupported","chainflipVaultSwapTransactionBuildFailed","zcashInvalidAddress","zcashInsufficientUTXOs","zcashUTXOSelectionFailed","zcashTransactionBuildFailed","zcashShieldedRefundMissing","zcashMemoTooLong","litecoinMwebAddressUnsupported","zcashUnifiedAddressUnsupported","zcashShieldedMemoUnavailable","zcashTransactionFormatRetired","zcashNetworkUpgradeImminent","invalidTokenProgram","solanaOutputBelowRentExemptMinimum","solanaTokenProgramUnavailable","invalidRequest","pubsubEventNotRegistered","pubsubTopicNotFound","pubsubEnvelopeParsingError","invalidSpender","outputAmountDeviationTooHigh","inputAmountDeviationTooHigh","outputBelowPublishedFloor","swapSizeExceeded","v2EndpointNotAllowed","externalServiceFailed","tenantEncryptKeyNotFound","tenantKeyPairEncryptionError","slip24AmountOverflow","slip24InvalidSignature","slip24DigestComputationFailed","slip24RefundUnverifiable","invalidTxHashFormat","affiliateNotFound","affiliateQuickSetupRunNotFound","affiliateQuickSetupRunInProgress","affiliateQuickSetupRunInsertFailed","nearAffiliateProviderAssetNotFound","nearAffiliateDepositAddressFailed","nearAffiliateDepositAddressUnknown","nearAffiliateNameMismatch","nearAffiliateDepositAddressClaimed","nearAffiliateSaveFailed","nearAffiliateNotRegistered","flashnetAffiliateRegistrationFailed","flashnetAffiliateClaimFailed","flashnetAffiliateNotFound","pactswapAffiliateRegistrationFailed","pactswapAffiliateNotFound","limitOrderUnsupportedChain","limitOrderQuoteNotFound","limitOrderRouteNotFound","limitOrderNotFound","limitOrderInvalidState","limitOrderInvalidCursor","limitOrderBuildFailed","limitOrderSubmissionFailed","limitOrderCancelFailed","limitOrderCancelSignatureInvalid","limitOrderExpirationOutOfBounds","limitOrderUnsupportedFillFlags","limitOrderAmountAmbiguous","limitOrderChainMismatch","limitOrderUnsupportedPair","limitOrderProviderUnsupported","limitOrderActionUnavailable","limitOrderProviderError","limitOrderMakerBlacklisted","limitOrderInsufficientAllowance","limitOrderMaxOrdersExceeded","limitOrderRejected","tokenAdmissionEvaluationFailed","tokenAdmissionAnalysisSaveFailed","tokenAdmissionVerdictWriteFailed","tokenAdmissionRecordFailed","tokenAdmissionSpendUnreadable","rawImportFetchFailed","rawImportOpenSetFailed","rawImportLookupFailed","rawImportLookupAmbiguous","rawImportMapFailed","rawImportPublishFailed","rawImportChangeStoreFailed","rawImportProviderUnsupported","rawImportProgressFailed","rawImportInvalidCursor","rawImportThrottled","feeFixtureRunFailed","candidateTokenNotFound","candidateTokenIdentifierUnavailable","candidateTokenInvalidTransition","candidateTokenExtensionUnavailable","swapkitTokenNotFound","swapkitTokenAlreadyExists","swapkitTokenDecimalsMismatch","swapkitTokenImplausibleDecimals","swapkitTokenDenylisted","swapkitTokenFieldNotEdited","swapkitTokenDiscoveryFailed","swapkitTokenDataDiscarded","swapkitTokenAdmissionDecimalsMismatch"]},"message":{"type":"string"},"minAmount":{"description":"Provider minimum sell amount (human units), when the provider reported one","type":"string"}},"additionalProperties":false}}},"required":["quoteId","createdAt","routes"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"451":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/screen":{"post":{"operationId":"screenAddress","tags":["Screen"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"addresses":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"chains":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["addresses","chains"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"isRisky":{"type":"boolean"},"isSanctioned":{"type":"boolean"},"isBlacklisted":{"type":"boolean"},"confirm":{"type":"boolean"},"module":{"type":"number"}},"required":["confirm"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/v3/swap":{"post":{"operationId":"executeSwap1","tags":["Swap"],"description":"Geo-restricted tokens return 451: the asset is not available in the caller's jurisdiction. The cached quote's assets are re-checked here, so a route id priced in a permitted region cannot be executed from a blocked one. Send the end user's IP in `X-Forwarded-For` (or `X-User-Ip`).","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"routeId":{"type":"string","description":"The ID of the route to swap"},"quoteType":{"type":"string","enum":["EXACT_INPUT","FLEX_INPUT","EXACT_OUTPUT"],"description":"Override the EXACT_INPUT/FLEX_INPUT/EXACT_OUTPUT mode for this swap. Defaults to the quoteType from the original /v3/quote request when omitted."},"sourceAddress":{"type":"string","description":"Address to send asset from. On a UTXO sell chain this may name several addresses to draw inputs from, separated by `;` — the first is used wherever a single address is required (refund address, memos, deposit channels). At most 20 addresses when every one is native SegWit (`bc1…`/`ltc1…`) on Bitcoin or Litecoin, and at most 6 addresses otherwise; repeats are ignored, empty entries are rejected."},"destinationAddress":{"type":"string","description":"Recipient address to send asset to"},"refundAddress":{"type":"string","description":"Address to refund to if the swap fails, on the SELL chain. Overrides the /v3/quote value; falls back to it, then to sourceAddress. See /v3/quote for per-provider behaviour."},"refundAddressSetting":{"type":"string","enum":["STRICT","WARNING"],"description":"How to react when the route cannot honour refundAddress: WARNING (default) proceeds and reports refundAddressNotApplied in the route's warnings[], STRICT rejects with refundAddressUnsupportedByRoute (the provider always refunds the sender) or refundAddressTooLongForSellChain (the provider carries it in a memo this sell chain has no room for). Inherited from the /v3/quote request when omitted."},"disableBalanceCheck":{"type":"boolean","description":"Whether to disable balance check"},"disableEstimate":{"type":"boolean","description":"Whether to disable estimate gas"},"allowSmartContractSender":{"type":"boolean","description":"Whether to allow smart contract sender"},"allowSmartContractReceiver":{"type":"boolean","description":"Whether to allow smart contract receiver"},"disableSecurityChecks":{"type":"boolean","description":"Whether to disable security checks"},"overrideSlippage":{"type":"boolean","description":"DEPRECATED — use slippageSetting instead. Equivalent to slippageSetting: 'OVERRIDE'. Ignored when slippageSetting is set."},"slippageSetting":{"type":"string","enum":["OVERRIDE","WARNING","STRICT"],"description":"How to react when the refreshed quote falls below the route's published expectedBuyAmountMaxSlippage. 'WARNING' (default) proceeds and reports it in warnings[], 'STRICT' rejects the swap, 'OVERRIDE' skips output validation entirely. The separate 5%+$10 deviation guard still applies under WARNING and STRICT. Takes precedence over the deprecated overrideSlippage."},"disableBuildTx":{"type":"boolean","description":"Set to true to skip building a transaction. Used when you build a custom transaction from our response."},"enableSweep":{"type":"boolean","description":"Set to true to enable max-spend sweep behaviour for UTXO/gas assets (opt-in)."},"gasCheck":{"type":"boolean","description":"Set to true to check the wallet's native gas balance and warn when it can't cover the network fee (opt-in). Costs a balance lookup, and on TRON an extra estimate for low-balance wallets. Inherited from the /v3/quote request when omitted."},"includeNonWitnessUtxo":{"type":"boolean","description":"Deprecated — send previousTxData: \"ALL\" instead, which is the same request and is what this is read as. Still honoured, and unchanged: UTXO chains only, embeds the full previous transaction (nonWitnessUtxo) for each input in the returned PSBT, as legacy signers such as the Ledger Litecoin app require. Rejected alongside a previousTxData asking for anything other than \"ALL\"."},"previousTxData":{"type":"string","enum":["AUTO","ALL","NONE"],"description":"UTXO chains only; ignored on every other sell chain. How much previous-transaction data to attach to the returned PSBT's inputs. \"AUTO\" (the default) fetches one only for the inputs that cannot be signed without it. \"ALL\" fetches one for every input however modern its address — what the deprecated includeNonWitnessUtxo asks for, and what legacy signers such as the Ledger Litecoin app need; it costs a lookup per coin, which is why it holds the sourceAddress ceiling at 6. \"NONE\" fetches none: send it when you hold the previous transactions yourself and need only the unsigned transaction. At \"NONE\" the inputs whose script cannot be derived from their address (legacy, P2SH, and every input on Bitcoin Cash, Dash and Dogecoin) carry neither witnessUtxo nor nonWitnessUtxo and cannot be signed from the PSBT alone — supply them yourself before signing. The unsigned transaction is byte-identical at all three values: we still list the address's unspent outputs, so the inputs, outputs, memo, change and fee never move. \"NONE\" is rejected with enableSweep and on Zcash."},"includeAttestation":{"type":"boolean","description":"Set to true to return the provider's signed attestation of the deposit address as meta.nearSignedQuote (opt-in; NEAR-routed swaps only). See that field for how to verify it. Omitted from the response unless set."}},"required":["routeId","sourceAddress","destinationAddress"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sellAsset":{"type":"string","description":"Asset to sell"},"sellAmount":{"type":"string","description":"Sell amount"},"buyAsset":{"type":"string","description":"Asset to buy"},"buyAmount":{"type":"string","description":"Buy amount"},"buyAmountMaxSlippage":{"type":"string","description":"Buy amount max slippage"},"expectedBuyAmount":{"type":"string","description":"Expected Buy amount"},"expectedBuyAmountMaxSlippage":{"type":"string","description":"Expected Buy amount max slippage"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"previousLegProvider":{"description":"The provider of the previous leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"nextLegProvider":{"description":"The provider of the next leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"routeId":{"type":"string","description":"Route ID"},"providers":{"type":"array","items":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"expiration":{"type":"string","description":"Expiration"},"estimatedTime":{"type":"object","properties":{"inbound":{"type":"number","description":"Time to receive inbound asset in seconds"},"swap":{"type":"number","description":"Time to swap assets in seconds"},"outbound":{"type":"number","description":"Time to receive outbound asset in seconds"},"total":{"type":"number","description":"Total time in seconds"}},"required":["total"],"additionalProperties":false},"totalSlippageBps":{"type":"number","description":"Total slippage in bps"},"legs":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"sellAsset":{"type":"string","description":"Asset to sell"},"sellAmount":{"type":"string","description":"Sell amount"},"buyAsset":{"type":"string","description":"Asset to buy"},"buyAmount":{"type":"string","description":"Buy amount"},"buyAmountMaxSlippage":{"type":"string","description":"Buy amount max slippage"},"expectedBuyAmount":{"type":"string","description":"Expected Buy amount"},"expectedBuyAmountMaxSlippage":{"type":"string","description":"Expected Buy amount max slippage"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"previousLegProvider":{"description":"The provider of the previous leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"nextLegProvider":{"description":"The provider of the next leg in the route, if any","type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["provider","sellAsset","sellAmount","buyAsset","fees"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["highSlippage","highPriceImpact","noSourceAddressToBuildTransaction","affiliateFeeTooSmallSoRemoved","unableToApplyReferralProgram","insufficientBalance","insufficientGas","unableToBuildTransaction","unableToEstimateGas","limitPriceBelowSpot","limitPriceWithinFeeGap","limitOrderNotionalTooSmall","outputBelowPublishedFloor","litecoinMwebNotSupported","refundAddressNotApplied","vaultSwapUnavailable"]},"display":{"type":"string"},"tooltip":{"type":"string"},"data":{"description":"Structured form of the figures embedded in `display`. Present only on `insufficientGas`; absent on every other warning code.","type":"object","properties":{"chain":{"type":"string","description":"Chain whose native gas asset is short, e.g. \"TRON\"."},"asset":{"type":"string","description":"Identifier of the gas asset, e.g. \"TRON.TRX\"."},"ticker":{"type":"string","description":"Ticker of the gas asset, e.g. \"TRX\"."},"estimatedFee":{"type":"string","description":"Estimated network fee, as a decimal string in the gas asset's own units. An estimate, not a quoted fee: on TRON it is what a node says this specific wallet would pay, and it drifts as staked energy/bandwidth regenerates. Good for display and for comparing against the balance; not a 'top up exactly this much' figure."},"balance":{"type":"string","description":"The source address' gas-asset balance as read while building this swap, as a decimal string in the gas asset's own units. Read at /swap time, not at quote time."}},"required":["chain","asset","ticker","estimatedFee","balance"],"additionalProperties":false}},"required":["code","display"],"additionalProperties":false}},"txHint":{"type":"string","enum":["simpleTransfer","transferWithMemo","contractCall"]},"sourceAddress":{"type":"string","description":"Source address"},"destinationAddress":{"type":"string","description":"Destination address"},"targetAddress":{"type":"string","description":"Target address"},"inboundAddress":{"type":"string","description":"Inbound address"},"shieldedMemo":{"description":"Shielded ZEC source only: send a 0-value shielded note carrying the memo to this unified address, in the SAME transaction as the value output to inboundAddress","type":"object","properties":{"unifiedAddress":{"type":"string","description":"Maya's unified address that receives the 0-value shielded memo note"},"uivk":{"description":"Maya's unified incoming viewing key used to decrypt the memo note","type":"string"}},"required":["unifiedAddress"],"additionalProperties":false},"memo":{"type":"string","description":"Memo to include in the transaction"},"txType":{"type":"string","enum":["PSBT","EVM","COSMOS","SERIALIZED_BASE64","RIPPLE","TRON","NEAR","SUI","CBOR","TON","STARKNET","zcash-unsigned","STELLAR","EIP_712_HYPE_WITHDRAW","EIP_712_HYPE_SEND_ASSET"]},"tx":{"anyOf":[{"type":"object","properties":{"to":{"type":"string","description":"Hex-encoded recipient address (native TRX) or TRC-20 token contract address"},"from":{"type":"string","description":"Hex-encoded sender address"},"value":{"type":"string","description":"Transfer amount in base units"},"data":{"type":"string","description":"ABI-encoded TRC-20 transfer parameters, or 0x for native TRX"},"memo":{"type":"string","description":"Transaction memo to attach on-chain: either a plain-text provider memo (e.g. THORChain) or a 0x-prefixed hex byte payload (e.g. Chainflip vault swap parameters), which must be attached as raw bytes"}},"required":["to","value","data","memo"],"additionalProperties":false},{"type":"object","properties":{"to":{"type":"string","description":"Address of the recipient"},"from":{"type":"string","description":"Address of the sender"},"gas":{"type":"string","description":"Gas limit"},"gasPrice":{"type":"string","description":"Gas price (legacy, type-0 transactions only)"},"maxFeePerGas":{"type":"string","description":"Maximum total fee per gas (EIP-1559, type-2 transactions only)"},"maxPriorityFeePerGas":{"type":"string","description":"Maximum priority fee per gas, the validator tip (EIP-1559, type-2 only)"},"type":{"type":"string","description":"EIP-2718 transaction type, hex-quantified — \"0x2\" for EIP-1559"},"value":{"type":"string","description":"Value to send"},"data":{"type":"string","description":"Data to send"}},"required":["to","value","data"],"additionalProperties":false},{"type":"object","properties":{"memo":{"type":"string"},"accountNumber":{"type":"number"},"sequence":{"type":"number"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"msgs":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"value":{}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"typeUrl":{"type":"string"},"value":{}},"required":["typeUrl","value"],"additionalProperties":false}]}},"fee":{"type":"object","properties":{"amount":{"type":"array","items":{"type":"object","properties":{"denom":{"type":"string"},"amount":{"type":"string"}},"required":["denom","amount"],"additionalProperties":false}},"gas":{"type":"string"}},"required":["amount","gas"],"additionalProperties":false}},"required":["memo","accountNumber","sequence","chainId","msgs","fee"],"additionalProperties":false},{"type":"object","properties":{"visible":{"type":"boolean"},"txID":{"type":"string"},"raw_data":{"type":"object","properties":{"contract":{},"ref_block_bytes":{"type":"string"},"ref_block_hash":{"type":"string"},"expiration":{"type":"number"},"fee_limit":{},"timestamp":{"type":"number"},"data":{}},"required":["contract","ref_block_bytes","ref_block_hash","expiration","timestamp"],"additionalProperties":false},"raw_data_hex":{"type":"string"}},"required":["txID","raw_data","raw_data_hex"],"additionalProperties":false},{"type":"array","items":{"type":"object","properties":{"contractAddress":{"type":"string"},"entrypoint":{"type":"string"},"calldata":{"type":"array","items":{"type":"string"}}},"required":["contractAddress","entrypoint","calldata"],"additionalProperties":false}},{"type":"object","properties":{"sendMode":{"type":"number","description":"@ton/ton SendMode bitmask applied to the whole transfer — TON wallets take a single mode per transaction, not per message. 3 (PAY_GAS_SEPARATELY | IGNORE_ERRORS) normally; 130 (CARRY_ALL_REMAINING_BALANCE | IGNORE_ERRORS) on sweeps, so the wallet sends balance − fees instead of the literal amount."},"messages":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","description":"Destination address in friendly format"},"amount":{"type":"string","description":"Amount in nanotons"},"payload":{"description":"Base64 BOC of body cell","type":"string"},"stateInit":{"description":"Base64 BOC of state init","type":"string"}},"required":["address","amount"],"additionalProperties":false}}},"required":["sendMode","messages"],"additionalProperties":false},{"type":"object","properties":{"domain":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"chainId":{"type":"number"},"verifyingContract":{"type":"string"}},"required":["name","version","chainId","verifyingContract"],"additionalProperties":false},"types":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}}},"value":{"type":"object","additionalProperties":{}}},"required":["domain","types","value"],"additionalProperties":false},{"type":"object","properties":{"typedData":{"type":"object","properties":{"domain":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"chainId":{"type":"number"},"verifyingContract":{"type":"string"}},"required":["name","version","chainId","verifyingContract"],"additionalProperties":false},"primaryType":{"type":"string"},"types":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}}},"message":{"type":"object","additionalProperties":{}}},"required":["domain","primaryType","types","message"],"additionalProperties":false},"action":{"type":"object","properties":{"type":{"type":"string","enum":["sendAsset"]},"hyperliquidChain":{"type":"string"},"signatureChainId":{"type":"string"},"destination":{"type":"string"},"sourceDex":{"type":"string"},"destinationDex":{"type":"string"},"token":{"type":"string"},"amount":{"type":"string"},"fromSubAccount":{"type":"string"},"nonce":{"type":"number"}},"required":["type","hyperliquidChain","signatureChainId","destination","sourceDex","destinationDex","token","amount","fromSubAccount","nonce"],"additionalProperties":false},"submitTo":{"type":"string"}},"required":["typedData","action","submitTo"],"additionalProperties":false},{"type":"string"}]},"meta":{"type":"object","properties":{"assets":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string","description":"Asset name"},"price":{"type":"number","description":"Price in USD"},"image":{"type":"string","description":"Asset image"}},"required":["asset","price","image"],"additionalProperties":false}},"tags":{"type":"array","items":{"type":"string","enum":["CHEAPEST","FASTEST","RECOMMENDED"]}},"streamingInterval":{"type":"number"},"maxStreamingQuantity":{"type":"number"},"referrer":{"type":"string"},"quoteType":{"type":"string","enum":["EXACT_INPUT","FLEX_INPUT","EXACT_OUTPUT"],"description":"The quoteType this route was built for (EXACT_INPUT, FLEX_INPUT or EXACT_OUTPUT). Echoes the request's quoteType so /swap can carry the mode forward."},"priceImpact":{"type":"number","description":"Price impact"},"approvalAddress":{"type":"string","description":"Approval address for swap"},"affiliate":{"type":"string"},"affiliateFee":{"type":"string"},"txType":{"type":"string","enum":["PSBT","EVM","COSMOS","SERIALIZED_BASE64","RIPPLE","TRON","NEAR","SUI","CBOR","TON","STARKNET","zcash-unsigned","STELLAR","EIP_712_HYPE_WITHDRAW","EIP_712_HYPE_SEND_ASSET"]},"chainflip":{"type":"object","properties":{"destinationAddress":{"type":"string"},"sellAsset":{"type":"object","properties":{"chain":{"type":"string"},"asset":{"type":"string"}},"required":["chain","asset"],"additionalProperties":false},"buyAsset":{"type":"object","properties":{"chain":{"type":"string"},"asset":{"type":"string"}},"required":["chain","asset"],"additionalProperties":false},"sourceAddress":{"type":"string"},"channelMetadata":{"type":"object","properties":{"ccmAdditionalData":{"type":"string"},"gasBudget":{"type":"string"},"message":{"type":"string"},"cfParameters":{"type":"string"}},"additionalProperties":false},"affiliateFees":{"type":"array","items":{"type":"object","properties":{"brokerAddress":{"type":"string"},"feeBps":{"type":"number"}},"required":["brokerAddress","feeBps"],"additionalProperties":false}},"refundParameters":{"type":"object","properties":{"minPrice":{"type":"string"},"refundAddress":{"type":"string"},"retryDuration":{"type":"number"},"maxOraclePriceSlippage":{"type":"number"},"slippageTolerancePercent":{"type":"number"},"livePriceSlippageTolerancePercent":{"type":"number"}},"additionalProperties":false},"dcaParameters":{"type":"object","properties":{"chunkInterval":{"type":"number"},"numberOfChunks":{"type":"number"}},"additionalProperties":false},"brokerCommissionBps":{"type":"number"},"maxBoostFeeBps":{"type":"number"}},"required":["destinationAddress","sellAsset","buyAsset"],"additionalProperties":false},"garden":{"type":"object","properties":{"destinationAddress":{"type":"string"},"sellAsset":{"type":"string"},"buyAsset":{"type":"string"},"buyAmount":{"type":"string"},"sellAmount":{"type":"string"},"sourceAddress":{"type":"string"},"affiliateFees":{"type":"object","properties":{"address":{"type":"string"},"asset":{"type":"string"},"fee":{"type":"number"}},"required":["address","asset","fee"],"additionalProperties":false},"slippage":{"type":"number"}},"required":["destinationAddress","sellAsset","buyAsset","buyAmount","sellAmount","sourceAddress","slippage"],"additionalProperties":false},"near":{"type":"object","properties":{"destinationAddress":{"type":"string"},"sellAsset":{"type":"string"},"buyAsset":{"type":"string"},"sourceAddress":{"type":"string"},"sellAmount":{"type":"string"},"affiliateFees":{"type":"object","properties":{"nearId":{"type":"string"},"feeBps":{"type":"number"}},"required":["nearId","feeBps"],"additionalProperties":false},"slippage":{"type":"number"}},"required":["destinationAddress","sellAsset","buyAsset","sourceAddress","sellAmount","slippage"],"additionalProperties":false},"providerDepositChannelId":{"type":"string","description":"Deposit channel ID"},"depositChannelExpiration":{"description":"Deposit channel expiry, unix seconds. NEAR/GARDEN: the provider's own real deadline. CHAINFLIP/FLASHNET: channel creation time + 24h (Chainflip's documented fixed channel lifetime; Flashnet's own `expiresAt` is a ~2-minute price-validity window, not a channel lifetime — use `expiration` for that).","type":"number"},"depositChannelExpirationBlock":{"description":"CHAINFLIP only: the raw source-chain block at which the deposit channel expires (sourceChainExpiryBlock). Not used to compute depositChannelExpiration.","type":"number"},"isFastQuote":{"type":"boolean"},"isRefreshed":{"type":"boolean","description":"Indicates if the quote was refreshed"},"isWrapped":{"type":"boolean","description":"Indicates if the tx is wrapped"},"isSweep":{"type":"boolean","description":"True when the request was treated as a max-spend sweep (sellAmount adjusted for gas/fees)."},"signedTx":{"type":"string"},"signature":{"type":"string"},"signedTxString":{"type":"string","description":"Exact byte string that was SHA-256 hashed and ES256-signed (RFC 8785 canonical JSON for object txs, or the raw serialized tx for string txs). Verify `signature` over these literal bytes — no re-serialization needed."},"slip24":{"type":"object","properties":{"recipientName":{"type":"string"},"nonce":{"anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"coinType":{"type":"number"},"memos":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["refund"]},"refund":{"type":"object","properties":{"address":{"type":"string","minLength":1,"description":"Refund destination the provider was configured with for this payment request"}},"required":["address"],"additionalProperties":false}},"required":["type","refund"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["coinPurchase"]},"coinPurchase":{"type":"object","properties":{"coinType":{"type":"number"},"amount":{"type":"string"},"address":{"type":"string"}},"required":["coinType","amount","address"],"additionalProperties":false}},"required":["type","coinPurchase"],"additionalProperties":false}]}},"outputs":{"type":"array","items":{"type":"object","properties":{"amount":{"anyOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^\\d+$"}],"description":"Output amount in base units (satoshis, wei, …). A JSON number (exact only up to 2^53) for SLIP24_HEX and SLIP24_BASE64 keys; a decimal integer string, exact for u64/u256 amounts, for key types that use it"},"address":{"type":"string"}},"required":["amount","address"],"additionalProperties":false}},"signature":{"type":"string"}},"required":["recipientName","nonce","coinType","memos","outputs","signature"],"additionalProperties":false},"allowance":{"type":"string","description":"Current on-chain allowance held by meta.approvalAddress for the sell token, in base units (unlike sellAmount, which is human decimals). Omitted when no ERC-20 approval applies (gas assets, non-EVM). `approvalTx` presence, not this value, signals approval is required."},"nearSignedQuote":{"description":"1Click's signed quote response, verbatim — present only when the request set includeAttestation and the route deposits via NEAR. Pass it to verifyQuoteSignature from @defuse-protocol/one-click-sdk-typescript >= 0.1.25 to prove quote.depositAddress — the address 1Click will watch for your deposit — genuinely came from 1Click. Compare it against where you are about to send funds, NOT blindly against targetAddress: the two are the same on a direct NEAR route, but a route that swaps through a DEX first puts that DEX's router in targetAddress and reaches the attested address on a later leg. The signature covers 1Click's quote, not the transaction we built. Keep a copy: 1Click treats it as the record for resolving disputes.","type":"object","properties":{"correlationId":{"type":"string"},"timestamp":{"type":"string"},"signature":{"type":"string"},"quoteRequest":{"type":"object","properties":{},"additionalProperties":{}},"quote":{"type":"object","properties":{},"additionalProperties":{}}},"required":["correlationId","timestamp","signature","quoteRequest","quote"],"additionalProperties":{}}},"required":["tags"],"additionalProperties":false},"swapId":{"type":"string","description":"The unique swap ID for tracking"},"createdAt":{"type":"string","description":"Swap creation timestamp (ISO 8601)"},"quoteCreatedAt":{"type":"string","description":"Creation timestamp of the underlying quote (ISO 8601)"},"approvalTx":{"description":"Optional approval transaction required before swap execution","anyOf":[{"type":"object","properties":{"to":{"type":"string","description":"Token contract address"},"from":{"type":"string","description":"User wallet address"},"value":{"type":"string","description":"ETH value (always '0' for approvals)"},"data":{"type":"string","description":"Encoded approval call data"},"gasLimit":{"description":"Estimated gas limit","type":"string"},"gasPrice":{"description":"Current gas price","type":"string"}},"required":["to","from","value","data"],"additionalProperties":false},{"type":"object","properties":{"txType":{"type":"string","enum":["STELLAR"]},"tx":{"type":"string","description":"Unsigned changeTrust transaction XDR (base64) — sign and submit, then re-call /swap"}},"required":["txType","tx"],"additionalProperties":false}]},"nextActions":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"url":{"type":"string"},"payload":{}},"required":["method","url"],"additionalProperties":false}}},"required":["sellAsset","sellAmount","buyAsset","fees","routeId","providers","totalSlippageBps","legs","warnings","sourceAddress","destinationAddress","meta","swapId","createdAt","quoteCreatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"451":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/tokens":{"get":{"operationId":"getTokens","tags":["Tokenlist"],"parameters":[{"schema":{"anyOf":[{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},{"type":"string","enum":["all"]}]},"in":"query","name":"provider","required":false,"description":"Provider name, or \"all\" to combine all providers"},{"schema":{"default":"all","type":"string","enum":["all","crypto","rwa","stablecoin"]},"in":"query","name":"category","required":false,"description":"Asset class filter. \"rwa\" returns only tokenized real-world assets, \"crypto\" only everything else, \"all\" (the default) returns both. \"stablecoin\" returns only fiat-pegged tokens; it cuts across the other two rather than nesting inside them, so a tokenized-security stablecoin answers to both \"stablecoin\" and \"rwa\"."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"provider":{"anyOf":[{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},{"type":"string","enum":["SWAPKIT"]}]},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"name":{"type":"string"},"tags":{"type":"object","properties":{},"additionalProperties":{}},"timestamp":{"type":"string"},"version":{"type":"object","properties":{"major":{"type":"number"},"minor":{"type":"number"},"patch":{"type":"number"}},"required":["major","minor","patch"],"additionalProperties":false},"keywords":{"type":"array","items":{"type":"string"}},"count":{"type":"number"},"tokens":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"address":{"type":"string"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"ticker":{"type":"string"},"identifier":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"logoURI":{"type":"string"},"extensions":{"type":"object","properties":{},"additionalProperties":{}},"shortCode":{"type":"string"},"coingeckoId":{"type":"string"},"geoBlockRule":{"type":"string","enum":["tokenized-securities"]},"isStablecoin":{"type":"boolean"}},"required":["chainId","ticker","identifier","decimals"],"additionalProperties":false}},"logoURI":{"type":"string"},"url":{"type":"string"},"enabledChainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}},"supportedActions":{"type":"array","items":{"type":"string","enum":["swap","aggregation","addLiquidity","withdrawLiquidity","addSavers","withdrawSavers","borrow","repay","name","donate","claim","stake","unstake","createOrder","cancelOrder"]}},"supportedChainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}}},"required":["provider","name","timestamp","count","tokens"],"additionalProperties":false},{"type":"array","items":{"type":"object","properties":{"provider":{"anyOf":[{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},{"type":"string","enum":["SWAPKIT"]}]},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"name":{"type":"string"},"tags":{"type":"object","properties":{},"additionalProperties":{}},"timestamp":{"type":"string"},"version":{"type":"object","properties":{"major":{"type":"number"},"minor":{"type":"number"},"patch":{"type":"number"}},"required":["major","minor","patch"],"additionalProperties":false},"keywords":{"type":"array","items":{"type":"string"}},"count":{"type":"number"},"tokens":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"address":{"type":"string"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"ticker":{"type":"string"},"identifier":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"logoURI":{"type":"string"},"extensions":{"type":"object","properties":{},"additionalProperties":{}},"shortCode":{"type":"string"},"coingeckoId":{"type":"string"},"geoBlockRule":{"type":"string","enum":["tokenized-securities"]},"isStablecoin":{"type":"boolean"}},"required":["chainId","ticker","identifier","decimals"],"additionalProperties":false}},"logoURI":{"type":"string"},"url":{"type":"string"},"enabledChainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}},"supportedActions":{"type":"array","items":{"type":"string","enum":["swap","aggregation","addLiquidity","withdrawLiquidity","addSavers","withdrawSavers","borrow","repay","name","donate","claim","stake","unstake","createOrder","cancelOrder"]}},"supportedChainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}}},"required":["provider","name","timestamp","count","tokens"],"additionalProperties":false}}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/tokens/search":{"get":{"operationId":"searchTokens","tags":["Tokenlist"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"query","required":true,"description":"Free-text token search query"},{"schema":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"in":"query","name":"chain","required":false,"description":"Restrict results to a chain"},{"schema":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"in":"query","name":"provider","required":false,"description":"Restrict search to a provider token list"},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":"all","type":"string","enum":["all","crypto","rwa","stablecoin"]},"in":"query","name":"category","required":false,"description":"Asset class filter. \"rwa\" returns only tokenized real-world assets, \"crypto\" only everything else, \"all\" (the default) returns both. \"stablecoin\" returns only fiat-pegged tokens; it cuts across the other two rather than nesting inside them, so a tokenized-security stablecoin answers to both \"stablecoin\" and \"rwa\"."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"identifier":{"type":"string"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"ticker":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"number"},"logoURI":{"type":"string"},"coingeckoId":{"type":"string"},"geoBlockRule":{"type":"string","enum":["tokenized-securities"]},"isStablecoin":{"type":"boolean"},"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"providers":{"type":"array","items":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"marketCapUsd":{"type":"number"}},"required":["identifier","chainId","ticker","decimals","chain","providers"],"additionalProperties":false}},"total":{"type":"number"},"page":{"type":"number"},"limit":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["tokens","total","page","limit","hasMore"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/providers":{"get":{"operationId":"getProviders","tags":["Tokenlist"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"displayName":{"type":"string"},"displayNameLong":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"count":{"type":"number"},"logoURI":{"type":"string"},"url":{"type":"string"},"enabledChainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}},"supportedActions":{"type":"array","items":{"type":"string","enum":["swap","aggregation","addLiquidity","withdrawLiquidity","addSavers","withdrawSavers","borrow","repay","name","donate","claim","stake","unstake","createOrder","cancelOrder"]}},"supportedChainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}}},"required":["name","provider","count"],"additionalProperties":false}}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/providers/identifiers-mapping":{"get":{"operationId":"getProviderIdentifiersMapping","tags":["Tokenlist"],"parameters":[{"schema":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"in":"query","name":"provider","required":false,"description":"Provider name"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"swapkitIdentifier":{"type":"string","description":"SwapKit token identifier"},"providerMapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Mapping of provider names to their token identifiers"}},"required":["swapkitIdentifier","providerMapping"],"additionalProperties":false}}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/asset/providers":{"get":{"operationId":"getAssetProviders","tags":["Tokenlist"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"asset","required":true,"description":"Asset identifier"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/swapFrom":{"get":{"operationId":"getSwapFromAssets","tags":["Tokenlist"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"buyAsset","required":true,"description":"Asset to swap to (target asset)"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/swapTo":{"get":{"operationId":"getSwapToAssets","tags":["Tokenlist"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"sellAsset","required":true,"description":"Asset to swap from"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/tokens/whitelist/pools":{"get":{"operationId":"getWhitelistPools","tags":["Tokenlist"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"timestamp":{"type":"string"},"version":{"type":"object","properties":{"major":{"type":"number"},"minor":{"type":"number"},"patch":{"type":"number"}},"required":["major","minor","patch"],"additionalProperties":false},"keywords":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"allOf":[{"type":"object","properties":{"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"address":{"type":"string"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"ticker":{"type":"string"},"identifier":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"logoURI":{"type":"string"},"extensions":{"type":"object","properties":{},"additionalProperties":{}},"shortCode":{"type":"string"},"coingeckoId":{"type":"string"},"geoBlockRule":{"type":"string","enum":["tokenized-securities"]},"isStablecoin":{"type":"boolean"}},"required":["chainId","ticker","identifier","decimals"],"additionalProperties":false},{"type":"object","properties":{"cg":{}},"additionalProperties":false}]}},"url":{"type":"string"}},"required":["name","timestamp","tokens","url"],"additionalProperties":false}}}}},"500":{"description":"Default Response"}}}},"/tokens/whitelist/tokens":{"get":{"operationId":"getWhitelistTokens","tags":["Tokenlist"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"timestamp":{"type":"string"},"version":{"type":"object","properties":{"major":{"type":"number"},"minor":{"type":"number"},"patch":{"type":"number"}},"required":["major","minor","patch"],"additionalProperties":false},"keywords":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"allOf":[{"type":"object","properties":{"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"address":{"type":"string"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"ticker":{"type":"string"},"identifier":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"logoURI":{"type":"string"},"extensions":{"type":"object","properties":{},"additionalProperties":{}},"shortCode":{"type":"string"},"coingeckoId":{"type":"string"},"geoBlockRule":{"type":"string","enum":["tokenized-securities"]},"isStablecoin":{"type":"boolean"}},"required":["chainId","ticker","identifier","decimals"],"additionalProperties":false},{"type":"object","properties":{"cg":{}},"additionalProperties":false}]}},"url":{"type":"string"}},"required":["name","timestamp","tokens","url"],"additionalProperties":false}}}}},"500":{"description":"Default Response"}}}},"/providers/status":{"get":{"operationId":"getProvidersStatus","tags":["Tokenlist"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"providersChains":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"supportedChainsGlobal":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}},"enabledChainsGlobal":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}},"disabledChainsGlobal":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}},"enabledChainsApiKey":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}},"disabledChainsApiKey":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}}},"required":["name","supportedChainsGlobal","enabledChainsGlobal","disabledChainsGlobal","enabledChainsApiKey","disabledChainsApiKey"],"additionalProperties":false}}},"required":["providersChains"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/price":{"post":{"operationId":"getCachedPrice","tags":["Price"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"identifier":{"type":"string"}},"required":["identifier"]}},"metadata":{"type":"boolean"}},"required":["tokens","metadata"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"identifier":{"type":"string"},"provider":{"type":"string"},"cg":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"market_cap":{"type":"number"},"total_volume":{"type":"number"},"price_change_24h_usd":{"anyOf":[{"type":"number"},{"nullable":true,"enum":[null]}]},"price_change_percentage_24h_usd":{"anyOf":[{"type":"number"},{"nullable":true,"enum":[null]}]},"sparkline_in_7d":{"type":"array","items":{"type":"number"}},"timestamp":{"type":"string"}},"required":["id"],"additionalProperties":false},"price_usd":{"type":"number"},"timestamp":{"type":"number"},"error":{"type":"string"}},"required":["identifier","provider"],"additionalProperties":false}}}}}}}},"/gas":{"get":{"operationId":"getGasPrices","tags":["Gas"],"parameters":[{"schema":{"type":"string","enum":["1","10","56","100","137","143","196","999","4663","5042","8453","36900","42161","43114","80094","728126428","aleo","bitcoin","bitcoincash","cardano","cosmoshub-4","dash","dogecoin","kaiyo-1","litecoin","mayachain-mainnet-v1","near","solana","0x534e5f4d41494e","stellar","sui","ripple","thorchain-1","ton","zcash"]},"in":"query","name":"chainId","required":false,"description":"Chain id, if omitted return gas for all chains with gas support"},{"schema":{"type":"string","enum":["1h","1d","1w","1m"]},"in":"query","name":"timeFrame","required":false,"description":"Time frame to get gas history"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{"type":"number"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"value":{"type":"string"},"unit":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","chainId","value","unit","createdAt"],"additionalProperties":false},{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"value":{"type":"string"},"unit":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","chainId","value","unit","createdAt"],"additionalProperties":false}}]}}}}}}},"/gas/history":{"get":{"operationId":"getGasHistory","tags":["Gas"],"parameters":[{"schema":{"type":"string","enum":["1","10","56","100","137","143","196","999","4663","5042","8453","36900","42161","43114","80094","728126428","aleo","bitcoin","bitcoincash","cardano","cosmoshub-4","dash","dogecoin","kaiyo-1","litecoin","mayachain-mainnet-v1","near","solana","0x534e5f4d41494e","stellar","sui","ripple","thorchain-1","ton","zcash"]},"in":"query","name":"chainId","required":false,"description":"Chain id, if omitted return gas for all chains with gas support"},{"schema":{"type":"string","enum":["1h","1d","1w","1m"]},"in":"query","name":"timeFrame","required":false,"description":"Time frame to get gas history"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"value":{"type":"string"},"unit":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","chainId","value","unit","createdAt"],"additionalProperties":false}},{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"value":{"type":"string"},"unit":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","chainId","value","unit","createdAt"],"additionalProperties":false}}}]}}}}}}},"/track":{"post":{"operationId":"trackTransaction","tags":["Track"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"hash":{"type":"string","description":"Hash for the first transaction broadcasted by the end user. e.g. `88D1819378ECD09E5284C54937CDC1E99B52F253C007617A02DD1200710CE677`"},"chainId":{"type":"string","description":"ChainId for the hash. e.g. `thorchain-1`"},"block":{"type":"number","description":"Block number. Required for Polkadot chain. e.g. `123456`"},"depositChannelId":{"type":"string","description":"Deposit channel ID, required for Chainflip if tx was broadcasted without wallet connection"},"depositAddress":{"type":"string","description":"Deposit address associated with a deposit channel"},"token":{"type":"string","description":"Share-link token (`t` on a track.swapkit.dev link) issued to the API key that opened a confidential swap. A valid token unlocks the full response for any API key; without it, confidential swaps are redacted unless the caller opened the deposit channel."},"routeId":{"type":"string","description":"routeId of the /v3/quote route this transaction executed. Pass it on /track calls until the response contains a parsed transaction, to enable realized-slippage reporting on completion. Best-effort: quote data expires ~5 minutes after quoting and is region-local, so the first call should come right after broadcast."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"forceUpdate","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"hash":{"type":"string"},"block":{"type":"number"},"type":{"type":"string","enum":["approve","claim","deposit","lending","lp_action","native_contract_call","native_send","stake","unstake","streaming_swap","swap","thorname_action","token_contract_call","token_transfer","unknown","donate"]},"status":{"type":"string","enum":["unknown","not_started","pending","swapping","completed","refunded","failed"]},"trackingStatus":{"type":"string","enum":["not_started","starting","broadcasted","mempool","inbound","outbound","swapping","completed","refunded","partially_refunded","dropped","reverted","replaced","retries_exceeded","parsing_error"]},"fromAsset":{"type":"string"},"fromAmount":{"type":"string"},"fromAddress":{"type":"string"},"toAsset":{"type":"string"},"toAmount":{"type":"string"},"toAddress":{"type":"string"},"finalAsset":{"type":"object","properties":{"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"symbol":{"type":"string"},"ticker":{"type":"string"},"decimal":{"type":"number"},"address":{"type":"string"},"isGasAsset":{"type":"boolean"},"isSynthetic":{"type":"boolean"},"tax":{"type":"object","properties":{"buy":{"type":"number"},"sell":{"type":"number"}},"required":["buy","sell"],"additionalProperties":false}},"required":["chain","symbol","ticker","isGasAsset","isSynthetic"],"additionalProperties":false},"finalAddress":{"type":"string"},"finalisedAt":{"type":"number","description":"Unix timestamp in SECONDS at which this leg finalised, or -1 when not finalised or unknown."},"slippageTolerance":{"type":"number","description":"Slippage tolerance from the original quote, in basis points"},"realizedSlippageBps":{"type":"number","description":"Realized slippage of the settled output vs the quoted expected output, in basis points. Positive means the swap settled for less than quoted"},"transient":{"type":"object","properties":{"estimatedTimeToComplete":{"type":"number"},"currentLegIndex":{"type":"number"},"estimates":{"type":"object","properties":{"inboundObservation":{"type":"number"},"inboundConfirmation":{"type":"number"},"streamingSwap":{"type":"number"},"outboundDelay":{"type":"number"},"outboundObservation":{"type":"number"},"currentStage":{"type":"string"}},"required":["inboundObservation","inboundConfirmation","streamingSwap","outboundDelay","outboundObservation","currentStage"],"additionalProperties":false},"providerDetails":{"type":"object","properties":{"streamingDetails":{"type":"object","properties":{"quantity":{"type":"number"},"count":{"type":"number"},"interval":{"type":"number"},"subSwapsMap":{"type":"array","items":{"type":"number"}}},"additionalProperties":false},"depositChannelId":{"type":"string"},"depositAddress":{"type":"string"}},"additionalProperties":false}},"required":["estimatedTimeToComplete"],"additionalProperties":false},"meta":{"type":"object","properties":{"broadcastedAt":{"type":"number"},"wallet":{"type":"string"},"quoteId":{"type":"string"},"explorerUrl":{"type":"string"},"providerExplorerUrl":{"type":"string"},"affiliate":{"type":"string"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"amountInUsd":{"type":"string"},"amountOutUsd":{"type":"string"},"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"providerAction":{"type":"string","enum":["swap","aggregation","addLiquidity","withdrawLiquidity","addSavers","withdrawSavers","borrow","repay","name","donate","claim","stake","unstake","createOrder","cancelOrder"]},"providerOrderId":{"type":"string"},"images":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"provider":{"type":"string"},"chain":{"type":"string"}},"additionalProperties":false},"affiliateFees":{"type":"array","items":{"type":"object","properties":{"affiliate":{"type":"string"},"bps":{"type":"string"},"isReferrer":{"type":"boolean"}},"required":["affiliate","bps","isReferrer"],"additionalProperties":false}},"failReason":{"type":"string"},"failTargetAddress":{"type":"string"},"refundReason":{"type":"string"},"privacyMode":{"type":"boolean","description":"True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise"},"redacted":{"type":"boolean"},"redactionReason":{"type":"string","enum":["notOwner","tokenExpired","tokenInvalid"]},"targetAddress":{"type":"string"}},"additionalProperties":false},"payload":{"type":"object","properties":{"evmCalldata":{"type":"string"},"evmValue":{"type":"string"},"logs":{},"memo":{"type":"string"},"spender":{"type":"string"},"manifest":{},"intentHash":{"type":"string"},"thorname":{"type":"string"},"decodedPayload":{}},"additionalProperties":false},"legs":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"hash":{"type":"string"},"block":{"type":"number"},"type":{"type":"string","enum":["approve","claim","deposit","lending","lp_action","native_contract_call","native_send","stake","unstake","streaming_swap","swap","thorname_action","token_contract_call","token_transfer","unknown","donate"]},"status":{"type":"string","enum":["unknown","not_started","pending","swapping","completed","refunded","failed"]},"trackingStatus":{"type":"string","enum":["not_started","starting","broadcasted","mempool","inbound","outbound","swapping","completed","refunded","partially_refunded","dropped","reverted","replaced","retries_exceeded","parsing_error"]},"fromAsset":{"type":"string"},"fromAmount":{"type":"string"},"fromAddress":{"type":"string"},"toAsset":{"type":"string"},"toAmount":{"type":"string"},"toAddress":{"type":"string"},"finalAsset":{"type":"object","properties":{"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"symbol":{"type":"string"},"ticker":{"type":"string"},"decimal":{"type":"number"},"address":{"type":"string"},"isGasAsset":{"type":"boolean"},"isSynthetic":{"type":"boolean"},"tax":{"type":"object","properties":{"buy":{"type":"number"},"sell":{"type":"number"}},"required":["buy","sell"],"additionalProperties":false}},"required":["chain","symbol","ticker","isGasAsset","isSynthetic"],"additionalProperties":false},"finalAddress":{"type":"string"},"finalisedAt":{"type":"number","description":"Unix timestamp in SECONDS at which this leg finalised, or -1 when not finalised or unknown."},"slippageTolerance":{"type":"number","description":"Slippage tolerance from the original quote, in basis points"},"realizedSlippageBps":{"type":"number","description":"Realized slippage of the settled output vs the quoted expected output, in basis points. Positive means the swap settled for less than quoted"},"transient":{"type":"object","properties":{"estimatedTimeToComplete":{"type":"number"},"currentLegIndex":{"type":"number"},"estimates":{"type":"object","properties":{"inboundObservation":{"type":"number"},"inboundConfirmation":{"type":"number"},"streamingSwap":{"type":"number"},"outboundDelay":{"type":"number"},"outboundObservation":{"type":"number"},"currentStage":{"type":"string"}},"required":["inboundObservation","inboundConfirmation","streamingSwap","outboundDelay","outboundObservation","currentStage"],"additionalProperties":false},"providerDetails":{"type":"object","properties":{"streamingDetails":{"type":"object","properties":{"quantity":{"type":"number"},"count":{"type":"number"},"interval":{"type":"number"},"subSwapsMap":{"type":"array","items":{"type":"number"}}},"additionalProperties":false},"depositChannelId":{"type":"string"},"depositAddress":{"type":"string"}},"additionalProperties":false}},"required":["estimatedTimeToComplete"],"additionalProperties":false},"meta":{"type":"object","properties":{"broadcastedAt":{"type":"number"},"wallet":{"type":"string"},"quoteId":{"type":"string"},"explorerUrl":{"type":"string"},"providerExplorerUrl":{"type":"string"},"affiliate":{"type":"string"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"amountInUsd":{"type":"string"},"amountOutUsd":{"type":"string"},"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"providerAction":{"type":"string","enum":["swap","aggregation","addLiquidity","withdrawLiquidity","addSavers","withdrawSavers","borrow","repay","name","donate","claim","stake","unstake","createOrder","cancelOrder"]},"providerOrderId":{"type":"string"},"images":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"provider":{"type":"string"},"chain":{"type":"string"}},"additionalProperties":false},"affiliateFees":{"type":"array","items":{"type":"object","properties":{"affiliate":{"type":"string"},"bps":{"type":"string"},"isReferrer":{"type":"boolean"}},"required":["affiliate","bps","isReferrer"],"additionalProperties":false}},"failReason":{"type":"string"},"failTargetAddress":{"type":"string"},"refundReason":{"type":"string"},"privacyMode":{"type":"boolean","description":"True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise"},"redacted":{"type":"boolean"},"redactionReason":{"type":"string","enum":["notOwner","tokenExpired","tokenInvalid"]},"targetAddress":{"type":"string"}},"additionalProperties":false},"payload":{"type":"object","properties":{"evmCalldata":{"type":"string"},"evmValue":{"type":"string"},"logs":{},"memo":{"type":"string"},"spender":{"type":"string"},"manifest":{},"intentHash":{"type":"string"},"thorname":{"type":"string"},"decodedPayload":{}},"additionalProperties":false}},"required":["chainId","hash","block","type","status","fromAsset","fromAmount","fromAddress","toAsset","toAmount","toAddress","finalisedAt"],"additionalProperties":false}}},"required":["chainId","hash","block","type","status","fromAsset","fromAmount","fromAddress","toAsset","toAmount","toAddress","finalisedAt","legs"],"additionalProperties":false}}}},"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"hash":{"type":"string"},"block":{"type":"number"},"type":{"type":"string","enum":["approve","claim","deposit","lending","lp_action","native_contract_call","native_send","stake","unstake","streaming_swap","swap","thorname_action","token_contract_call","token_transfer","unknown","donate"]},"status":{"type":"string","enum":["unknown","not_started","pending","swapping","completed","refunded","failed"]},"trackingStatus":{"type":"string","enum":["not_started","starting","broadcasted","mempool","inbound","outbound","swapping","completed","refunded","partially_refunded","dropped","reverted","replaced","retries_exceeded","parsing_error"]},"fromAsset":{"type":"string"},"fromAmount":{"type":"string"},"fromAddress":{"type":"string"},"toAsset":{"type":"string"},"toAmount":{"type":"string"},"toAddress":{"type":"string"},"finalAsset":{"type":"object","properties":{"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"symbol":{"type":"string"},"ticker":{"type":"string"},"decimal":{"type":"number"},"address":{"type":"string"},"isGasAsset":{"type":"boolean"},"isSynthetic":{"type":"boolean"},"tax":{"type":"object","properties":{"buy":{"type":"number"},"sell":{"type":"number"}},"required":["buy","sell"],"additionalProperties":false}},"required":["chain","symbol","ticker","isGasAsset","isSynthetic"],"additionalProperties":false},"finalAddress":{"type":"string"},"finalisedAt":{"type":"number","description":"Unix timestamp in SECONDS at which this leg finalised, or -1 when not finalised or unknown."},"slippageTolerance":{"type":"number","description":"Slippage tolerance from the original quote, in basis points"},"realizedSlippageBps":{"type":"number","description":"Realized slippage of the settled output vs the quoted expected output, in basis points. Positive means the swap settled for less than quoted"},"transient":{"type":"object","properties":{"estimatedTimeToComplete":{"type":"number"},"currentLegIndex":{"type":"number"},"estimates":{"type":"object","properties":{"inboundObservation":{"type":"number"},"inboundConfirmation":{"type":"number"},"streamingSwap":{"type":"number"},"outboundDelay":{"type":"number"},"outboundObservation":{"type":"number"},"currentStage":{"type":"string"}},"required":["inboundObservation","inboundConfirmation","streamingSwap","outboundDelay","outboundObservation","currentStage"],"additionalProperties":false},"providerDetails":{"type":"object","properties":{"streamingDetails":{"type":"object","properties":{"quantity":{"type":"number"},"count":{"type":"number"},"interval":{"type":"number"},"subSwapsMap":{"type":"array","items":{"type":"number"}}},"additionalProperties":false},"depositChannelId":{"type":"string"},"depositAddress":{"type":"string"}},"additionalProperties":false}},"required":["estimatedTimeToComplete"],"additionalProperties":false},"meta":{"type":"object","properties":{"broadcastedAt":{"type":"number"},"wallet":{"type":"string"},"quoteId":{"type":"string"},"explorerUrl":{"type":"string"},"providerExplorerUrl":{"type":"string"},"affiliate":{"type":"string"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"amountInUsd":{"type":"string"},"amountOutUsd":{"type":"string"},"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"providerAction":{"type":"string","enum":["swap","aggregation","addLiquidity","withdrawLiquidity","addSavers","withdrawSavers","borrow","repay","name","donate","claim","stake","unstake","createOrder","cancelOrder"]},"providerOrderId":{"type":"string"},"images":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"provider":{"type":"string"},"chain":{"type":"string"}},"additionalProperties":false},"affiliateFees":{"type":"array","items":{"type":"object","properties":{"affiliate":{"type":"string"},"bps":{"type":"string"},"isReferrer":{"type":"boolean"}},"required":["affiliate","bps","isReferrer"],"additionalProperties":false}},"failReason":{"type":"string"},"failTargetAddress":{"type":"string"},"refundReason":{"type":"string"},"privacyMode":{"type":"boolean","description":"True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise"},"redacted":{"type":"boolean"},"redactionReason":{"type":"string","enum":["notOwner","tokenExpired","tokenInvalid"]},"targetAddress":{"type":"string"}},"additionalProperties":false},"payload":{"type":"object","properties":{"evmCalldata":{"type":"string"},"evmValue":{"type":"string"},"logs":{},"memo":{"type":"string"},"spender":{"type":"string"},"manifest":{},"intentHash":{"type":"string"},"thorname":{"type":"string"},"decodedPayload":{}},"additionalProperties":false},"legs":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"hash":{"type":"string"},"block":{"type":"number"},"type":{"type":"string","enum":["approve","claim","deposit","lending","lp_action","native_contract_call","native_send","stake","unstake","streaming_swap","swap","thorname_action","token_contract_call","token_transfer","unknown","donate"]},"status":{"type":"string","enum":["unknown","not_started","pending","swapping","completed","refunded","failed"]},"trackingStatus":{"type":"string","enum":["not_started","starting","broadcasted","mempool","inbound","outbound","swapping","completed","refunded","partially_refunded","dropped","reverted","replaced","retries_exceeded","parsing_error"]},"fromAsset":{"type":"string"},"fromAmount":{"type":"string"},"fromAddress":{"type":"string"},"toAsset":{"type":"string"},"toAmount":{"type":"string"},"toAddress":{"type":"string"},"finalAsset":{"type":"object","properties":{"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"symbol":{"type":"string"},"ticker":{"type":"string"},"decimal":{"type":"number"},"address":{"type":"string"},"isGasAsset":{"type":"boolean"},"isSynthetic":{"type":"boolean"},"tax":{"type":"object","properties":{"buy":{"type":"number"},"sell":{"type":"number"}},"required":["buy","sell"],"additionalProperties":false}},"required":["chain","symbol","ticker","isGasAsset","isSynthetic"],"additionalProperties":false},"finalAddress":{"type":"string"},"finalisedAt":{"type":"number","description":"Unix timestamp in SECONDS at which this leg finalised, or -1 when not finalised or unknown."},"slippageTolerance":{"type":"number","description":"Slippage tolerance from the original quote, in basis points"},"realizedSlippageBps":{"type":"number","description":"Realized slippage of the settled output vs the quoted expected output, in basis points. Positive means the swap settled for less than quoted"},"transient":{"type":"object","properties":{"estimatedTimeToComplete":{"type":"number"},"currentLegIndex":{"type":"number"},"estimates":{"type":"object","properties":{"inboundObservation":{"type":"number"},"inboundConfirmation":{"type":"number"},"streamingSwap":{"type":"number"},"outboundDelay":{"type":"number"},"outboundObservation":{"type":"number"},"currentStage":{"type":"string"}},"required":["inboundObservation","inboundConfirmation","streamingSwap","outboundDelay","outboundObservation","currentStage"],"additionalProperties":false},"providerDetails":{"type":"object","properties":{"streamingDetails":{"type":"object","properties":{"quantity":{"type":"number"},"count":{"type":"number"},"interval":{"type":"number"},"subSwapsMap":{"type":"array","items":{"type":"number"}}},"additionalProperties":false},"depositChannelId":{"type":"string"},"depositAddress":{"type":"string"}},"additionalProperties":false}},"required":["estimatedTimeToComplete"],"additionalProperties":false},"meta":{"type":"object","properties":{"broadcastedAt":{"type":"number"},"wallet":{"type":"string"},"quoteId":{"type":"string"},"explorerUrl":{"type":"string"},"providerExplorerUrl":{"type":"string"},"affiliate":{"type":"string"},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"amountInUsd":{"type":"string"},"amountOutUsd":{"type":"string"},"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"providerAction":{"type":"string","enum":["swap","aggregation","addLiquidity","withdrawLiquidity","addSavers","withdrawSavers","borrow","repay","name","donate","claim","stake","unstake","createOrder","cancelOrder"]},"providerOrderId":{"type":"string"},"images":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"provider":{"type":"string"},"chain":{"type":"string"}},"additionalProperties":false},"affiliateFees":{"type":"array","items":{"type":"object","properties":{"affiliate":{"type":"string"},"bps":{"type":"string"},"isReferrer":{"type":"boolean"}},"required":["affiliate","bps","isReferrer"],"additionalProperties":false}},"failReason":{"type":"string"},"failTargetAddress":{"type":"string"},"refundReason":{"type":"string"},"privacyMode":{"type":"boolean","description":"True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise"},"redacted":{"type":"boolean"},"redactionReason":{"type":"string","enum":["notOwner","tokenExpired","tokenInvalid"]},"targetAddress":{"type":"string"}},"additionalProperties":false},"payload":{"type":"object","properties":{"evmCalldata":{"type":"string"},"evmValue":{"type":"string"},"logs":{},"memo":{"type":"string"},"spender":{"type":"string"},"manifest":{},"intentHash":{"type":"string"},"thorname":{"type":"string"},"decodedPayload":{}},"additionalProperties":false}},"required":["chainId","hash","block","type","status","fromAsset","fromAmount","fromAddress","toAsset","toAmount","toAddress","finalisedAt"],"additionalProperties":false}}},"required":["chainId","hash","block","type","status","fromAsset","fromAmount","fromAddress","toAsset","toAmount","toAddress","finalisedAt","legs"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"502":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/balance":{"get":{"operationId":"getBalance","tags":["Balance"],"parameters":[{"schema":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"in":"query","name":"chain","required":true},{"schema":{"type":"string"},"in":"query","name":"address","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","ARC","AURORA","AVAX","BASE","BERA","BSC","BTC","BCH","BOTANIX","ADA","FLIP","CORE","CORN","GAIA","CRO","DASH","DOGE","ETH","GNO","HARBOR","HYPEREVM","HYPE","KUJI","LTC","LINEA","MAYA","MEGAETH","MONAD","NEAR","NOBLE","OP","XPL","DOT","POL","XRD","XRP","HOOD","SOL","SONIC","SPARK","XLM","STRK","SUI","THOR","TON","TRON","UNI","XLAYER","ZEC"]},"decimal":{"type":"number"},"ticker":{"type":"string"},"symbol":{"type":"string"},"value":{"type":"string"},"identifier":{"type":"string"}},"required":["chain","decimal","ticker","symbol","value","identifier"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/approve":{"get":{"operationId":"checkApproval","tags":["Balance"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"routeId","required":true},{"schema":{"type":"string"},"in":"query","name":"sourceAddress","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"isApproved":{"type":"boolean"},"approvedAmount":{"type":"string"},"approvalTransaction":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"value":{"type":"string"},"data":{"type":"string"},"gasLimit":{"type":"string"},"gasPrice":{"type":"string"}},"required":["to","from","value","data"],"additionalProperties":false}},"required":["isApproved","approvedAmount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"422":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/chainflip/broker/channel":{"post":{"operationId":"createBrokerChannel","tags":["Chainflip"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"destinationAddress":{"type":"string"},"sellAsset":{"type":"object","properties":{"chain":{"type":"string"},"asset":{"type":"string"}},"required":["chain","asset"]},"buyAsset":{"type":"object","properties":{"chain":{"type":"string"},"asset":{"type":"string"}},"required":["chain","asset"]},"sourceAddress":{"type":"string"},"channelMetadata":{"type":"object","properties":{"ccmAdditionalData":{"type":"string"},"gasBudget":{"type":"string"},"message":{"type":"string"},"cfParameters":{"type":"string"}}},"affiliateFees":{"type":"array","items":{"type":"object","properties":{"brokerAddress":{"type":"string"},"feeBps":{"type":"number"}},"required":["brokerAddress","feeBps"]}},"refundParameters":{"type":"object","properties":{"minPrice":{"type":"string"},"refundAddress":{"type":"string"},"retryDuration":{"type":"number"},"maxOraclePriceSlippage":{"type":"number"},"slippageTolerancePercent":{"type":"number"},"livePriceSlippageTolerancePercent":{"type":"number"}}},"dcaParameters":{"type":"object","properties":{"chunkInterval":{"type":"number"},"numberOfChunks":{"type":"number"}}},"brokerCommissionBps":{"type":"number"},"maxBoostFeeBps":{"type":"number"}},"required":["destinationAddress","sellAsset","buyAsset"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"depositAddress":{"type":"string"},"channelId":{"type":"string"},"explorerUrl":{"type":"string"},"error":{"type":"string","description":"Error message"}},"required":["depositAddress","channelId","explorerUrl"],"additionalProperties":false}}}}}}},"/v3/limit/quote":{"post":{"operationId":"getLimitOrderQuote","tags":["LimitOrder"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"sellAsset":{"type":"string","description":"SwapKit asset identifier, e.g. ETH.USDC-0xa0b8..."},"buyAsset":{"type":"string","description":"SwapKit asset identifier, e.g. ETH.USDC-0xa0b8..."},"sellAmount":{"type":"string"},"buyAmount":{"type":"string"},"limitPrice":{"description":"buyAsset per 1 sellAsset","type":"string"},"sourceAddress":{"description":"Optional maker address on the sell-asset chain. Used for AML screening at quote time and pre-populated into the /v3/limit/build nextAction's payload when provided.","type":"string","minLength":1},"destinationAddress":{"description":"Optional recipient address on the buy-asset chain. Used for AML screening at quote time and pre-populated into the /v3/limit/build nextAction's payload when provided.","type":"string","minLength":1},"providers":{"description":"Optional allowlist of providers allowed to quote the order; omit to consider all. Only ONEINCH, HARBOR and NEAR run limit orders — naming any other provider is accepted and simply skipped, but a list naming none of these three (an empty array included) is rejected.","type":"array","items":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"affiliateFee":{"type":"number","minimum":0,"maximum":1000},"expiresAt":{"description":"Optional preferred expiration as a unix timestamp in seconds. Pre-populated into the /v3/limit/build nextAction's payload so integrators don't have to compute it twice. Defaults to now + 3 days when omitted.","type":"integer","exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0}},"required":["sellAsset","buyAsset"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"routes":{"type":"array","items":{"type":"object","properties":{"routeId":{"type":"string"},"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"sellAsset":{"type":"string","description":"SwapKit asset identifier, e.g. ETH.USDC-0xa0b8..."},"buyAsset":{"type":"string","description":"SwapKit asset identifier, e.g. ETH.USDC-0xa0b8..."},"sellAmount":{"type":"string"},"buyAmount":{"type":"string"},"limitPrice":{"type":"string","description":"buyAsset per 1 sellAsset, the price the user intends to trade at"},"spotPrice":{"type":"string","description":"Current market mid-price, buyAsset per 1 sellAsset"},"effectiveFillPrice":{"type":"string","description":"Price the market must reach for the order to actually fill: spotPrice × (1 + feeGapBps / 10_000). The gap is takerFeeBps + integratorFeeBps on 1inch, whose integrator fee is charged taker-side; takerFeeBps alone on Harbor, whose integrator fee comes out of proceeds; and 0 on NEAR, whose spread is already in the quoted output. Use this — not spotPrice — when rendering 'how far am I from a fill' UX."},"spotPriceDeviationBps":{"type":"number","description":"Signed BPS delta of limitPrice vs effectiveFillPrice (NOT raw spotPrice). Positive = limitPrice above the effective fill threshold, so the order is waiting for the market to move. Negative = limitPrice at or below the threshold, so the order would fill immediately at a worse rate than a market swap."},"takerFeeBps":{"type":"number","description":"Protocol-side taker fee in bps a typical (whitelisted) filler will pay on top of takingAmount at fill. For 1inch this is `resolverFeeBps × (1 − whitelistDiscountPercent / 100)`; for Harbor it's normally the liquidity (maker spread) fee alone, but when Harbor's limit-order price is unavailable and SwapKit falls back to its spot quote, it's that quote's total protocol fee (liquidity + outbound); for NEAR it's 0. Does NOT include the integrator fee — that's reported separately as `integratorFeeBps`, and only 1inch adds it to the gap behind `effectiveFillPrice`."},"minExpirationSeconds":{"type":"number"},"maxExpirationSeconds":{"type":"number"},"integratorFeeBps":{"type":"number","description":"Effective integrator (affiliate) fee in bps applied to this order. 1inch encodes it into the order's FeeTakerExtension at build time; Harbor settles it out of proceeds; NEAR takes it from the sell amount. 0 when the API key has no affiliate configured for the routed provider."},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["highSlippage","highPriceImpact","noSourceAddressToBuildTransaction","affiliateFeeTooSmallSoRemoved","unableToApplyReferralProgram","insufficientBalance","insufficientGas","unableToBuildTransaction","unableToEstimateGas","limitPriceBelowSpot","limitPriceWithinFeeGap","limitOrderNotionalTooSmall","outputBelowPublishedFloor","litecoinMwebNotSupported","refundAddressNotApplied","vaultSwapUnavailable"]},"display":{"type":"string"},"tooltip":{"type":"string"},"data":{"description":"Structured form of the figures embedded in `display`. Present only on `insufficientGas`; absent on every other warning code.","type":"object","properties":{"chain":{"type":"string","description":"Chain whose native gas asset is short, e.g. \"TRON\"."},"asset":{"type":"string","description":"Identifier of the gas asset, e.g. \"TRON.TRX\"."},"ticker":{"type":"string","description":"Ticker of the gas asset, e.g. \"TRX\"."},"estimatedFee":{"type":"string","description":"Estimated network fee, as a decimal string in the gas asset's own units. An estimate, not a quoted fee: on TRON it is what a node says this specific wallet would pay, and it drifts as staked energy/bandwidth regenerates. Good for display and for comparing against the balance; not a 'top up exactly this much' figure."},"balance":{"type":"string","description":"The source address' gas-asset balance as read while building this swap, as a decimal string in the gas asset's own units. Read at /swap time, not at quote time."}},"required":["chain","asset","ticker","estimatedFee","balance"],"additionalProperties":false}},"required":["code","display"],"additionalProperties":false}},"nextActions":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"url":{"type":"string"},"payload":{}},"required":["method","url"],"additionalProperties":false}}},"required":["routeId","provider","sellAsset","buyAsset","sellAmount","buyAmount","limitPrice","spotPrice","effectiveFillPrice","spotPriceDeviationBps","takerFeeBps","minExpirationSeconds","maxExpirationSeconds","integratorFeeBps"],"additionalProperties":false}},"error":{"type":"string"},"providerErrors":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"errorCode":{"type":"string","enum":["noRpcFallbacks","requestTimeout","invalidApiVersion","isSanctionedAddress","unknownError","collectorEgressForbidden","collectorUpstreamHttpError","collectorUpstreamTransient","collectorRetriesExhausted","collectorUnreachable","mergeScriptResultMissing","mergeTargetFailed","internalServerError","upstreamDependencyFailed","chainflipSwapNotFound","test_error","blockHeaderNotFound","blockHashNotFoundAtHeight","blackListAsset","txHashMissing","invalidAsset","assetDecimalsUnknown","currentBlockHeaderNotFound","failedToRetrieveBalance","failedToRetrieveBlock","failedToRetrieveFees","notImplementedBCH","notImplementedDoge","noPoolsFound","noVaultsFound","noTxFound","multipleCosmosMessages","heightOrHashNotProvided","priceTooVolatile","unknownDenom","invalidBlockHeight","timestampExtrinsicNoArgumentsForBlock","timestampExtrinsicNoTimestampForBlock","noTimestampExtrinsicForHash","timestampExtrinsicNoArgumentsForHash","txMemoUndefined","txMemoIncorrect","txTypeNotFound","txNoMessage","txNotFound","txReceiptNotFound","txParsingError","txLogsParsingError","txFailed","jobDataParsingError","dataformRunFailed","dataformAssertionFailed","blockNotFound","balanceNotFound","blockbookCallFailed","previousTxEntryInvalid","configError","unsafeTestDatabase","synthSwapDisallowed","noQuoteResponse","invalidProviderResponse","noPoolAssetsFound","noThorchainPools","noMayachainPools","noThorchainNetworkInfo","invalidAffiliateFee","invalidBuyAssetAddress","invalidSellAssetAddress","invalidSourceAddress","invalidSourceAddressList","invalidRefundAddress","invalidDestinationAddress","invalidParam","xrpAddressRequiresTag","invalidChainId","invalidChain","unsupportedChainId","unsupportedEVMChainId","unsupportedMethod","unsupportedProvider","refundAddressUnsupportedByRoute","refundAddressTooLongForSellChain","unsupportedProgram","unsupportedEvent","invalidParamsForMethod","noWhitelistTokens","failedFetchGasPrice","chainflipBrokerApiUnavailable","failedToBuildVaultSwapTransaction","failedToOpenBtcPrivateChannel","failedToCloseBtcPrivateChannel","affiliateNotRegistered","failedToCreateDepositChannel","failedToRegisterAccount","failedToRegisterAffiliate","failedToWithdrawAffiliate","failedToDeregisterAffiliate","affiliateHasUnclaimedBalance","affiliateRecentlyActive","chainflipRecoveryAccountNotConfigured","chainflipRecoveryAccountInvalid","chainflipRecoveryAccountConfirmationMismatch","chainflipRecoveryAccountAlreadyLinked","chainflipRecoveryAccountNotLiquidityProvider","failedToLinkRecoveryAccount","noProviderDetailsFound","noTokenListsFound","tokenNotFound","tokenPriceNotFound","tokenPriceUnavailable","tokenPriceFailedToUpdate","legsArrayIsEmpty","failedToFetchQuoteForLeg","noBlockHeaderFound","failedToSimulateSwap","swapHalted","memoTooLongForSourceChain","addressScreeningFailed","missingScreeningConfig","insufficientLiquidity","noSaversFound","noInbounDataFound","noInboundAddressesFound","noTargetAddress","noInboundAddressFoundForChain","noLastBlocksFound","noVersionFound","noConstantsFound","noMimirsFound","noRoutesFound","geoRestrictedToken","quoteNotFound","providerResponseFormError","ledgerWrongPayload","failedToFetchTx","failedBuildTransactionDetails","failedToCreateRouteMetadata","txBuildingTimeout","noLegsForRoute","insufficientBalance","utxoSelectionRefused","utxoFeeHeadroomInsufficient","utxoBalanceBelowAmount","insufficientAllowance","insufficientGas","unableToBuildTransaction","unableToDecodeTransaction","noRouterAddressFound","noAggregatorAddressFound","noContractInstanceFound","noContractAddressFound","invalidAffiliate","invalidAffiliateName","thornameNotFound","thornameAffiliate","No provider found","providerStatusesUnavailable","providerAssetNotFound","No Record found","Slippage too low","tradingHalted","mayanameNotFound","noWrappedGasAsset","aggregatorAddressNotFound","routerAddressNotFound","dummyAddressNotFound","trackerError","providerUnavailable","thorchainPoolUnavailable","noTradingPairs","missingState","ledgerSwapNotFound","ledgerSwapNotReadyForTracking","ledgerInvalidParsingMode","ledgerWebhookNotifyFailed","errorEstimatingGas","apiKeyInvalid","apiKeyFailedToUpdate","apiKeyUpdateConflict","apiKeySignatureExists","apiKeySignatureKeyTypeMismatch","apiKeyExpired","unauthorized","failedToCreateMemo","invalidAddressForChain","invalidAddress","riskyAddress","noRoutesToProcess","sellAssetAmountTooSmall","sellAssetAmountTooLarge","estimatedTimeTooLong","missingPrivateKey","noMemoPriceProtection","nodeMethodNotFound","nodeRpcNotFound","thirdPartyProviderNotFound","quoteUnavailable","targetInstructionNotFound","referrerExist","referrerNotFound","invalidReferrer","quoteLogicError","missingDecimal","noGasInfoInDB","quoteError","valueOverflow","missingChainflipMeta","contractAndMethodRequired","tokenImageError","fileNotFound","fileFormatError","ipError","failedToSaveLedgerSwap","missingValue","missingDBQueryParam","unableEstimateTxTime","affiliateStatsMissingDate","affiliateStatsMissingNextFilter","affiliateStatsNoActions","unsupportedNotificationEvent","unsupportedNotificationChannel","invalidWebhookUrl","webhookDeliveryFailed","serverStateNotFound","apiRequestFailed","apiRateLimit","invalidActionStep","providerIsRequired","rateLimitExceeded","depositChannelNotFound","auditLogInsertFailed","affiliateNameHistoryInsertFailed","invalidRouteId","invalidQuoteId","invalidRoute","destinationTrustlineRequired","stellarHorizonUnavailable","quoteExpired","swapQuoteNotFound","swapRouteNotFound","swapTransactionFailed","swapChainflipMetaMissing","swapChainflipChannelFailed","swapTransferTxFailed","chainflipVaultSwapNotSupported","chainflipVaultSwapEncodingFailed","chainflipVaultSwapInvalidChain","chainflipVaultSwapBitcoinCCMNotSupported","chainflipVaultSwapTransactionBuildFailed","zcashInvalidAddress","zcashInsufficientUTXOs","zcashUTXOSelectionFailed","zcashTransactionBuildFailed","zcashShieldedRefundMissing","zcashMemoTooLong","litecoinMwebAddressUnsupported","zcashUnifiedAddressUnsupported","zcashShieldedMemoUnavailable","zcashTransactionFormatRetired","zcashNetworkUpgradeImminent","invalidTokenProgram","solanaOutputBelowRentExemptMinimum","solanaTokenProgramUnavailable","invalidRequest","pubsubEventNotRegistered","pubsubTopicNotFound","pubsubEnvelopeParsingError","invalidSpender","outputAmountDeviationTooHigh","inputAmountDeviationTooHigh","outputBelowPublishedFloor","swapSizeExceeded","v2EndpointNotAllowed","externalServiceFailed","tenantEncryptKeyNotFound","tenantKeyPairEncryptionError","slip24AmountOverflow","slip24InvalidSignature","slip24DigestComputationFailed","slip24RefundUnverifiable","invalidTxHashFormat","affiliateNotFound","affiliateQuickSetupRunNotFound","affiliateQuickSetupRunInProgress","affiliateQuickSetupRunInsertFailed","nearAffiliateProviderAssetNotFound","nearAffiliateDepositAddressFailed","nearAffiliateDepositAddressUnknown","nearAffiliateNameMismatch","nearAffiliateDepositAddressClaimed","nearAffiliateSaveFailed","nearAffiliateNotRegistered","flashnetAffiliateRegistrationFailed","flashnetAffiliateClaimFailed","flashnetAffiliateNotFound","pactswapAffiliateRegistrationFailed","pactswapAffiliateNotFound","limitOrderUnsupportedChain","limitOrderQuoteNotFound","limitOrderRouteNotFound","limitOrderNotFound","limitOrderInvalidState","limitOrderInvalidCursor","limitOrderBuildFailed","limitOrderSubmissionFailed","limitOrderCancelFailed","limitOrderCancelSignatureInvalid","limitOrderExpirationOutOfBounds","limitOrderUnsupportedFillFlags","limitOrderAmountAmbiguous","limitOrderChainMismatch","limitOrderUnsupportedPair","limitOrderProviderUnsupported","limitOrderActionUnavailable","limitOrderProviderError","limitOrderMakerBlacklisted","limitOrderInsufficientAllowance","limitOrderMaxOrdersExceeded","limitOrderRejected","tokenAdmissionEvaluationFailed","tokenAdmissionAnalysisSaveFailed","tokenAdmissionVerdictWriteFailed","tokenAdmissionRecordFailed","tokenAdmissionSpendUnreadable","rawImportFetchFailed","rawImportOpenSetFailed","rawImportLookupFailed","rawImportLookupAmbiguous","rawImportMapFailed","rawImportPublishFailed","rawImportChangeStoreFailed","rawImportProviderUnsupported","rawImportProgressFailed","rawImportInvalidCursor","rawImportThrottled","feeFixtureRunFailed","candidateTokenNotFound","candidateTokenIdentifierUnavailable","candidateTokenInvalidTransition","candidateTokenExtensionUnavailable","swapkitTokenNotFound","swapkitTokenAlreadyExists","swapkitTokenDecimalsMismatch","swapkitTokenImplausibleDecimals","swapkitTokenDenylisted","swapkitTokenFieldNotEdited","swapkitTokenDiscoveryFailed","swapkitTokenDataDiscarded","swapkitTokenAdmissionDecimalsMismatch"]},"message":{"type":"string"}},"additionalProperties":false}}},"required":["quoteId","routes"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/v3/limit/build":{"post":{"operationId":"buildLimitOrder","tags":["LimitOrder"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"routeId":{"type":"string"},"sourceAddress":{"type":"string","minLength":1},"destinationAddress":{"type":"string","minLength":1},"expiresAt":{"type":"integer","exclusiveMinimum":true,"maximum":9007199254740991,"description":"Unix timestamp in seconds","minimum":0},"allowPartialFill":{"default":true,"description":"1inch only — must be true. Disabling either fill flag forces bit-invalidator mode, which the 1inch orderbook accepts only on the RFQ surface and not the regular limit-order one. Build returns `limitOrderUnsupportedFillFlags` (400) otherwise.","type":"boolean"},"allowMultipleFills":{"default":true,"description":"1inch only — must be true. See `allowPartialFill` for the bit-invalidator constraint.","type":"boolean"},"usePermit2":{"default":false,"type":"boolean"}},"required":["routeId","sourceAddress","destinationAddress","expiresAt"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string","description":"SwapKit-native order UUID"},"orderHash":{"type":"string","description":"Canonical order identifier. 1inch: EIP-712 digest. Harbor: deterministic hash over the memo + deposit address + maker until the integrator broadcasts and calls /submit with the real tx hash."},"typedData":{"anyOf":[{"type":"object","properties":{"types":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}}},"domain":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"chainId":{"type":"number"},"verifyingContract":{"type":"string"}},"required":["name","version","chainId","verifyingContract"],"additionalProperties":false},"message":{"type":"object","additionalProperties":{}},"primaryType":{"type":"string"}},"required":["types","domain","message","primaryType"],"additionalProperties":false},{"nullable":true,"enum":[null]}],"description":"EIP-712 payload to sign (1inch). Null for memo-based providers like Harbor — use `tx` instead."},"tx":{"anyOf":[{"anyOf":[{"type":"object","properties":{"to":{"type":"string","description":"Hex-encoded recipient address (native TRX) or TRC-20 token contract address"},"from":{"type":"string","description":"Hex-encoded sender address"},"value":{"type":"string","description":"Transfer amount in base units"},"data":{"type":"string","description":"ABI-encoded TRC-20 transfer parameters, or 0x for native TRX"},"memo":{"type":"string","description":"Transaction memo to attach on-chain: either a plain-text provider memo (e.g. THORChain) or a 0x-prefixed hex byte payload (e.g. Chainflip vault swap parameters), which must be attached as raw bytes"}},"required":["to","value","data","memo"],"additionalProperties":false},{"type":"object","properties":{"to":{"type":"string","description":"Address of the recipient"},"from":{"type":"string","description":"Address of the sender"},"gas":{"type":"string","description":"Gas limit"},"gasPrice":{"type":"string","description":"Gas price (legacy, type-0 transactions only)"},"maxFeePerGas":{"type":"string","description":"Maximum total fee per gas (EIP-1559, type-2 transactions only)"},"maxPriorityFeePerGas":{"type":"string","description":"Maximum priority fee per gas, the validator tip (EIP-1559, type-2 only)"},"type":{"type":"string","description":"EIP-2718 transaction type, hex-quantified — \"0x2\" for EIP-1559"},"value":{"type":"string","description":"Value to send"},"data":{"type":"string","description":"Data to send"}},"required":["to","value","data"],"additionalProperties":false},{"type":"object","properties":{"memo":{"type":"string"},"accountNumber":{"type":"number"},"sequence":{"type":"number"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"msgs":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"value":{}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"typeUrl":{"type":"string"},"value":{}},"required":["typeUrl","value"],"additionalProperties":false}]}},"fee":{"type":"object","properties":{"amount":{"type":"array","items":{"type":"object","properties":{"denom":{"type":"string"},"amount":{"type":"string"}},"required":["denom","amount"],"additionalProperties":false}},"gas":{"type":"string"}},"required":["amount","gas"],"additionalProperties":false}},"required":["memo","accountNumber","sequence","chainId","msgs","fee"],"additionalProperties":false},{"type":"object","properties":{"visible":{"type":"boolean"},"txID":{"type":"string"},"raw_data":{"type":"object","properties":{"contract":{},"ref_block_bytes":{"type":"string"},"ref_block_hash":{"type":"string"},"expiration":{"type":"number"},"fee_limit":{},"timestamp":{"type":"number"},"data":{}},"required":["contract","ref_block_bytes","ref_block_hash","expiration","timestamp"],"additionalProperties":false},"raw_data_hex":{"type":"string"}},"required":["txID","raw_data","raw_data_hex"],"additionalProperties":false},{"type":"array","items":{"type":"object","properties":{"contractAddress":{"type":"string"},"entrypoint":{"type":"string"},"calldata":{"type":"array","items":{"type":"string"}}},"required":["contractAddress","entrypoint","calldata"],"additionalProperties":false}},{"type":"object","properties":{"sendMode":{"type":"number","description":"@ton/ton SendMode bitmask applied to the whole transfer — TON wallets take a single mode per transaction, not per message. 3 (PAY_GAS_SEPARATELY | IGNORE_ERRORS) normally; 130 (CARRY_ALL_REMAINING_BALANCE | IGNORE_ERRORS) on sweeps, so the wallet sends balance − fees instead of the literal amount."},"messages":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","description":"Destination address in friendly format"},"amount":{"type":"string","description":"Amount in nanotons"},"payload":{"description":"Base64 BOC of body cell","type":"string"},"stateInit":{"description":"Base64 BOC of state init","type":"string"}},"required":["address","amount"],"additionalProperties":false}}},"required":["sendMode","messages"],"additionalProperties":false},{"type":"object","properties":{"domain":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"chainId":{"type":"number"},"verifyingContract":{"type":"string"}},"required":["name","version","chainId","verifyingContract"],"additionalProperties":false},"types":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}}},"value":{"type":"object","additionalProperties":{}}},"required":["domain","types","value"],"additionalProperties":false},{"type":"object","properties":{"typedData":{"type":"object","properties":{"domain":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"chainId":{"type":"number"},"verifyingContract":{"type":"string"}},"required":["name","version","chainId","verifyingContract"],"additionalProperties":false},"primaryType":{"type":"string"},"types":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}}},"message":{"type":"object","additionalProperties":{}}},"required":["domain","primaryType","types","message"],"additionalProperties":false},"action":{"type":"object","properties":{"type":{"type":"string","enum":["sendAsset"]},"hyperliquidChain":{"type":"string"},"signatureChainId":{"type":"string"},"destination":{"type":"string"},"sourceDex":{"type":"string"},"destinationDex":{"type":"string"},"token":{"type":"string"},"amount":{"type":"string"},"fromSubAccount":{"type":"string"},"nonce":{"type":"number"}},"required":["type","hyperliquidChain","signatureChainId","destination","sourceDex","destinationDex","token","amount","fromSubAccount","nonce"],"additionalProperties":false},"submitTo":{"type":"string"}},"required":["typedData","action","submitTo"],"additionalProperties":false},{"type":"string"}]},{"nullable":true,"enum":[null]}],"description":"Pre-built transaction to sign and broadcast, returned by every flow that creates the order on-chain instead of by signature: Harbor's memo deposit, and a 1inch native gas-asset sell (the `NativeOrderFactory.create` call, which deploys the order's proxy, wraps the attached value and approves the protocol in one transaction). EVM uses the `EVMTransaction` shape, BTC a base64-encoded PSBT string. Null for 1inch ERC-20 sells — sign `typedData` instead. EVM `value` encoding differs by provider: the 1inch native call is a hex quantity ready for `eth_sendTransaction`, while Harbor still returns a decimal string that must be converted first (passing a decimal through a `parseEther`-style helper scales it by 1e18). Routing metadata lives in `txMeta`. This is the funding instruction: sign and broadcast it as returned. It is not always a plain transfer (a Harbor EVM deposit, ERC-20 or ETH.ETH, is a `depositWithExpiry` call on Harbor's router), so do not rebuild it from the `deposit*` fields."},"txMeta":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"number"},"txType":{"type":"string","enum":["evm","psbt","solana","near","tron","ton","ripple","cardano","sui","starknet","stellar"]},"memo":{"description":"Required on chains that identify a deposit by memo (e.g. Stellar). The deposit MUST carry it or the funds cannot be attributed to the order.","type":"string"}},"required":["txType"],"additionalProperties":false},{"nullable":true,"enum":[null]}],"description":"Routing metadata for `tx` (target chainId, tx kind, and the memo encoded into the order)."},"isApproved":{"description":"Present only when the maker must grant an ERC-20 allowance before the order can be filled. `true` when they have already approved the provider's spender for at least `sellAmount`; `false` when an `approvalTx` is returned alongside it. OMITTED when there is no approval step at all: native gas-asset sells (the 1inch proxy approves the protocol itself, and a Harbor ETH.ETH deposit sends the value with the router call in `tx`) and non-EVM chains (Harbor BTC PSBT).","type":"boolean"},"approvalTx":{"description":"Pre-built ERC-20 approval tx. Populated only when `isApproved === false`; the integrator should broadcast it before signing/broadcasting the main order.","type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"value":{"type":"string"},"data":{"type":"string"},"gasLimit":{"type":"string"},"gasPrice":{"type":"string"}},"required":["to","from","value","data"],"additionalProperties":false},"depositAddress":{"description":"Deposit-flow providers only. Informational: the provider address the sell amount ends up at (Harbor's vault), surfaced so an integrator can display or verify it. It is NOT necessarily the `tx` recipient: on Harbor EVM, `tx` calls the router, which forwards to this vault with the memo, and a plain transfer straight to this address cannot be attributed to the order. Fund the order by broadcasting `tx`; if `tx` has gone stale, call /build again rather than constructing a transfer from these fields.","type":"string"},"depositAmount":{"description":"Deposit-flow providers only. Exact amount the order is funded with (the amount `tx` deposits), as a decimal string in the sell asset's own units. Sending more does not increase the order — the excess is refunded separately.","type":"string"},"depositMemo":{"description":"Deposit-flow providers only, and only on chains that require one (e.g. Stellar). The deposit MUST carry this memo or the funds cannot be attributed to the order; `tx` already encodes it.","type":"string"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["highSlippage","highPriceImpact","noSourceAddressToBuildTransaction","affiliateFeeTooSmallSoRemoved","unableToApplyReferralProgram","insufficientBalance","insufficientGas","unableToBuildTransaction","unableToEstimateGas","limitPriceBelowSpot","limitPriceWithinFeeGap","limitOrderNotionalTooSmall","outputBelowPublishedFloor","litecoinMwebNotSupported","refundAddressNotApplied","vaultSwapUnavailable"]},"display":{"type":"string"},"tooltip":{"type":"string"},"data":{"description":"Structured form of the figures embedded in `display`. Present only on `insufficientGas`; absent on every other warning code.","type":"object","properties":{"chain":{"type":"string","description":"Chain whose native gas asset is short, e.g. \"TRON\"."},"asset":{"type":"string","description":"Identifier of the gas asset, e.g. \"TRON.TRX\"."},"ticker":{"type":"string","description":"Ticker of the gas asset, e.g. \"TRX\"."},"estimatedFee":{"type":"string","description":"Estimated network fee, as a decimal string in the gas asset's own units. An estimate, not a quoted fee: on TRON it is what a node says this specific wallet would pay, and it drifts as staked energy/bandwidth regenerates. Good for display and for comparing against the balance; not a 'top up exactly this much' figure."},"balance":{"type":"string","description":"The source address' gas-asset balance as read while building this swap, as a decimal string in the gas asset's own units. Read at /swap time, not at quote time."}},"required":["chain","asset","ticker","estimatedFee","balance"],"additionalProperties":false}},"required":["code","display"],"additionalProperties":false}},"nextActions":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"url":{"type":"string"},"payload":{}},"required":["method","url"],"additionalProperties":false}}},"required":["orderId","orderHash","typedData","tx","txMeta","nextActions"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/v3/limit/submit":{"post":{"operationId":"submitLimitOrder","tags":["LimitOrder"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string"},"signature":{"type":"string","minLength":1},"depositTxHash":{"type":"string","minLength":1}},"required":["orderId"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string"},"orderHash":{"type":"string"},"status":{"type":"string","enum":["PENDING","SUBMITTED","OPEN","PARTIAL","FILLED","CANCELLED","EXPIRED","FAILED"]},"createdAt":{"type":"string"}},"required":["orderId","orderHash","status","createdAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"451":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"502":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/v3/limit/orders":{"get":{"operationId":"listLimitOrders","tags":["LimitOrder"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"sourceAddress","required":false,"description":"Maker address filter. EVM addresses are matched case-insensitively — checksummed and lowercase forms return the same orders. Non-EVM addresses (Solana/TRON base58, bech32) are matched exactly, since their casing is significant."},{"schema":{"type":"string"},"in":"query","name":"destinationAddress","required":false,"description":"Receiver address filter. Same casing rules as `sourceAddress`: case-insensitive for EVM, exact for non-EVM."},{"schema":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"in":"query","name":"sourceChain","required":false},{"schema":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"in":"query","name":"destinationChain","required":false},{"schema":{"default":"fullOuter","type":"string","enum":["fullOuter","inner"]},"in":"query","name":"joinType","required":false},{"schema":{"minItems":1,"type":"array","items":{"type":"string","enum":["PENDING","SUBMITTED","OPEN","PARTIAL","FILLED","CANCELLED","EXPIRED","FAILED"]}},"in":"query","name":"status","required":true,"description":"Status filter. When omitted: active orders only (PENDING, SUBMITTED, OPEN, PARTIAL) on a plain listing, but EVERY status when `updatedSince` is set, so a delta read sees orders reaching FILLED, CANCELLED, EXPIRED or FAILED."},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedSince","required":false,"description":"Incremental read: only orders whose `updatedAt` is at or after this ISO-8601 timestamp (inclusive). Switches the ordering to `updatedAt` ascending (oldest change first) instead of `createdAt` descending. `updatedAt` moves whenever the order itself changes (status, fill amounts, transaction hashes, cancellation and similar), never on a status check that found nothing new. To resume, pass the `updatedAt` of the last order you processed minus a few minutes of overlap, and de-duplicate on `orderId` + `updatedAt`: an update can become visible slightly after one stamped later."},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false,"description":"Opaque pagination cursor: pass back the `nextCursor` of the previous page, with the same `updatedSince` and filters. A cursor from a listing without `updatedSince` cannot be used with it, and vice versa. Timestamp cursors issued before this format are still accepted on listings without `updatedSince`."},{"schema":{"default":50,"type":"number","minimum":1,"maximum":100},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orders":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string"},"orderHash":{"type":"string"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"maker":{"type":"string"},"receiver":{"anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"sellAsset":{"type":"string"},"buyAsset":{"type":"string"},"sellAmount":{"type":"string"},"buyAmount":{"type":"string"},"limitPrice":{"type":"string"},"filledSellAmount":{"type":"string"},"filledBuyAmount":{"type":"string"},"status":{"type":"string","enum":["PENDING","SUBMITTED","OPEN","PARTIAL","FILLED","CANCELLED","EXPIRED","FAILED"]},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"depositHash":{"description":"L1 tx hash of the deposit. Populated by the provider sync once settled.","type":"string"},"withdrawHash":{"description":"L1 tx hash of the settlement withdraw. Populated by the provider sync once filled.","type":"string"},"txHashes":{"description":"Fill/cancel/settlement tx hashes, chronological. Populated by sync or backfill.","type":"array","items":{"type":"object","properties":{"txHash":{"type":"string"},"type":{"type":"string","enum":["fill","cancel","deposit","withdraw","refund"]},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"blockNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["txHash","type","chainId"],"additionalProperties":false}},"cancelRequestedAt":{"description":"ISO timestamp of an accepted cancel request that has not settled yet. Only providers whose cancel is asynchronous set this (NEAR): the order stays non-terminal while a matched slice can still settle, so `status` alone cannot distinguish 'cancel in flight' from 'cancel never happened'. Absent once the order reaches CANCELLED, and absent entirely for providers that cancel synchronously.","type":"string"},"usdValueOpen":{"description":"Sell-side notional in USD at build time (approximate, cached price).","anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"usdValueClose":{"description":"Realized buy-side notional in USD at terminal transition (approximate, cached price).","anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"failureReason":{"description":"Human-readable reason a terminal status was written by SwapKit rather than by the order's own lifecycle — e.g. the deposit transaction was never found on-chain. Absent on orders that resolved normally and on rows written before this field existed.","anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["orderId","orderHash","chainId","provider","maker","receiver","sellAsset","buyAsset","sellAmount","buyAmount","limitPrice","filledSellAmount","filledBuyAmount","status","fees","expiresAt","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"description":"Opaque cursor for the next page. Present whenever the page is full (`limit` orders), so the last page may be followed by an empty one; absent once a page comes back short.","type":"string"}},"required":["orders"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/v3/limit/orders/{orderId}":{"get":{"operationId":"getLimitOrder","tags":["LimitOrder"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"orderId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string"},"orderHash":{"type":"string"},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"maker":{"type":"string"},"receiver":{"anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"sellAsset":{"type":"string"},"buyAsset":{"type":"string"},"sellAmount":{"type":"string"},"buyAmount":{"type":"string"},"limitPrice":{"type":"string"},"filledSellAmount":{"type":"string"},"filledBuyAmount":{"type":"string"},"status":{"type":"string","enum":["PENDING","SUBMITTED","OPEN","PARTIAL","FILLED","CANCELLED","EXPIRED","FAILED"]},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["liquidity","network","inbound","outbound","affiliate","service","tax","priority"]},"amount":{"type":"string"},"amountBps":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"protocol":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]}},"required":["type","amount","asset","chain","protocol"],"additionalProperties":false}},"depositHash":{"description":"L1 tx hash of the deposit. Populated by the provider sync once settled.","type":"string"},"withdrawHash":{"description":"L1 tx hash of the settlement withdraw. Populated by the provider sync once filled.","type":"string"},"txHashes":{"description":"Fill/cancel/settlement tx hashes, chronological. Populated by sync or backfill.","type":"array","items":{"type":"object","properties":{"txHash":{"type":"string"},"type":{"type":"string","enum":["fill","cancel","deposit","withdraw","refund"]},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"blockNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["txHash","type","chainId"],"additionalProperties":false}},"cancelRequestedAt":{"description":"ISO timestamp of an accepted cancel request that has not settled yet. Only providers whose cancel is asynchronous set this (NEAR): the order stays non-terminal while a matched slice can still settle, so `status` alone cannot distinguish 'cancel in flight' from 'cancel never happened'. Absent once the order reaches CANCELLED, and absent entirely for providers that cancel synchronously.","type":"string"},"usdValueOpen":{"description":"Sell-side notional in USD at build time (approximate, cached price).","anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"usdValueClose":{"description":"Realized buy-side notional in USD at terminal transition (approximate, cached price).","anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"failureReason":{"description":"Human-readable reason a terminal status was written by SwapKit rather than by the order's own lifecycle — e.g. the deposit transaction was never found on-chain. Absent on orders that resolved normally and on rows written before this field existed.","anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["orderId","orderHash","chainId","provider","maker","receiver","sellAsset","buyAsset","sellAmount","buyAmount","limitPrice","filledSellAmount","filledBuyAmount","status","fees","expiresAt","createdAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/v3/limit/tokens":{"get":{"operationId":"getLimitOrderTokens","tags":["LimitOrder"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"singleChain":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]},"assets":{"type":"array","items":{"type":"string"},"description":"SwapKit asset identifiers; any two on this chain form a valid pair."}},"required":["provider","chainId","assets"],"additionalProperties":false}},"crossChain":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["CHAINFLIP","CHAINFLIP_STREAMING","MAYACHAIN","MAYACHAIN_STREAMING","ONEINCH","PANCAKESWAP","SUSHISWAP_V2","THORCHAIN","THORCHAIN_STREAMING","TRADERJOE_V2","UNISWAP_V2","UNISWAP_V3","JUPITER","OKX","NEAR","GARDEN","HARBOR","FLASHNET","MAYAN","RELAY","PACTSWAP","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"chainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","5042","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","ton","728126428","130","196","zcash"]}},"assets":{"type":"array","items":{"type":"string"},"description":"SwapKit asset identifiers; any two form a valid cross-chain pair."}},"required":["provider","chainIds","assets"],"additionalProperties":false}}},"required":["singleChain","crossChain"],"additionalProperties":false}}}}}}},"/v3/limit/cancel/build":{"post":{"operationId":"buildLimitOrderCancel","tags":["LimitOrder"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orderId"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cancelTx":{"anyOf":[{"type":"object","properties":{"to":{"type":"string","description":"Contract to call. For a 1inch native order this is the order's own proxy, NOT the LOP router: the router cancels by `msg.sender` and the proxy is the maker, so a router call would succeed while cancelling nothing."},"from":{"type":"string","description":"Address that must send this transaction. The cancel authorises on `msg.sender`, so sending from any other account reverts."},"data":{"type":"string","description":"Call data."},"value":{"type":"string","description":"Hex quantity (e.g. \"0x0\"), ready for `eth_sendTransaction`. NOT a decimal string — a decimal is rejected by wallets, and one passed through a `parseEther`-style helper is scaled by 1e18."},"chainId":{"type":"number","description":"METADATA, not a transaction field: the chain this must be sent on, as a decimal number. Switch the wallet's network with it — passing it inside the `eth_sendTransaction` params object is rejected."}},"required":["to","from","data","value","chainId"],"additionalProperties":false},{"nullable":true,"enum":[null]}],"description":"EVM cancel transaction (1inch flow). Null for Harbor and NEAR — sign `typedData` or `messageToSign` instead. Pass `to`/`from`/`value`/`data` straight to `eth_sendTransaction`; `chainId` is metadata and must be left out of that call."},"typedData":{"anyOf":[{"type":"object","properties":{"domain":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"}},"required":["name","version"],"additionalProperties":false},"primaryType":{"type":"string","enum":["CancelAndWithdraw"]},"types":{"type":"object","properties":{"EIP712Domain":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"CancelAndWithdraw":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"CancelAndWithdrawPayload":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}}},"required":["EIP712Domain","CancelAndWithdraw","CancelAndWithdrawPayload"],"additionalProperties":false},"message":{"type":"object","properties":{"action":{"type":"string","enum":["cancel_and_withdraw"]},"chain":{"type":"string"},"l1Address":{"type":"string"},"nonce":{"type":"number"},"expiry":{"type":"number"},"payload":{"type":"object","properties":{"orderId":{"type":"string"}},"required":["orderId"],"additionalProperties":false}},"required":["action","chain","l1Address","nonce","expiry","payload"],"additionalProperties":false}},"required":["domain","primaryType","types","message"],"additionalProperties":false},{"nullable":true,"enum":[null]}]},"btcSignaturePreimage":{"anyOf":[{"type":"string"},{"nullable":true,"enum":[null]}]},"messageToSign":{"anyOf":[{"type":"object","properties":{"scheme":{"type":"string","enum":["bip137","tip191","ed25519"],"description":"`bip137`: sign with the sell chain's 'sign message' (BTC, LTC, DOGE, BCH, DASH) and post the base64 signature. `tip191`: Tron `signMessageV2`, post the 0x hex. `ed25519`: Solana `signMessage` over the UTF-8 bytes, post the base58 signature."},"message":{"type":"string","description":"Sign these exact bytes (UTF-8). Canonical JSON — never parse and re-serialise it, or the signature will not verify."}},"required":["scheme","message"],"additionalProperties":false,"description":"Message the maker's (non-EVM) wallet signs to authorise the cancel. Null where the cancel needs no maker signature."},{"nullable":true,"enum":[null]}]},"nextActions":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"url":{"type":"string"},"payload":{}},"required":["method","url"],"additionalProperties":false}}},"required":["orderId","cancelTx","typedData","btcSignaturePreimage","messageToSign","nextActions"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"502":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}},"/v3/limit/cancel/submit":{"post":{"operationId":"submitLimitOrderCancel","tags":["LimitOrder"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txHash":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"signature":{"type":"string","minLength":1}},"required":["orderId"]}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["PENDING","SUBMITTED","OPEN","PARTIAL","FILLED","CANCELLED","EXPIRED","FAILED"]},"txHash":{"type":"string"},"withdrawId":{"type":"string"},"cancelRequestedAt":{"type":"string"}},"required":["orderId","status"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}},"502":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"string"},"data":{}},"required":["message","error"],"additionalProperties":false}}}}}}}},"servers":[{"url":"https://api.swapkit.dev"},{"url":"https://dev-api.swapkit.dev"},{"url":"http://localhost:8080"}],"security":[{"apiKey":[]}],"externalDocs":{"url":"https://docs.swapkit.dev","description":"SwapKit Documentation"}}