{"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"],"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"},"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."},"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","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","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","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","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","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","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","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","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"]},"display":{"type":"string"},"tooltip":{"type":"string"}},"required":["code","display"],"additionalProperties":false}},"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"]},"txHint":{"type":"string","enum":["simpleTransfer","transferWithMemo","contractCall"]},"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"},"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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":"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"},"sendMode":{"description":"Optional @ton/ton SendMode bitmask. Set to 130 (CARRY_ALL_REMAINING_BALANCE | IGNORE_ERRORS) on sweeps so the wallet sends balance − fees instead of the literal amount.","type":"number"}},"required":["address","amount"],"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 or FLEX_INPUT). 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},"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/FLASHNET/GARDEN: the provider's own real deadline. CHAINFLIP: channel creation time + 24h (Chainflip's documented fixed channel lifetime).","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":"string"}},"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":{"type":"number"},"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","internalServerError","test_error","blockHeaderNotFound","blockHashNotFoundAtHeight","blackListAsset","txHashMissing","invalidAsset","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","blockNotFound","balanceNotFound","blockbookCallFailed","configError","unsafeTestDatabase","synthSwapDisallowed","noQuoteResponse","noPoolAssetsFound","noThorchainPools","noMayachainPools","noThorchainNetworkInfo","invalidAffiliateFee","invalidBuyAssetAddress","invalidSellAssetAddress","invalidSourceAddress","invalidDestinationAddress","invalidParam","xrpAddressRequiresTag","invalidChainId","invalidChain","unsupportedChainId","unsupportedEVMChainId","unsupportedMethod","unsupportedProvider","unsupportedProgram","unsupportedEvent","invalidParamsForMethod","noWhitelistTokens","failedFetchGasPrice","chainflipBrokerApiUnavailable","failedToBuildVaultSwapTransaction","failedToOpenBtcPrivateChannel","failedToCloseBtcPrivateChannel","affiliateNotRegistered","failedToCreateDepositChannel","failedToRegisterAccount","failedToRegisterAffiliate","failedToWithdrawAffiliate","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","quoteNotFound","providerResponseFormError","ledgerWrongPayload","failedToFetchTx","failedBuildTransactionDetails","failedToCreateRouteMetadata","txBuildingTimeout","noLegsForRoute","insufficientBalance","insufficientAllowance","insufficientGas","unableToBuildTransaction","noRouterAddressFound","noAggregatorAddressFound","noContractInstanceFound","noContractAddressFound","invalidAffiliate","invalidAffiliateName","thornameNotFound","thornameAffiliate","No provider found","providerAssetNotFound","No Record found","Slippage too low","tradingHalted","mayanameNotFound","noWrappedGasAsset","aggregatorAddressNotFound","routerAddressNotFound","dummyAddressNotFound","trackerError","thorchainPoolUnavailable","noTradingPairs","missingState","ledgerSwapNotFound","ledgerSwapNotReadyForTracking","ledgerInvalidParsingMode","ledgerWebhookNotifyFailed","errorEstimatingGas","apiKeyInvalid","apiKeyFailedToUpdate","apiKeySignatureExists","apiKeySignatureKeyTypeMismatch","apiKeyExpired","unauthorized","failedToCreateMemo","invalidAddressForChain","invalidAddress","riskyAddress","noRoutesToProcess","sellAssetAmountTooSmall","sellAssetAmountTooLarge","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","quoteExpired","swapQuoteNotFound","swapRouteNotFound","swapTransactionFailed","swapChainflipMetaMissing","swapChainflipChannelFailed","swapTransferTxFailed","chainflipVaultSwapNotSupported","chainflipVaultSwapEncodingFailed","chainflipVaultSwapInvalidChain","chainflipVaultSwapBitcoinCCMNotSupported","chainflipVaultSwapTransactionBuildFailed","zcashInvalidAddress","zcashInsufficientUTXOs","zcashUTXOSelectionFailed","zcashTransactionBuildFailed","zcashShieldedRefundMissing","zcashMemoTooLong","zcashUnifiedAddressUnsupported","zcashShieldedMemoUnavailable","invalidTokenProgram","invalidRequest","pubsubEventNotRegistered","pubsubTopicNotFound","pubsubEnvelopeParsingError","invalidSpender","outputAmountDeviationTooHigh","swapSizeExceeded","v2EndpointNotAllowed","externalServiceFailed","tenantEncryptKeyNotFound","tenantKeyPairEncryptionError","slip24AmountOverflow","slip24InvalidSignature","slip24DigestComputationFailed","invalidTxHashFormat","affiliateNotFound","nearAffiliateProviderAssetNotFound","nearAffiliateDepositAddressFailed","flashnetAffiliateRegistrationFailed","flashnetAffiliateClaimFailed","flashnetAffiliateNotFound","limitOrderUnsupportedChain","limitOrderQuoteNotFound","limitOrderRouteNotFound","limitOrderNotFound","limitOrderInvalidState","limitOrderBuildFailed","limitOrderSubmissionFailed","limitOrderCancelFailed","limitOrderExpirationOutOfBounds","limitOrderUnsupportedFillFlags","limitOrderAmountAmbiguous","limitOrderChainMismatch","limitOrderUnsupportedPair","limitOrderActionUnavailable","limitOrderProviderError"]},"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","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}}}},"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"],"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"},"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 is currently supported by Flashnet only. 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."},"buyAmount":{"type":"string","description":"Amount of asset to buy. Required when quoteType is EXACT_OUTPUT, and rejected otherwise."}},"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","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","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","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","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","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","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","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","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"]},"display":{"type":"string"},"tooltip":{"type":"string"}},"required":["code","display"],"additionalProperties":false}},"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 or FLEX_INPUT). 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","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"errorCode":{"type":"string","enum":["noRpcFallbacks","requestTimeout","invalidApiVersion","isSanctionedAddress","unknownError","internalServerError","test_error","blockHeaderNotFound","blockHashNotFoundAtHeight","blackListAsset","txHashMissing","invalidAsset","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","blockNotFound","balanceNotFound","blockbookCallFailed","configError","unsafeTestDatabase","synthSwapDisallowed","noQuoteResponse","noPoolAssetsFound","noThorchainPools","noMayachainPools","noThorchainNetworkInfo","invalidAffiliateFee","invalidBuyAssetAddress","invalidSellAssetAddress","invalidSourceAddress","invalidDestinationAddress","invalidParam","xrpAddressRequiresTag","invalidChainId","invalidChain","unsupportedChainId","unsupportedEVMChainId","unsupportedMethod","unsupportedProvider","unsupportedProgram","unsupportedEvent","invalidParamsForMethod","noWhitelistTokens","failedFetchGasPrice","chainflipBrokerApiUnavailable","failedToBuildVaultSwapTransaction","failedToOpenBtcPrivateChannel","failedToCloseBtcPrivateChannel","affiliateNotRegistered","failedToCreateDepositChannel","failedToRegisterAccount","failedToRegisterAffiliate","failedToWithdrawAffiliate","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","quoteNotFound","providerResponseFormError","ledgerWrongPayload","failedToFetchTx","failedBuildTransactionDetails","failedToCreateRouteMetadata","txBuildingTimeout","noLegsForRoute","insufficientBalance","insufficientAllowance","insufficientGas","unableToBuildTransaction","noRouterAddressFound","noAggregatorAddressFound","noContractInstanceFound","noContractAddressFound","invalidAffiliate","invalidAffiliateName","thornameNotFound","thornameAffiliate","No provider found","providerAssetNotFound","No Record found","Slippage too low","tradingHalted","mayanameNotFound","noWrappedGasAsset","aggregatorAddressNotFound","routerAddressNotFound","dummyAddressNotFound","trackerError","thorchainPoolUnavailable","noTradingPairs","missingState","ledgerSwapNotFound","ledgerSwapNotReadyForTracking","ledgerInvalidParsingMode","ledgerWebhookNotifyFailed","errorEstimatingGas","apiKeyInvalid","apiKeyFailedToUpdate","apiKeySignatureExists","apiKeySignatureKeyTypeMismatch","apiKeyExpired","unauthorized","failedToCreateMemo","invalidAddressForChain","invalidAddress","riskyAddress","noRoutesToProcess","sellAssetAmountTooSmall","sellAssetAmountTooLarge","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","quoteExpired","swapQuoteNotFound","swapRouteNotFound","swapTransactionFailed","swapChainflipMetaMissing","swapChainflipChannelFailed","swapTransferTxFailed","chainflipVaultSwapNotSupported","chainflipVaultSwapEncodingFailed","chainflipVaultSwapInvalidChain","chainflipVaultSwapBitcoinCCMNotSupported","chainflipVaultSwapTransactionBuildFailed","zcashInvalidAddress","zcashInsufficientUTXOs","zcashUTXOSelectionFailed","zcashTransactionBuildFailed","zcashShieldedRefundMissing","zcashMemoTooLong","zcashUnifiedAddressUnsupported","zcashShieldedMemoUnavailable","invalidTokenProgram","invalidRequest","pubsubEventNotRegistered","pubsubTopicNotFound","pubsubEnvelopeParsingError","invalidSpender","outputAmountDeviationTooHigh","swapSizeExceeded","v2EndpointNotAllowed","externalServiceFailed","tenantEncryptKeyNotFound","tenantKeyPairEncryptionError","slip24AmountOverflow","slip24InvalidSignature","slip24DigestComputationFailed","invalidTxHashFormat","affiliateNotFound","nearAffiliateProviderAssetNotFound","nearAffiliateDepositAddressFailed","flashnetAffiliateRegistrationFailed","flashnetAffiliateClaimFailed","flashnetAffiliateNotFound","limitOrderUnsupportedChain","limitOrderQuoteNotFound","limitOrderRouteNotFound","limitOrderNotFound","limitOrderInvalidState","limitOrderBuildFailed","limitOrderSubmissionFailed","limitOrderCancelFailed","limitOrderExpirationOutOfBounds","limitOrderUnsupportedFillFlags","limitOrderAmountAmbiguous","limitOrderChainMismatch","limitOrderUnsupportedPair","limitOrderActionUnavailable","limitOrderProviderError"]},"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}}}},"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"],"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 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"},"destinationAddress":{"type":"string","description":"Recipient address to send asset to"},"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":"Whether to override slippage validation on quote refresh"},"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":"UTXO chains only. Set to true to embed the full previous transaction (nonWitnessUtxo) for each input in the returned PSBT. Required by legacy signers such as the Ledger Litecoin app."}},"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","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","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","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","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","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","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","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","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"]},"display":{"type":"string"},"tooltip":{"type":"string"}},"required":["code","display"],"additionalProperties":false}},"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"]},"txHint":{"type":"string","enum":["simpleTransfer","transferWithMemo","contractCall"]},"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"},"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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":"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"},"sendMode":{"description":"Optional @ton/ton SendMode bitmask. Set to 130 (CARRY_ALL_REMAINING_BALANCE | IGNORE_ERRORS) on sweeps so the wallet sends balance − fees instead of the literal amount.","type":"number"}},"required":["address","amount"],"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 or FLEX_INPUT). 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},"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/FLASHNET/GARDEN: the provider's own real deadline. CHAINFLIP: channel creation time + 24h (Chainflip's documented fixed channel lifetime).","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":"string"}},"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":{"type":"number"},"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."}},"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 if ERC-20 approval is required before swap","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}},"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}}}},"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","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"}],"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","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},{"type":"string","enum":["SWAPKIT"]}]},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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"}},"required":["chainId","ticker","identifier","decimals"],"additionalProperties":false}},"logoURI":{"type":"string"},"url":{"type":"string"},"enabledChainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},{"type":"string","enum":["SWAPKIT"]}]},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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"}},"required":["chainId","ticker","identifier","decimals"],"additionalProperties":false}},"logoURI":{"type":"string"},"url":{"type":"string"},"enabledChainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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","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}],"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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"},"chain":{"type":"string","enum":["ADI","ALEO","APT","ARB","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","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","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","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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"}},"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","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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"}},"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","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"supportedChainsGlobal":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","ton","728126428","130","196","zcash"]}},"enabledChainsGlobal":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","ton","728126428","130","196","zcash"]}},"disabledChainsGlobal":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","ton","728126428","130","196","zcash"]}},"enabledChainsApiKey":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","ton","728126428","130","196","zcash"]}},"disabledChainsApiKey":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","ton","728126428","130","196","zcash"]},"in":"query","name":"chainId","required":false,"description":"Chain id, if omitted return gas for all chains"},{"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","ton","728126428","130","196","zcash"]},"in":"query","name":"chainId","required":false,"description":"Chain id, if omitted return gas for all chains"},{"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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"}}}}}},"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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"},"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","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","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"}},"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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"},"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","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","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"}},"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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"},"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","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","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"}},"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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"},"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","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","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"}},"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}}}},"500":{"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","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","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}}}}},"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"]},"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":{"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","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","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, accounting for the protocol's resolver fee AND the integrator fee that come off the taker side. Computed as spotPrice × (1 + (takerFeeBps + integratorFeeBps) / 10_000). 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 the `liquidity + outbound` portion of the quote. Does NOT include the integrator fee — that's reported separately as `integratorFeeBps`; the full gap between `spotPrice` and `effectiveFillPrice` is `takerFeeBps + integratorFeeBps`."},"minExpirationSeconds":{"type":"number"},"maxExpirationSeconds":{"type":"number"},"integratorFeeBps":{"type":"number","description":"Effective integrator fee in bps that will be encoded into the order's FeeTakerExtension at build time. 0 when the API key has no EVM affiliate configured."},"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","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"]},"display":{"type":"string"},"tooltip":{"type":"string"}},"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","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"errorCode":{"type":"string","enum":["noRpcFallbacks","requestTimeout","invalidApiVersion","isSanctionedAddress","unknownError","internalServerError","test_error","blockHeaderNotFound","blockHashNotFoundAtHeight","blackListAsset","txHashMissing","invalidAsset","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","blockNotFound","balanceNotFound","blockbookCallFailed","configError","unsafeTestDatabase","synthSwapDisallowed","noQuoteResponse","noPoolAssetsFound","noThorchainPools","noMayachainPools","noThorchainNetworkInfo","invalidAffiliateFee","invalidBuyAssetAddress","invalidSellAssetAddress","invalidSourceAddress","invalidDestinationAddress","invalidParam","xrpAddressRequiresTag","invalidChainId","invalidChain","unsupportedChainId","unsupportedEVMChainId","unsupportedMethod","unsupportedProvider","unsupportedProgram","unsupportedEvent","invalidParamsForMethod","noWhitelistTokens","failedFetchGasPrice","chainflipBrokerApiUnavailable","failedToBuildVaultSwapTransaction","failedToOpenBtcPrivateChannel","failedToCloseBtcPrivateChannel","affiliateNotRegistered","failedToCreateDepositChannel","failedToRegisterAccount","failedToRegisterAffiliate","failedToWithdrawAffiliate","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","quoteNotFound","providerResponseFormError","ledgerWrongPayload","failedToFetchTx","failedBuildTransactionDetails","failedToCreateRouteMetadata","txBuildingTimeout","noLegsForRoute","insufficientBalance","insufficientAllowance","insufficientGas","unableToBuildTransaction","noRouterAddressFound","noAggregatorAddressFound","noContractInstanceFound","noContractAddressFound","invalidAffiliate","invalidAffiliateName","thornameNotFound","thornameAffiliate","No provider found","providerAssetNotFound","No Record found","Slippage too low","tradingHalted","mayanameNotFound","noWrappedGasAsset","aggregatorAddressNotFound","routerAddressNotFound","dummyAddressNotFound","trackerError","thorchainPoolUnavailable","noTradingPairs","missingState","ledgerSwapNotFound","ledgerSwapNotReadyForTracking","ledgerInvalidParsingMode","ledgerWebhookNotifyFailed","errorEstimatingGas","apiKeyInvalid","apiKeyFailedToUpdate","apiKeySignatureExists","apiKeySignatureKeyTypeMismatch","apiKeyExpired","unauthorized","failedToCreateMemo","invalidAddressForChain","invalidAddress","riskyAddress","noRoutesToProcess","sellAssetAmountTooSmall","sellAssetAmountTooLarge","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","quoteExpired","swapQuoteNotFound","swapRouteNotFound","swapTransactionFailed","swapChainflipMetaMissing","swapChainflipChannelFailed","swapTransferTxFailed","chainflipVaultSwapNotSupported","chainflipVaultSwapEncodingFailed","chainflipVaultSwapInvalidChain","chainflipVaultSwapBitcoinCCMNotSupported","chainflipVaultSwapTransactionBuildFailed","zcashInvalidAddress","zcashInsufficientUTXOs","zcashUTXOSelectionFailed","zcashTransactionBuildFailed","zcashShieldedRefundMissing","zcashMemoTooLong","zcashUnifiedAddressUnsupported","zcashShieldedMemoUnavailable","invalidTokenProgram","invalidRequest","pubsubEventNotRegistered","pubsubTopicNotFound","pubsubEnvelopeParsingError","invalidSpender","outputAmountDeviationTooHigh","swapSizeExceeded","v2EndpointNotAllowed","externalServiceFailed","tenantEncryptKeyNotFound","tenantKeyPairEncryptionError","slip24AmountOverflow","slip24InvalidSignature","slip24DigestComputationFailed","invalidTxHashFormat","affiliateNotFound","nearAffiliateProviderAssetNotFound","nearAffiliateDepositAddressFailed","flashnetAffiliateRegistrationFailed","flashnetAffiliateClaimFailed","flashnetAffiliateNotFound","limitOrderUnsupportedChain","limitOrderQuoteNotFound","limitOrderRouteNotFound","limitOrderNotFound","limitOrderInvalidState","limitOrderBuildFailed","limitOrderSubmissionFailed","limitOrderCancelFailed","limitOrderExpirationOutOfBounds","limitOrderUnsupportedFillFlags","limitOrderAmountAmbiguous","limitOrderChainMismatch","limitOrderUnsupportedPair","limitOrderActionUnavailable","limitOrderProviderError"]},"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"},"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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":"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"},"sendMode":{"description":"Optional @ton/ton SendMode bitmask. Set to 130 (CARRY_ALL_REMAINING_BALANCE | IGNORE_ERRORS) on sweeps so the wallet sends balance − fees instead of the literal amount.","type":"number"}},"required":["address","amount"],"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 L1 deposit tx to sign and broadcast (Harbor memo flow). For EVM this is the `EVMTransaction` shape; for BTC it's a base64-encoded PSBT string. Null for signature-relay providers like 1inch — use `typedData` instead."},"txMeta":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"number"},"txType":{"type":"string","enum":["evm","psbt"]},"memo":{"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 provider's flow requires an ERC-20 allowance. `true` when the maker has already approved the provider's spender for at least `sellAmount`; `false` when an `approvalTx` is returned. OMITTED entirely for signature-only orders (1inch EVM permit), native-asset deposits, and non-EVM chains — the integrator has no approval step to perform.","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},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["highSlippage","highPriceImpact","noSourceAddressToBuildTransaction","affiliateFeeTooSmallSoRemoved","unableToApplyReferralProgram","insufficientBalance","insufficientGas","unableToBuildTransaction","unableToEstimateGas","limitPriceBelowSpot","limitPriceWithinFeeGap"]},"display":{"type":"string"},"tooltip":{"type":"string"}},"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}}}},"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","ton","728126428","130","196","zcash"]},"in":"query","name":"sourceChain","required":false},{"schema":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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":{"default":["PENDING","SUBMITTED","OPEN","PARTIAL"],"minItems":1,"type":"array","items":{"type":"string","enum":["PENDING","SUBMITTED","OPEN","PARTIAL","FILLED","CANCELLED","EXPIRED","FAILED"]}},"in":"query","name":"status","required":true},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","ton","728126428","130","196","zcash"]},"blockNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["txHash","type","chainId"],"additionalProperties":false}},"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]}]},"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":{"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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","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","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","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","ton","728126428","130","196","zcash"]},"blockNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["txHash","type","chainId"],"additionalProperties":false}},"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]}]},"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","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"chainId":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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","PANGOLIN_V1","CAVIAR_V1","OPENOCEAN_V2","OCISWAP_V1","CAMELOT_V3"]},"chainIds":{"type":"array","items":{"type":"string","enum":["36900","aleo","aptos","42161","1313161554","43114","8453","80094","56","bitcoin","bitcoincash","3637","cardano","chainflip","1116","21000000","cosmoshub-4","25","dash","dogecoin","1","100","harbor-1","harbor-stagenet-1","999","hype","kaiyo-1","litecoin","59144","mayachain-mainnet-v1","mayachain-stagenet-v1","4326","143","near","noble-1","10","9745","polkadot","137","radix-mainnet","ripple","4663","solana","146","spark","stellar","0x534e5f4d41494e","sui","thorchain-1","thorchain-stagenet-v2","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"},"data":{"type":"string"},"value":{"type":"string"},"chainId":{"type":"number"}},"required":["to","data","value","chainId"],"additionalProperties":false},{"nullable":true,"enum":[null]}]},"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]}]},"nextActions":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"url":{"type":"string"},"payload":{}},"required":["method","url"],"additionalProperties":false}}},"required":["orderId","cancelTx","typedData","btcSignaturePreimage","nextActions"],"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}}}}}}},"/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"}},"required":["orderId","status"],"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}}}}}}}},"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"}}