{"openapi":"3.0.0","paths":{"/swaps/tokens":{"get":{"operationId":"SwapsController_getTokens","parameters":[],"responses":{"200":{"description":"Map of SpokeChainKey → array of XToken descriptors","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/XTokenResponseDto"}}}}}}},"summary":"List all supported swap tokens grouped by SpokeChainKey","tags":["Swaps"]}},"/swaps/tokens/{chainKey}":{"get":{"operationId":"SwapsController_getTokensByChain","parameters":[{"name":"chainKey","required":true,"in":"path","description":"SODAX SpokeChainKey (e.g. `0xa4b1.arbitrum`, `0x89.polygon`, `solana`, `stellar`)","schema":{"example":"0xa4b1.arbitrum","type":"string"}}],"responses":{"200":{"description":"Supported tokens for the chain","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/XTokenResponseDto"}}}}},"400":{"description":"Unknown or invalid chain key"}},"summary":"List supported swap tokens for a single SpokeChainKey","tags":["Swaps"]}},"/swaps/quote":{"post":{"description":"Calls the solver for an exact-input quote and returns the quoted output amount. Token, chain, and address fields describe the same swap path as `POST /swaps/intents` (property names differ — see the EVM example).\n\nPass `?includeTxData=true` to also build an unsigned create-intent transaction using the quoted amount as `minOutputAmount`; `srcAddress` and `dstAddress` are required in that case (otherwise they are ignored and may be omitted). The optional `txData` field has the same shape as `POST /swaps/intents` (`{ tx, intent, relayData }`).\n\n`quotedAmount` and any bigint-derived intent fields in the response are serialized as decimal strings.","operationId":"SwapsController_getQuote","parameters":[{"name":"includeTxData","required":false,"in":"query","description":"When true, also build and return `{ tx, intent, relayData }` (same shape as `POST /swaps/intents`). Accepts `true`, `false`, or `1`.","schema":{"default":false,"example":false,"type":"boolean"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequestDto"},"examples":{"plainQuote":{"summary":"Plain price quote (srcAddress / dstAddress not required)","value":{"tokenSrc":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","tokenSrcChainKey":"0xa4b1.arbitrum","tokenDst":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","tokenDstChainKey":"0x89.polygon","amount":"1000000","quoteType":"exact_input"}},"evmArbitrumToPolygon":{"summary":"EVM → EVM with tx data (includeTxData=true — addresses required)","value":{"tokenSrc":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","tokenSrcChainKey":"0xa4b1.arbitrum","tokenDst":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","tokenDstChainKey":"0x89.polygon","amount":"1000000","quoteType":"exact_input","srcAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","dstAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"}},"withPartnerFee":{"summary":"Plain quote with a per-request partner fee (amount-based)","value":{"tokenSrc":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","tokenSrcChainKey":"0xa4b1.arbitrum","tokenDst":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","tokenDstChainKey":"0x89.polygon","amount":"1000000","quoteType":"exact_input","partnerFee":{"address":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","amount":"1000"}}},"withDeliveryHook":{"summary":"Quote + hooked tx build (includeTxData=true — hook is ignored on a bare quote). Output is deposited into the Flint RWA vault for `dstAddress` instead of transferred to it.","value":{"tokenSrc":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","tokenSrcChainKey":"0xa4b1.arbitrum","tokenDst":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","tokenDstChainKey":"ethereum","amount":"1000000","quoteType":"exact_input","srcAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","dstAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","hook":{"kind":"flintDeposit"}}}}}}},"responses":{"200":{"description":"Solver quote. `quotedAmount` is a decimal string (bigint serialized). When `includeTxData=true`, `txData` matches `POST /swaps/intents`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteResponseDto"}}}},"400":{"description":"Validation error in the request body or query"},"502":{"description":"Solver API error"}},"summary":"Get a solver quote for a cross-chain swap","tags":["Swaps"]}},"/swaps/deadline":{"get":{"description":"Reads the Sonic hub timestamp and adds `offsetSeconds`. Use this to set the `deadline` field on `POST /swaps/intents`. Default offset is 300 seconds.","operationId":"SwapsController_getDeadline","parameters":[{"name":"offsetSeconds","required":false,"in":"query","description":"Offset in seconds added to the hub timestamp. Defaults to 300 seconds (5 minutes).","schema":{"minimum":1,"default":300,"example":300,"type":"number"}}],"responses":{"200":{"description":"Deadline expressed as a unix-seconds decimal string","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeadlineResponseDto"}}}},"502":{"description":"Hub RPC error"}},"summary":"Compute a swap deadline (hub timestamp + offset)","tags":["Swaps"]}},"/swaps/allowance/check":{"post":{"description":"Read-only on-chain query. Returns `{ valid: false }` if approval is needed first.","operationId":"SwapsController_checkAllowance","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntentParamsDto"}}}},"responses":{"200":{"description":"Allowance check result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowanceCheckResponseDto"}}}},"400":{"description":"Validation error in the request body"},"502":{"description":"Upstream RPC error"}},"summary":"Check whether the source token allowance is already sufficient for the intent","tags":["Swaps"]}},"/swaps/approve":{"post":{"description":"Returns an unsigned transaction (chain-specific shape). The caller signs it locally, broadcasts on the source chain, and waits for confirmation before submitting the swap intent.","operationId":"SwapsController_approve","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntentParamsDto"}}}},"responses":{"200":{"description":"Unsigned approve tx","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveResponseDto"}}}},"400":{"description":"Validation error in the request body"},"502":{"description":"Upstream chain error"}},"summary":"Build an unsigned token-approval transaction for the source token","tags":["Swaps"]}},"/swaps/intents":{"post":{"description":"Returns `{ tx, intent, relayData }`. The caller signs and broadcasts `tx` on the source chain, then submits the resulting tx hash to `POST /swaps/intents/submit` along with the `relayData`.","operationId":"SwapsController_createIntent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntentParamsDto"},"examples":{"plain":{"summary":"EVM → EVM create intent (no partner fee)","value":{"srcChainKey":"0xa4b1.arbitrum","dstChainKey":"0x89.polygon","inputToken":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","outputToken":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","inputAmount":"1000000","minOutputAmount":"475117283","deadline":"1768400000","allowPartialFill":false,"srcAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","dstAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"}},"withPartnerFee":{"summary":"With a per-request partner fee (percentage-based, basis points)","value":{"srcChainKey":"0xa4b1.arbitrum","dstChainKey":"0x89.polygon","inputToken":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","outputToken":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","inputAmount":"1000000","minOutputAmount":"475117283","deadline":"1768400000","allowPartialFill":false,"srcAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","dstAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","partnerFee":{"address":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","percentage":50}}},"withDeliveryHook":{"summary":"With a delivery hook — the USDC output is deposited into the Flint RWA vault for `dstAddress` instead of transferred to it","value":{"srcChainKey":"0xa4b1.arbitrum","dstChainKey":"ethereum","inputToken":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","outputToken":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","inputAmount":"1000000","minOutputAmount":"995000","deadline":"1768400000","allowPartialFill":false,"srcAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","dstAddress":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","hook":{"kind":"flintDeposit"}}}}}}},"responses":{"200":{"description":"Unsigned intent tx + relay payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntentResponseDto"}}}},"400":{"description":"Validation error in the request body"},"422":{"description":"Intent creation failed (validation passed but build rejected)"}},"summary":"Build an unsigned create-intent transaction","tags":["Swaps"]}},"/swaps/intents/submit":{"post":{"description":"Call this after the caller has signed and broadcast the create-intent tx returned by `POST /swaps/intents`. The relay forwards the packet to the Sonic hub for solver execution.","operationId":"SwapsController_submitIntent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitIntentRequestDto"}}}},"responses":{"200":{"description":"Relay submission result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitIntentResponseDto"}}}},"400":{"description":"Validation error in the request body"},"502":{"description":"Relay submission failed"},"504":{"description":"Relay timed out before packet arrived on the hub"}},"summary":"Submit the broadcast intent tx to the relay","tags":["Swaps"]}},"/swaps/intents/status":{"post":{"description":"Returns the solver status: -1 NOT_FOUND, 1 NOT_STARTED_YET, 2 STARTED_NOT_FINISHED, 3 SOLVED (terminal), 4 FAILED (terminal). When status === 3, `fillTxHash` is populated.","operationId":"SwapsController_getStatus","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusRequestDto"}}}},"responses":{"200":{"description":"Solver status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponseDto"}}}},"400":{"description":"Validation error in the request body"},"502":{"description":"Solver API error"}},"summary":"Poll the solver for intent execution status","tags":["Swaps"]}},"/swaps/intents/cancel":{"post":{"description":"Returns an unsigned cancel tx (chain-specific). Caller signs and broadcasts on the source spoke chain. Only the intent creator can cancel; the SDK rejects with VALIDATION_FAILED otherwise.","operationId":"SwapsController_cancelIntent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelIntentRequestDto"}}}},"responses":{"200":{"description":"Unsigned cancel tx","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelIntentResponseDto"}}}},"400":{"description":"Validation error in the request body"}},"summary":"Build an unsigned cancel-intent transaction","tags":["Swaps"]}},"/swaps/intents/hash":{"post":{"description":"Synchronous helper. Useful for clients that want to track intents by hash without waiting for the destination tx hash to land.","operationId":"SwapsController_getIntentHash","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentHashRequestDto"}}}},"responses":{"200":{"description":"Intent hash","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentHashResponseDto"}}}},"400":{"description":"Validation error in the request body"}},"summary":"Compute the keccak256 hash of an Intent struct","tags":["Swaps"]}},"/swaps/intents/packet":{"post":{"description":"Long-poll up to `timeout` ms (default ~60s). Useful when you have a destination fill tx hash from /swaps/intents/status and need to confirm the cross-chain packet was delivered.","operationId":"SwapsController_getSolvedIntentPacket","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentPacketRequestDto"}}}},"responses":{"200":{"description":"Delivered packet data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentPacketResponseDto"}}}},"400":{"description":"Validation error in the request body"},"504":{"description":"Polling timed out before the packet arrived"}},"summary":"Poll the relayer until the fill packet lands on the destination chain","tags":["Swaps"]}},"/swaps/intents/extra-data":{"post":{"description":"Provide EITHER `txHash` (source-chain intent tx) OR `intent` (the Intent struct). Useful when the original /swaps/intents response was lost (e.g. Solana / Bitcoin flows where the client lost the relay payload).","operationId":"SwapsController_getIntentSubmitTxExtraData","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentExtraDataRequestDto"}}}},"responses":{"200":{"description":"Relay extra data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelayExtraDataResponseDto"}}}},"400":{"description":"Validation error or both `txHash` and `intent` provided"}},"summary":"Recover the relay extra data needed by /swaps/intents/submit","tags":["Swaps"]}},"/swaps/intents/{txHash}/fill":{"get":{"description":"Reads the IntentFilled event log. Returns `{ exists, remainingInput, receivedOutput, pendingPayment }`. Bigint fields are serialized as decimal strings by the swaps service mapper.","operationId":"SwapsController_getFilledIntent","parameters":[{"name":"txHash","required":true,"in":"path","description":"Hub-side intent transaction hash (32-byte hex)","schema":{"example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9","type":"string"}}],"responses":{"200":{"description":"Fill state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentStateResponseDto"}}}},"400":{"description":"txHash is not a valid 32-byte hex hash"},"429":{"description":"More than 60 lookups per minute from one client IP"},"502":{"description":"Hub RPC error"}},"summary":"Get the on-chain fill state for an intent","tags":["Swaps"]}},"/swaps/intents/{txHash}":{"get":{"description":"Reads the IntentCreated event log on the Sonic hub.","operationId":"SwapsController_getIntent","parameters":[{"name":"txHash","required":true,"in":"path","description":"Hub-side intent creation transaction hash (32-byte hex)","schema":{"example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9","type":"string"}}],"responses":{"200":{"description":"Intent struct (bigint fields are serialized as decimal strings)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentResponseDto"}}}},"400":{"description":"txHash is not a valid 32-byte hex hash"},"404":{"description":"The transaction was not found or has not been mined yet"},"429":{"description":"More than 60 lookups per minute from one client IP"},"502":{"description":"Hub RPC error"}},"summary":"Look up an Intent struct by its hub-chain creation tx hash","tags":["Swaps"]}},"/swaps/limit-orders":{"post":{"description":"Same shape as /swaps/intents but the `deadline` field is optional (omit for no expiry). Returns `{ tx, intent, relayData }`; caller signs and broadcasts, then submits via /swaps/intents/submit.","operationId":"SwapsController_createLimitOrderIntent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLimitOrderParamsDto"}}}},"responses":{"200":{"description":"Unsigned limit-order intent tx + relay payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntentResponseDto"}}}},"400":{"description":"Validation error in the request body"},"422":{"description":"Limit-order intent creation failed"}},"summary":"Build an unsigned create-limit-order-intent transaction","tags":["Swaps"]}},"/swaps/gas/estimate":{"post":{"description":"Pass the unsigned `tx` payload returned by /swaps/intents, /swaps/approve, or /swaps/intents/cancel, along with the source spoke `chainKey`. Response shape varies by chain family.","operationId":"SwapsController_estimateGas","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GasEstimateRequestDto"}}}},"responses":{"200":{"description":"Gas estimate (chain-specific shape)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GasEstimateResponseDto"}}}},"400":{"description":"Validation error in the request body"},"502":{"description":"Spoke RPC error"}},"summary":"Estimate gas for a raw transaction on a spoke chain","tags":["Swaps"]}},"/swaps/fees/partner":{"get":{"description":"Synchronous local calculation. Returns `0` when no partner fee is configured.","operationId":"SwapsController_getPartnerFee","parameters":[{"name":"amount","required":true,"in":"query","description":"Input amount in smallest unit (decimal string)","schema":{"example":"1000000","type":"string"}}],"responses":{"200":{"description":"Partner fee","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeeResponseDto"}}}}},"summary":"Compute the partner fee for a given input amount","tags":["Swaps"]}},"/swaps/fees/solver":{"get":{"description":"Synchronous local calculation. Fixed at 0.1% of input.","operationId":"SwapsController_getSolverFee","parameters":[{"name":"amount","required":true,"in":"query","description":"Input amount in smallest unit (decimal string)","schema":{"example":"1000000","type":"string"}}],"responses":{"200":{"description":"Solver fee","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeeResponseDto"}}}}},"summary":"Compute the protocol (solver) fee for a given input amount","tags":["Swaps"]}},"/swaps/submit-tx":{"post":{"description":"After the caller has signed and broadcast the create-intent tx on the source spoke chain, they POST the tx hash + intent + relay data here. The record is persisted and immediately handed to the in-service background worker (relay → post-execution to the solver), with the recurring task as a fallback. Idempotent on `(txHash, srcChainKey)`.","operationId":"SwapsController_submitTx","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitTxDto"}}}},"responses":{"200":{"description":"Submission accepted (or duplicate)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitTxResponseDto"}}}},"409":{"description":"This (txHash, srcChainKey) was already submitted with a different payload. The first submission stands; an identical resubmission returns 200 with status \"duplicate\"."},"429":{"description":"Rate limit exceeded — max 10 requests per 60s per IP; a key whose org has a rate limit is exempt; per-IP limits at the edge still apply"}},"summary":"Submit a swap transaction to be processed (relay, post execution to solver, etc.)","tags":["Swaps"]}},"/swaps/submit-tx/status":{"get":{"description":"Reads back the record by `(txHash, srcChainKey)`. When `status === \"failed\"`, the response is enriched with a user-facing `userMessage` derived from the failure reason.","operationId":"SwapsController_getSubmitTxStatus","parameters":[{"name":"txHash","required":true,"in":"query","description":"Source-chain transaction hash identifying the submit-swap-tx (together with srcChainKey)","schema":{"example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9","type":"string"}},{"name":"srcChainKey","required":true,"in":"query","description":"Source chain key","schema":{"type":"string","enum":["0xa86a.avax","0xa4b1.arbitrum","0x2105.base","0x38.bsc","injective-1","sonic","0x1.icon","sui","0xa.optimism","0x89.polygon","solana","stellar","hyper","lightlink","near","ethereum","bitcoin","redbelly","0x2019.kaia","stacks","hedera","robinhood"]}}],"responses":{"200":{"description":"Swap tx status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitTxStatusResponseDto"}}}},"404":{"description":"No submit-tx record exists for the given (txHash, srcChainKey)"}},"summary":"Get the processing status of a submitted swap transaction","tags":["Swaps"]}},"/swaps/widget/config/{appId}":{"get":{"description":"Public: the appId sits in the iframe URL. Changes made in the partner portal apply within 60s.","operationId":"WidgetController_getConfig","parameters":[{"name":"appId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"`{ appId, feeBps, feeReceiver }`"},"404":{"description":"Unknown appId"}},"summary":"Partner fee applied to the hosted swap widget for an appId","tags":["Widget"]}}},"info":{"title":"SODAX Swaps API","description":"REST API wrapping @sodax/sdk v2 SwapService (raw-tx mode)","version":"1.0","contact":{}},"tags":[],"servers":[{"url":"https://api.sodax.com/v1","description":"Public gateway (strips /v1)"},{"url":"http://localhost:3008","description":"Local dev swaps-api server (no proxy, no prefix)"}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","in":"header"}},"schemas":{"XTokenResponseDto":{"type":"object","properties":{"symbol":{"type":"string","description":"Token symbol","example":"USDC"},"name":{"type":"string","description":"Token name","example":"USD Coin"},"decimals":{"type":"number","description":"Token decimals","example":6},"address":{"type":"string","description":"Token address on the spoke chain (or hub address for hub tokens)","example":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"},"chainKey":{"type":"string","description":"SODAX SpokeChainKey identifier","example":"0xa4b1.arbitrum"},"hubAsset":{"type":"string","description":"Corresponding hub-side asset address on Sonic","example":"0xdB7BdA65c3a1C51D64dC4444e418684677334109"},"vault":{"type":"string","description":"Hub vault address that custodies bridged liquidity for this token","example":"0xAbbb91c0617090F0028BDC27597Cd0D038F3A833"}},"required":["symbol","name","decimals","address","chainKey","hubAsset","vault"]},"PartnerFeeDto":{"type":"object","properties":{"address":{"type":"string","description":"EVM hub address that receives the partner fee","example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"},"amount":{"type":"string","description":"Fixed fee amount in the input token smallest unit (decimal string). If both `amount` and `percentage` are provided, `amount` wins.","example":"1000"},"percentage":{"type":"number","description":"Fee in basis points (e.g. 100 = 1%). Maximum 100.","example":50,"minimum":1,"maximum":100}},"required":["address"]},"BitcoinBoundExtrasDto":{"type":"object","properties":{"accessToken":{"type":"string","description":"Bound Exchange (Radfi) access token identifying the END USER, minted client-side by BIP322-signing a Bound login message (they expire in ~10 minutes). Required on the Bitcoin-source paths that build a transaction — POST /swaps/intents, POST /swaps/limit-orders, and POST /swaps/quote?includeTxData=true — each of which answers 400 without it. Not required by /swaps/allowance/check, /swaps/approve, or a plain price quote: none of those call Bound. There is no server-side fallback."}}},"HookRequestDto":{"type":"object","properties":{"kind":{"type":"string","enum":["hyperCoreDeposit","flintDeposit"],"description":"Delivery hook to route the intent output through. NOTE: a kind only resolves where it is in the SDK registry — with the currently pinned SDK that is `hyperCoreDeposit` on the `hyper` destination chain and `flintDeposit` on the `ethereum` destination chain. Any other combination is rejected by the SDK as an unregistered hook.","example":"hyperCoreDeposit"}},"required":["kind"]},"QuoteRequestDto":{"type":"object","properties":{"partnerFee":{"description":"Per-request partner-fee override. Omit for no partner fee (the instance carries no configured fee).","allOf":[{"$ref":"#/components/schemas/PartnerFeeDto"}]},"srcPublicKey":{"type":"string","description":"Source-chain signer public key (compressed hex). Stacks sources only; consumed only when building a raw intent."},"bound":{"description":"Bitcoin Bound (Radfi) inputs. Raw Bitcoin TRADING-mode intents only.","allOf":[{"$ref":"#/components/schemas/BitcoinBoundExtrasDto"}]},"hook":{"description":"Route the intent output through a registered delivery hook (e.g. HyperCore perps deposit, Flint RWA vault deposit) instead of a plain transfer to `dstAddress`. When set, the SDK substitutes the hook contract as the on-chain destination and passes the `dstAddress` you supply to the hook as the recipient, so keep sending the end-user address in `dstAddress` rather than the hook address. Consumed only when building an intent — POST /swaps/intents, POST /swaps/limit-orders, and POST /swaps/quote?includeTxData=true; a bare quote ignores it, and /swaps/allowance/check + /swaps/approve are source-side only and ignore it (same as `partnerFee`).","allOf":[{"$ref":"#/components/schemas/HookRequestDto"}]},"tokenSrc":{"type":"string","description":"Source token address on the source spoke chain","example":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"},"tokenSrcChainKey":{"type":"string","description":"Source spoke chain key (SODAX SpokeChainKey)","example":"0xa4b1.arbitrum"},"tokenDst":{"type":"string","description":"Destination token address on the destination spoke chain","example":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},"tokenDstChainKey":{"type":"string","description":"Destination spoke chain key (SODAX SpokeChainKey)","example":"0x89.polygon"},"amount":{"type":"string","description":"Input amount in the smallest unit of the source token, encoded as a decimal string","example":"1000000"},"quoteType":{"type":"string","description":"Quote type (currently only `exact_input` is supported)","enum":["exact_input"],"example":"exact_input"},"srcAddress":{"type":"string","description":"Source address on the source spoke chain. Required only when `includeTxData=true` (used to build the unsigned create-intent transaction). Ignored for plain price quotes and may be omitted.","example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"},"dstAddress":{"type":"string","description":"Destination address on the destination spoke chain. Required only when `includeTxData=true` (used to build the unsigned create-intent transaction). Ignored for plain price quotes and may be omitted.","example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"}},"required":["tokenSrc","tokenSrcChainKey","tokenDst","tokenDstChainKey","amount","quoteType"]},"IntentResponseDto":{"type":"object","properties":{"intentId":{"type":"string","description":"Intent ID","example":"123456789"},"creator":{"type":"string","description":"Creator address"},"inputToken":{"type":"string","description":"Input token address"},"outputToken":{"type":"string","description":"Output token address"},"inputAmount":{"type":"string","description":"Input amount (wei as string)","example":"100000000"},"minOutputAmount":{"type":"string","description":"Minimum output amount (wei as string)","example":"367817"},"deadline":{"type":"string","description":"Deadline (unix or block)","example":"0"},"allowPartialFill":{"type":"boolean","description":"Allow partial fill"},"srcChain":{"type":"string","description":"Source chain","enum":["6","23","30","4","19","146","24","5","1","21","27","1768124270","26745","27756","15","2","627463","726564","27489","60","18501","21071"],"example":"23"},"dstChain":{"type":"string","description":"Destination chain","enum":["6","23","30","4","19","146","24","5","1","21","27","1768124270","26745","27756","15","2","627463","726564","27489","60","18501","21071"],"example":"5"},"srcAddress":{"type":"string","description":"Source address (hex)"},"dstAddress":{"type":"string","description":"Destination address (hex)"},"solver":{"type":"string","description":"Solver address"},"data":{"type":"string","description":"Intent data (hex)"}},"required":["intentId","creator","inputToken","outputToken","inputAmount","minOutputAmount","deadline","allowPartialFill","srcChain","dstChain","srcAddress","dstAddress","solver","data"]},"RelayExtraDataResponseDto":{"type":"object","properties":{"address":{"type":"string","description":"Relay payload address (hex)","example":"0x..."},"payload":{"type":"string","description":"Relay payload (hex). Submit this back via /swaps/intents/submit."}},"required":["address","payload"]},"CreateIntentResponseDto":{"type":"object","properties":{"tx":{"type":"object","description":"Unsigned transaction the caller must sign and broadcast on the source spoke chain. For EVM chains this is `{ from, to, value, data }`; for non-EVM chains the shape varies."},"intent":{"description":"Built intent struct (hub representation)","allOf":[{"$ref":"#/components/schemas/IntentResponseDto"}]},"relayData":{"description":"Extra data required when calling /swaps/intents/submit","allOf":[{"$ref":"#/components/schemas/RelayExtraDataResponseDto"}]}},"required":["tx","intent","relayData"]},"QuoteResponseDto":{"type":"object","properties":{"quotedAmount":{"type":"string","description":"Quoted output amount in the smallest unit of the destination token (decimal string)","example":"498123456"},"txData":{"description":"Unsigned create-intent transaction (present only when `includeTxData=true`). For EVM chains this is `{ from, to, value, data }`; for non-EVM chains the shape varies.","allOf":[{"$ref":"#/components/schemas/CreateIntentResponseDto"}]}},"required":["quotedAmount"]},"DeadlineResponseDto":{"type":"object","properties":{"deadline":{"type":"string","description":"Unix timestamp (in seconds) at which the swap intent will expire","example":"1768400000"}},"required":["deadline"]},"CreateIntentParamsDto":{"type":"object","properties":{"partnerFee":{"description":"Per-request partner-fee override. Omit for no partner fee (the instance carries no configured fee).","allOf":[{"$ref":"#/components/schemas/PartnerFeeDto"}]},"srcPublicKey":{"type":"string","description":"Source-chain signer public key (compressed hex). Stacks sources only; consumed only when building a raw intent."},"bound":{"description":"Bitcoin Bound (Radfi) inputs. Raw Bitcoin TRADING-mode intents only.","allOf":[{"$ref":"#/components/schemas/BitcoinBoundExtrasDto"}]},"hook":{"description":"Route the intent output through a registered delivery hook (e.g. HyperCore perps deposit, Flint RWA vault deposit) instead of a plain transfer to `dstAddress`. When set, the SDK substitutes the hook contract as the on-chain destination and passes the `dstAddress` you supply to the hook as the recipient, so keep sending the end-user address in `dstAddress` rather than the hook address. Consumed only when building an intent — POST /swaps/intents, POST /swaps/limit-orders, and POST /swaps/quote?includeTxData=true; a bare quote ignores it, and /swaps/allowance/check + /swaps/approve are source-side only and ignore it (same as `partnerFee`).","allOf":[{"$ref":"#/components/schemas/HookRequestDto"}]},"srcChainKey":{"type":"string","description":"Source spoke chain key (SODAX SpokeChainKey)","example":"0xa4b1.arbitrum"},"dstChainKey":{"type":"string","description":"Destination spoke chain key (SODAX SpokeChainKey)","example":"0x89.polygon"},"inputToken":{"type":"string","description":"Input token address on the source spoke chain","example":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"},"outputToken":{"type":"string","description":"Output token address on the destination spoke chain","example":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},"inputAmount":{"type":"string","description":"Input amount in smallest unit of the input token (decimal string)","example":"1000000"},"minOutputAmount":{"type":"string","description":"Minimum acceptable output in smallest unit of the output token (decimal string)","example":"475117283"},"deadline":{"type":"string","description":"Unix timestamp (in seconds) at which the intent expires. Use `0` for limit-order semantics (Phase 2 endpoints).","example":"1768400000"},"allowPartialFill":{"type":"boolean","description":"Whether partial fills are allowed for this intent","example":false},"srcAddress":{"type":"string","description":"User address on the source spoke chain (chain-specific format)","example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"},"dstAddress":{"type":"string","description":"Recipient address on the destination spoke chain (chain-specific format)","example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"},"solver":{"type":"string","description":"Solver address (EVM hub address). Defaults to 0x0000000000000000000000000000000000000000 for \"any solver\".","example":"0x0000000000000000000000000000000000000000","default":"0x0000000000000000000000000000000000000000"},"data":{"type":"string","description":"Arbitrary calldata hex string. Defaults to `0x`.","example":"0x","default":"0x"}},"required":["srcChainKey","dstChainKey","inputToken","outputToken","inputAmount","minOutputAmount","deadline","allowPartialFill","srcAddress","dstAddress"]},"AllowanceCheckResponseDto":{"type":"object","properties":{"valid":{"type":"boolean","description":"True when the source token allowance is already sufficient for the intent","example":true}},"required":["valid"]},"ApproveResponseDto":{"type":"object","properties":{"tx":{"type":"object","description":"Unsigned transaction the caller must sign and broadcast to approve the source token for the swap. EVM: `{ from, to, value, data }`."},"resetTx":{"type":"object","description":"Unsigned transaction that zeroes the current allowance. Present only when the source token rejects an allowance change from one non-zero value to another (the 2017 TetherToken lineage) and the wallet already holds a stale allowance — such a wallet cannot approve at all until it is cleared. Broadcast this first and wait for it to be mined, then broadcast `tx`: the approval is only valid once the allowance has been zeroed on-chain, so the two cannot be batched. Absent for every other token."}},"required":["tx"]},"RelayExtraDataDto":{"type":"object","properties":{"address":{"type":"string","description":"Relay payload address (hex)","example":"0x..."},"payload":{"type":"string","description":"Relay payload (hex). Submit this back via /swaps/intents/submit."}},"required":["address","payload"]},"SubmitIntentRequestDto":{"type":"object","properties":{"chainId":{"type":"string","description":"Intent-relay chain id of the source chain (decimal string). NOT the SpokeChainKey — this is the numeric relay id. Resolve via the SDK config map if needed.","example":"4"},"txHash":{"type":"string","description":"Transaction hash on the source spoke chain after the caller signed and broadcast the intent tx","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"},"data":{"description":"Required for Solana / Bitcoin sources. Pass the `relayData` object returned by /swaps/intents verbatim.","allOf":[{"$ref":"#/components/schemas/RelayExtraDataDto"}]}},"required":["chainId","txHash"]},"SubmitIntentResponseDto":{"type":"object","properties":{"result":{"type":"object","description":"Raw response from the intent relay. Shape varies; treat as opaque and surface to clients."}},"required":["result"]},"StatusRequestDto":{"type":"object","properties":{"intentTxHash":{"type":"string","description":"Hub-side intent transaction hash, returned as `intentDeliveryInfo.dstTxHash` from a completed swap orchestration.","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"}},"required":["intentTxHash"]},"StatusResponseDto":{"type":"object","properties":{"status":{"type":"number","description":"Solver intent status code: -1 NOT_FOUND, 1 NOT_STARTED_YET, 2 STARTED_NOT_FINISHED, 3 SOLVED (terminal), 4 FAILED (terminal)","enum":[-1,1,2,3,4],"example":3},"fillTxHash":{"type":"string","description":"Fill transaction hash on the destination chain. Only present when status === 3 (SOLVED).","example":"0xa1b2..."}},"required":["status"]},"IntentDto":{"type":"object","properties":{"intentId":{"type":"string","description":"Intent ID","example":"123456789"},"creator":{"type":"string","description":"Creator address on the hub (Sonic): `0x` + 40 hex"},"inputToken":{"type":"string","description":"Input token address on the hub (Sonic): `0x` + 40 hex"},"outputToken":{"type":"string","description":"Output token address on the hub (Sonic): `0x` + 40 hex"},"inputAmount":{"type":"string","description":"Input amount (wei as string)","example":"100000000"},"minOutputAmount":{"type":"string","description":"Minimum output amount (wei as string)","example":"367817"},"deadline":{"type":"string","description":"Deadline (unix or block)","example":"0"},"allowPartialFill":{"type":"boolean","description":"Allow partial fill"},"srcChain":{"type":"string","description":"Source chain","enum":["6","23","30","4","19","146","24","5","1","21","27","1768124270","26745","27756","15","2","627463","726564","27489","60","18501","21071"],"example":"23"},"dstChain":{"type":"string","description":"Destination chain","enum":["6","23","30","4","19","146","24","5","1","21","27","1768124270","26745","27756","15","2","627463","726564","27489","60","18501","21071"],"example":"5"},"srcAddress":{"type":"string","description":"Source address (hex)"},"dstAddress":{"type":"string","description":"Destination address (hex)"},"solver":{"type":"string","description":"Solver address on the hub (Sonic): `0x` + 40 hex"},"data":{"type":"string","description":"Intent data (hex)"}},"required":["intentId","creator","inputToken","outputToken","inputAmount","minOutputAmount","deadline","allowPartialFill","srcChain","dstChain","srcAddress","dstAddress","solver","data"]},"CancelIntentRequestDto":{"type":"object","properties":{"srcChainKey":{"type":"string","description":"Source spoke chain key (SODAX SpokeChainKey) on which the intent was created","example":"0xa4b1.arbitrum"},"intent":{"description":"Intent struct (as returned by /swaps/intents). Bigint fields accept decimal strings.","allOf":[{"$ref":"#/components/schemas/IntentDto"}]}},"required":["srcChainKey","intent"]},"CancelIntentResponseDto":{"type":"object","properties":{"tx":{"type":"object","description":"Unsigned cancel transaction the caller must sign and broadcast on the source spoke chain. EVM: `{ from, to, value, data }`."}},"required":["tx"]},"IntentHashRequestDto":{"type":"object","properties":{"intent":{"description":"Intent struct to hash. Bigint fields accept decimal strings.","allOf":[{"$ref":"#/components/schemas/IntentDto"}]}},"required":["intent"]},"IntentHashResponseDto":{"type":"object","properties":{"hash":{"type":"string","description":"keccak256 hash of the intent struct (32-byte hex)","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"}},"required":["hash"]},"IntentPacketRequestDto":{"type":"object","properties":{"chainId":{"type":"string","description":"Destination spoke chain key on which the intent was filled","example":"0x89.polygon"},"fillTxHash":{"type":"string","description":"Fill transaction hash on the destination chain (returned by /swaps/intents/status)","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"},"timeout":{"type":"number","description":"Polling timeout in milliseconds. Defaults to SDK default (~60s).","example":60000,"minimum":1}},"required":["chainId","fillTxHash"]},"IntentPacketResponseDto":{"type":"object","properties":{"srcChainId":{"type":"number","description":"Source intent-relay chain id (numeric)"},"srcTxHash":{"type":"string","description":"Source-chain transaction hash that originated the packet"},"srcAddress":{"type":"string","description":"Encoded source address"},"status":{"type":"string","description":"Relay status (e.g. `executed`). See SDK `RelayTxStatus`.","example":"executed"},"dstChainId":{"type":"number","description":"Destination intent-relay chain id (numeric)"},"connSn":{"type":"number","description":"Connection sequence number assigned by the relay"},"dstAddress":{"type":"string","description":"Destination address (encoded)"},"dstTxHash":{"type":"string","description":"Destination-chain transaction hash where the fill landed"},"signatures":{"description":"Relay signatures collected for this packet","type":"array","items":{"type":"string"}},"payload":{"type":"string","description":"Packet payload (hex)"}},"required":["srcChainId","srcTxHash","srcAddress","status","dstChainId","connSn","dstAddress","dstTxHash","signatures","payload"]},"IntentExtraDataRequestDto":{"type":"object","properties":{"txHash":{"type":"string","description":"Source-chain tx hash. Provide either this OR `intent`, not both.","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"},"intent":{"description":"Intent struct. Provide either this OR `txHash`, not both.","allOf":[{"$ref":"#/components/schemas/IntentDto"}]}}},"IntentStateResponseDto":{"type":"object","properties":{"exists":{"type":"boolean","description":"Whether the intent exists on the hub chain"},"remainingInput":{"type":"string","description":"Remaining input amount left to fill (decimal string)","example":"367817"},"receivedOutput":{"type":"string","description":"Received output amount so far (decimal string)","example":"367817"},"pendingPayment":{"type":"boolean","description":"Whether a payment is pending"}},"required":["exists","remainingInput","receivedOutput","pendingPayment"]},"CreateLimitOrderParamsDto":{"type":"object","properties":{"partnerFee":{"description":"Per-request partner-fee override. Omit for no partner fee (the instance carries no configured fee).","allOf":[{"$ref":"#/components/schemas/PartnerFeeDto"}]},"srcPublicKey":{"type":"string","description":"Source-chain signer public key (compressed hex). Stacks sources only; consumed only when building a raw intent."},"bound":{"description":"Bitcoin Bound (Radfi) inputs. Raw Bitcoin TRADING-mode intents only.","allOf":[{"$ref":"#/components/schemas/BitcoinBoundExtrasDto"}]},"hook":{"description":"Route the intent output through a registered delivery hook (e.g. HyperCore perps deposit, Flint RWA vault deposit) instead of a plain transfer to `dstAddress`. When set, the SDK substitutes the hook contract as the on-chain destination and passes the `dstAddress` you supply to the hook as the recipient, so keep sending the end-user address in `dstAddress` rather than the hook address. Consumed only when building an intent — POST /swaps/intents, POST /swaps/limit-orders, and POST /swaps/quote?includeTxData=true; a bare quote ignores it, and /swaps/allowance/check + /swaps/approve are source-side only and ignore it (same as `partnerFee`).","allOf":[{"$ref":"#/components/schemas/HookRequestDto"}]},"srcChainKey":{"type":"string","description":"Source spoke chain key (SODAX SpokeChainKey)","example":"0xa4b1.arbitrum"},"dstChainKey":{"type":"string","description":"Destination spoke chain key (SODAX SpokeChainKey)","example":"0x89.polygon"},"inputToken":{"type":"string","description":"Input token address on the source spoke chain","example":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"},"outputToken":{"type":"string","description":"Output token address on the destination spoke chain","example":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},"inputAmount":{"type":"string","description":"Input amount in smallest unit of the input token (decimal string)","example":"1000000"},"minOutputAmount":{"type":"string","description":"Minimum acceptable output in smallest unit of the output token (decimal string)","example":"475117283"},"allowPartialFill":{"type":"boolean","description":"Whether partial fills are allowed for this intent","example":false},"srcAddress":{"type":"string","description":"User address on the source spoke chain (chain-specific format)","example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"},"dstAddress":{"type":"string","description":"Recipient address on the destination spoke chain (chain-specific format)","example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"},"solver":{"type":"string","description":"Solver address (EVM hub address). Defaults to 0x0000000000000000000000000000000000000000 for \"any solver\".","example":"0x0000000000000000000000000000000000000000","default":"0x0000000000000000000000000000000000000000"},"data":{"type":"string","description":"Arbitrary calldata hex string. Defaults to `0x`.","example":"0x","default":"0x"},"deadline":{"type":"string","description":"Unix timestamp (seconds) at which the limit order expires. Omit (or pass `0`) for no expiry.","example":"0"}},"required":["srcChainKey","dstChainKey","inputToken","outputToken","inputAmount","minOutputAmount","allowPartialFill","srcAddress","dstAddress"]},"GasEstimateRequestDto":{"type":"object","properties":{"chainKey":{"type":"string","description":"Spoke chain key the transaction targets","example":"0xa4b1.arbitrum"},"tx":{"type":"object","description":"Raw transaction object (chain-specific shape). For EVM: `{ from, to, value, data }` with `value` as decimal string.","example":{"from":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","to":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","value":"0","data":"0x..."}}},"required":["chainKey","tx"]},"GasEstimateResponseDto":{"type":"object","properties":{"gas":{"type":"object","description":"Gas estimate. Shape varies by chain family: EVM/Bitcoin/Near/Solana → decimal string (bigint), Sui/Stellar/Stacks/Icon/Injective → structured object."}},"required":["gas"]},"FeeResponseDto":{"type":"object","properties":{"fee":{"type":"string","description":"Fee amount in smallest unit of the input token (decimal string)","example":"1000"}},"required":["fee"]},"SubmitTxDto":{"type":"object","properties":{"txHash":{"type":"string","description":"Transaction hash of the tx that will be submitted, in the source chain's own format: EVM and ICON `0x` + 64 hex; Stellar 64 hex (stored lowercase); Stacks and Injective 64 hex with an optional `0x`; Solana a base58 signature (64 bytes); Sui and NEAR a base58 digest (32 bytes); Bitcoin a 64-hex txid (optional `0x`), or the SDK on-demand relay identity (`withdraw` or `od:` + 64 hex).","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"},"srcChainKey":{"type":"string","description":"Source chain key (spoke chain that the tx will be submitted from)","enum":["0xa86a.avax","0xa4b1.arbitrum","0x2105.base","0x38.bsc","injective-1","sonic","0x1.icon","sui","0xa.optimism","0x89.polygon","solana","stellar","hyper","lightlink","near","ethereum","bitcoin","redbelly","0x2019.kaia","stacks","hedera","robinhood"]},"walletAddress":{"type":"string","description":"Address of the wallet that will submit the tx","example":"0x13b70564b1ec12876B20FAb5D1Bb630311312f4f","minLength":1,"maxLength":127},"intent":{"description":"Intent object received from createIntent","allOf":[{"$ref":"#/components/schemas/IntentDto"}]},"relayData":{"type":"string","description":"Relay data received from createIntent to be submitted to the intent relay","example":"0x"}},"required":["txHash","srcChainKey","walletAddress","intent","relayData"]},"SubmitTxDataResponseDto":{"type":"object","properties":{"status":{"type":"string","description":"Whether the row was newly inserted or matched an existing record","example":"inserted","enum":["inserted","duplicate"]},"message":{"type":"string","description":"Message indicating the result of the submission","example":"Swap transaction submitted successfully"}},"required":["status","message"]},"SubmitTxResponseDto":{"type":"object","properties":{"success":{"type":"boolean","example":true},"data":{"$ref":"#/components/schemas/SubmitTxDataResponseDto"}},"required":["success","data"]},"PacketDataDomainResponseDto":{"type":"object","properties":{"src_chain_id":{"type":"number","description":"Source intent-relay chain id (numeric)"},"src_tx_hash":{"type":"string","description":"Source-chain transaction hash"},"src_address":{"type":"string","description":"Encoded source address"},"status":{"type":"string","description":"Packet lifecycle status","enum":["pending","validating","executing","executed"],"example":"executed"},"dst_chain_id":{"type":"number","description":"Destination intent-relay chain id (numeric)"},"conn_sn":{"type":"number","description":"Connection sequence number assigned by the relay"},"dst_address":{"type":"string","description":"Destination address (encoded)"},"dst_tx_hash":{"type":"string","description":"Destination-chain transaction hash"},"signatures":{"description":"Relay signatures collected for this packet","type":"array","items":{"type":"string"}},"payload":{"type":"string","description":"Packet payload (hex)"}},"required":["src_chain_id","src_tx_hash","src_address","status","dst_chain_id","conn_sn","dst_address","dst_tx_hash","signatures","payload"]},"SubmitTxStatusResultResponseDto":{"type":"object","properties":{"dstIntentTxHash":{"type":"string","description":"Destination intent tx hash","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"},"packetData":{"description":"Packet data from relay","allOf":[{"$ref":"#/components/schemas/PacketDataDomainResponseDto"}]},"intent_hash":{"type":"string","description":"Intent hash from solver API","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"},"fillTxHash":{"type":"string","description":"Solver destination-chain fill tx hash (getStatus().fill_tx_hash). Set on solver-confirmed fills; MAY be absent even when status === 'solved' if the fill was confirmed via the on-chain journal (INTENT_FILLED) rather than a solver-returned fill tx. Treat as optional.","example":"0xa1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2"}},"required":["dstIntentTxHash"]},"SubmitTxStatusDataResponseDto":{"type":"object","properties":{"txHash":{"type":"string","description":"Transaction hash","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"},"srcChainKey":{"type":"string","description":"Source chain key","enum":["0xa86a.avax","0xa4b1.arbitrum","0x2105.base","0x38.bsc","injective-1","sonic","0x1.icon","sui","0xa.optimism","0x89.polygon","solana","stellar","hyper","lightlink","near","ethereum","bitcoin","redbelly","0x2019.kaia","stacks","hedera","robinhood"],"example":"0xa4b1.arbitrum"},"status":{"type":"string","description":"Current processing status. Lifecycle: pending → relaying → relayed → posting_execution → posted_execution → solved | failed. `solved` and `failed` are terminal; everything else (including `posted_execution`) means keep polling. `posted_execution` = the intent has been handed to the solver and is awaiting its fill; `solved` means the solver has FILLED the intent (the destination fill tx is usually in `result.fillTxHash`, but may be absent when the fill was confirmed via the on-chain journal). A transient/retryable failure (relay timeout, relayer read blip) is surfaced as its in-flight step (e.g. `relaying`/`posting_execution`), NOT as `failed` — so a transient blip never appears as `failed`, and a `failed` here is a terminal state to act on. One exception: a swap the solver reported FAILED surfaces `failed` with a cancel-to-recover `userMessage` promptly (single-solver, no retry → the intent is unlikely to fill; cancel on-chain to recover funds), yet MAY rarely reconcile to `solved` if a lagged on-chain fill lands before abandonment. Acting on the cancel-to-recover hint is always safe (a user cancel and a fill are mutually exclusive on-chain); a client that also wants to catch that rare late fill can keep polling such a row until `abandonedAt` is set.","enum":["pending","relaying","relayed","posting_execution","posted_execution","solved","failed"],"example":"solved"},"operation":{"type":"string","description":"Product/operation discriminator. `'swap'` for an ordinary swap; `'leverage_deposit'`/`'leverage_withdraw'` for a leverage-yield vault op submitted via `/leverage-yield/submit-tx`. Legacy rows default to `'swap'`.","enum":["swap","leverage_deposit","leverage_withdraw"],"example":"swap"},"failedAtStep":{"type":"string","description":"Step where processing failed","enum":["pending","relaying","relayed","posting_execution","posted_execution","solved","failed"],"example":"relaying"},"failureReason":{"type":"string","description":"Failure reason","example":"relay timeout"},"processingAttempts":{"type":"number","description":"Number of processing attempts (claim-time counter)","example":0},"abandonedAt":{"type":"string","format":"date-time","description":"Set when the swap exhausted its processing budget and was abandoned for manual review","example":"2026-06-02T22:00:00.000Z"},"relayedForRefundAt":{"type":"string","format":"date-time","description":"Set when an expired swap was relayed for refund (#796): the hub intent was created so the intent-canceller refunds the user. The row stays abandoned (never filled) — this distinguishes a refund-in-progress swap from a dead-end abandonment.","example":"2026-06-02T22:05:00.000Z"},"result":{"description":"Processing result — present once relayed (dstIntentTxHash), with intent_hash after post-execution and fillTxHash once solved.","allOf":[{"$ref":"#/components/schemas/SubmitTxStatusResultResponseDto"}]},"userMessage":{"type":"string","description":"User-facing hint when status is failed (e.g. transaction reverted) or the swap was abandoned.","example":"The transaction reverted on chain. The intent may have expired or been cancelled."},"intentCancelled":{"type":"boolean","description":"True when an on-chain INTENT_CANCELLED event exists for this swap’s intent (failed swaps only).","example":true}},"required":["txHash","srcChainKey","status","operation","processingAttempts"]},"SubmitTxStatusResponseDto":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the request was successful","example":true},"data":{"description":"Submit tx status data","allOf":[{"$ref":"#/components/schemas/SubmitTxStatusDataResponseDto"}]}},"required":["success","data"]}}}}