{"openapi":"3.0.0","paths":{"/leverage-yield/vaults":{"get":{"operationId":"LeverageYieldController_getVaults","parameters":[],"responses":{"200":{"description":"Array of vault descriptors","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeverageVaultResponseDto"}}}}}},"summary":"List the registry of deployed leverage-yield vaults","tags":["Leverage Yield"]}},"/leverage-yield/vaults/{name}":{"get":{"operationId":"LeverageYieldController_getVault","parameters":[{"name":"name","required":true,"in":"path","description":"Vault share-token name","schema":{"example":"lsodaWEETH","type":"string"}}],"responses":{"200":{"description":"Vault descriptor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeverageVaultResponseDto"}}}},"404":{"description":"No vault registered under that name"}},"summary":"Get a single vault descriptor by its lsoda* share-token name","tags":["Leverage Yield"]}},"/leverage-yield/asset":{"get":{"operationId":"LeverageYieldController_getAsset","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultAssetResponseDto"}}}},"502":{"description":"Hub RPC error"}},"summary":"Get the vault's underlying hub asset","tags":["Leverage Yield"]}},"/leverage-yield/position":{"get":{"operationId":"LeverageYieldController_getPosition","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeverageYieldPositionResponseDto"}}}},"502":{"description":"Hub RPC error"}},"summary":"Get a leveraged-position snapshot for the vault","tags":["Leverage Yield"]}},"/leverage-yield/apr":{"get":{"operationId":"LeverageYieldController_getApr","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeverageYieldAprResponseDto"}}}},"502":{"description":"Hub RPC error"}},"summary":"Get the AAVE-only steady-state APR for the vault","tags":["Leverage Yield"]}},"/leverage-yield/apr/effective":{"get":{"operationId":"LeverageYieldController_getEffectiveApr","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeverageYieldEffectiveAprResponseDto"}}}},"502":{"description":"Hub RPC or LSD-source error"}},"summary":"Get the combined AAVE + LSD effective APR for the vault","tags":["Leverage Yield"]}},"/leverage-yield/apr/lsd":{"get":{"operationId":"LeverageYieldController_getLsdApr","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeverageYieldLsdAprResponseDto"}}}}},"summary":"Get the off-chain LSD staking-APR snapshot for the vault's underlying asset","tags":["Leverage Yield"]}},"/leverage-yield/total-assets":{"get":{"operationId":"LeverageYieldController_getTotalAssets","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultTotalAssetsResponseDto"}}}},"502":{"description":"Hub RPC error"}},"summary":"Get the total assets managed by the vault (TVL)","tags":["Leverage Yield"]}},"/leverage-yield/preview/deposit":{"get":{"operationId":"LeverageYieldController_previewDeposit","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}},{"name":"assets","required":true,"in":"query","description":"Amount of the vault underlying asset in smallest unit (18 decimals)","schema":{"example":"1000000000000000000","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewDepositResponseDto"}}}}},"summary":"Preview the shares minted for depositing `assets` (ERC-4626 previewDeposit)","tags":["Leverage Yield"]}},"/leverage-yield/preview/withdraw":{"get":{"operationId":"LeverageYieldController_previewWithdraw","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}},{"name":"assets","required":true,"in":"query","description":"Amount of the vault underlying asset in smallest unit (18 decimals)","schema":{"example":"1000000000000000000","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewWithdrawResponseDto"}}}}},"summary":"Preview the shares burned to withdraw `assets` (ERC-4626 previewWithdraw)","tags":["Leverage Yield"]}},"/leverage-yield/preview/redeem":{"get":{"operationId":"LeverageYieldController_previewRedeem","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}},{"name":"shares","required":true,"in":"query","description":"Amount of vault shares (lsoda*) in smallest unit (18 decimals)","schema":{"example":"1000000000000000000","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRedeemResponseDto"}}}}},"summary":"Preview the assets returned for redeeming `shares` (ERC-4626 previewRedeem)","tags":["Leverage Yield"]}},"/leverage-yield/share-balance":{"get":{"operationId":"LeverageYieldController_getShareBalance","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}},{"name":"owner","required":true,"in":"query","description":"Owner (hub wallet) address whose vault shares are inspected","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareBalanceResponseDto"}}}}},"summary":"Get an owner's vault share (lsoda*) balance","tags":["Leverage Yield"]}},"/leverage-yield/max-withdraw":{"get":{"description":"The RAW value, NOT dust-trimmed. Feeding it straight into an asset-denominated withdraw can trip the vault's share round-up and ask for one more share than the owner holds, reverting the withdraw — the SDK subtracts a small dust buffer in `getMaxWithdrawForUser` for exactly that reason. Callers driving a \"MAX\" button should apply their own margin.","operationId":"LeverageYieldController_getMaxWithdraw","parameters":[{"name":"vault","required":true,"in":"query","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)","schema":{"type":"string"}},{"name":"owner","required":true,"in":"query","description":"Owner (hub wallet) address whose vault shares are inspected","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaxWithdrawResponseDto"}}}}},"summary":"Get an owner's raw on-chain maximum withdrawable assets (ERC-4626 maxWithdraw)","tags":["Leverage Yield"]}},"/leverage-yield/quote/deposit":{"post":{"description":"Pass `?includeTxData=true` to also build the unsigned create-intent tx (`srcAddress` required then).","operationId":"LeverageYieldController_getDepositQuote","parameters":[{"name":"includeTxData","required":false,"in":"query","description":"When true, also build and return `{ tx, intent, relayData }` (same shape as `POST /swaps/intents`) using the quoted amount as `minOutputAmount`. Accepts `true`, `false`, or `1`.","schema":{"default":false,"example":false,"type":"boolean"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeverageYieldDepositQuoteRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteResponseDto"}}}},"400":{"description":"Validation error in the request body or query"},"502":{"description":"Solver API error"}},"summary":"Quote a swap-style deposit (any token → lsoda* shares)","tags":["Leverage Yield"]}},"/leverage-yield/quote/withdraw":{"post":{"description":"Pass `?includeTxData=true` to also build the unsigned tx (`srcAddress`/`dstAddress` required then).","operationId":"LeverageYieldController_getWithdrawQuote","parameters":[{"name":"includeTxData","required":false,"in":"query","description":"When true, also build and return `{ tx, intent, relayData }` (same shape as `POST /swaps/intents`) using the quoted amount as `minOutputAmount`. Accepts `true`, `false`, or `1`.","schema":{"default":false,"example":false,"type":"boolean"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeverageYieldWithdrawQuoteRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteResponseDto"}}}},"400":{"description":"Validation error in the request body or query"},"502":{"description":"Solver API error"}},"summary":"Quote a swap-style withdraw (lsoda* shares → any token)","tags":["Leverage Yield"]}},"/leverage-yield/deadline":{"get":{"operationId":"LeverageYieldController_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":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeadlineResponseDto"}}}},"502":{"description":"Hub RPC error"}},"summary":"Compute a deposit/withdraw deadline (hub timestamp + offset)","tags":["Leverage Yield"]}},"/leverage-yield/allowance/check":{"post":{"operationId":"LeverageYieldController_checkAllowance","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDepositIntentParamsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowanceCheckResponseDto"}}}},"400":{"description":"Validation error in the request body"}},"summary":"Check whether the deposit input-token allowance is already sufficient","tags":["Leverage Yield"]}},"/leverage-yield/approve":{"post":{"operationId":"LeverageYieldController_approve","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDepositIntentParamsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveResponseDto"}}}},"400":{"description":"Validation error in the request body"}},"summary":"Build an unsigned token-approval transaction for the deposit input token","tags":["Leverage Yield"]}},"/leverage-yield/intents/deposit":{"post":{"operationId":"LeverageYieldController_createDepositIntent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDepositIntentParamsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntentResponseDto"}}}},"400":{"description":"Validation error in the request body"}},"summary":"Build an unsigned deposit create-intent transaction (any token → lsoda* shares)","tags":["Leverage Yield"]}},"/leverage-yield/intents/withdraw":{"post":{"operationId":"LeverageYieldController_createWithdrawIntent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWithdrawIntentParamsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntentResponseDto"}}}},"400":{"description":"Validation error in the request body"}},"summary":"Build an unsigned withdraw create-intent transaction (lsoda* shares → any token)","tags":["Leverage Yield"]}},"/leverage-yield/intents/submit":{"post":{"operationId":"LeverageYieldController_submitIntent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitIntentRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitIntentResponseDto"}}}}},"summary":"Submit the broadcast intent tx to the relay","tags":["Leverage Yield"]}},"/leverage-yield/intents/status":{"post":{"operationId":"LeverageYieldController_getStatus","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponseDto"}}}}},"summary":"Poll the solver for intent execution status","tags":["Leverage Yield"]}},"/leverage-yield/intents/cancel":{"post":{"operationId":"LeverageYieldController_cancelIntent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelIntentRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelIntentResponseDto"}}}}},"summary":"Build an unsigned cancel-intent transaction","tags":["Leverage Yield"]}},"/leverage-yield/intents/hash":{"post":{"operationId":"LeverageYieldController_getIntentHash","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentHashRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentHashResponseDto"}}}}},"summary":"Compute the keccak256 hash of an Intent struct","tags":["Leverage Yield"]}},"/leverage-yield/intents/packet":{"post":{"operationId":"LeverageYieldController_getSolvedIntentPacket","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentPacketRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentPacketResponseDto"}}}}},"summary":"Poll the relayer until the fill packet lands on the destination chain","tags":["Leverage Yield"]}},"/leverage-yield/intents/extra-data":{"post":{"operationId":"LeverageYieldController_getIntentSubmitTxExtraData","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentExtraDataRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelayExtraDataResponseDto"}}}}},"summary":"Recover the relay extra data needed by /leverage-yield/intents/submit","tags":["Leverage Yield"]}},"/leverage-yield/intents/{txHash}/fill":{"get":{"operationId":"LeverageYieldController_getFilledIntent","parameters":[{"name":"txHash","required":true,"in":"path","description":"Hub-side intent transaction hash (32-byte hex)","schema":{"type":"string"}}],"responses":{"200":{"description":"","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"}},"summary":"Get the on-chain fill state for an intent","tags":["Leverage Yield"]}},"/leverage-yield/intents/{txHash}":{"get":{"operationId":"LeverageYieldController_getIntent","parameters":[{"name":"txHash","required":true,"in":"path","description":"Hub-side intent creation transaction hash (32-byte hex)","schema":{"type":"string"}}],"responses":{"200":{"description":"","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"}},"summary":"Look up an Intent struct by its hub-chain creation tx hash","tags":["Leverage Yield"]}},"/leverage-yield/gas/estimate":{"post":{"operationId":"LeverageYieldController_estimateGas","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GasEstimateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GasEstimateResponseDto"}}}}},"summary":"Estimate gas for a raw transaction on a spoke chain","tags":["Leverage Yield"]}},"/leverage-yield/fees/partner":{"get":{"operationId":"LeverageYieldController_getPartnerFee","parameters":[{"name":"amount","required":true,"in":"query","description":"Input amount in smallest unit (decimal string)","schema":{"example":"1000000","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeeResponseDto"}}}}},"summary":"Compute the partner fee for a given input amount","tags":["Leverage Yield"]}},"/leverage-yield/fees/solver":{"get":{"operationId":"LeverageYieldController_getSolverFee","parameters":[{"name":"amount","required":true,"in":"query","description":"Input amount in smallest unit (decimal string)","schema":{"example":"1000000","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeeResponseDto"}}}}},"summary":"Compute the protocol (solver) fee for a given input amount","tags":["Leverage Yield"]}},"/leverage-yield/submit-tx":{"post":{"operationId":"LeverageYieldController_submitTx","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeverageYieldSubmitTxDto"}}}},"responses":{"200":{"description":"","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 vault-swap transaction to be processed (relay, post-execution, etc.)","tags":["Leverage Yield"]}},"/leverage-yield/submit-tx/status":{"get":{"operationId":"LeverageYieldController_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","tron","robinhood","xrp","monad","ton","zcash","cardano"]}}],"responses":{"200":{"description":"","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 vault-swap transaction","tags":["Leverage Yield"]}}},"info":{"title":"SODAX Leverage Yield API","description":"REST API wrapping @sodax/sdk v2 LeverageYieldService (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":{"LsdSourceResponseDto":{"type":"object","properties":{"poolId":{"type":"string","description":"DefiLlama pool ID (UUID) for the LSD staking pool"},"fallbackAprPct":{"type":"number","description":"Hardcoded APR percentage used when the DefiLlama fetch errors","example":3.2},"label":{"type":"string","description":"Human label for UI display","example":"Lido (stETH)"}},"required":["poolId","fallbackAprPct","label"]},"LeverageVaultResponseDto":{"type":"object","properties":{"name":{"type":"string","description":"Stable lookup key — the lsoda* share-token symbol","example":"lsodaWEETH"},"vault":{"type":"string","description":"Deployed LeverageYieldVault proxy address on the Sonic hub"},"asset":{"type":"string","description":"The vault underlying asset on the hub (Sodax vault-token wrapper, e.g. sodaWEETH)"},"borrowToken":{"type":"string","description":"The token the vault borrows against `asset` collateral (e.g. sodaETH)"},"lsdSource":{"description":"LSD staking-APR source; omitted for non-LSD vaults","allOf":[{"$ref":"#/components/schemas/LsdSourceResponseDto"}]}},"required":["name","vault","asset","borrowToken"]},"VaultAssetResponseDto":{"type":"object","properties":{"asset":{"type":"string","description":"Underlying asset address on the hub (e.g. sodaWEETH)"}},"required":["asset"]},"LeverageYieldPositionResponseDto":{"type":"object","properties":{"collateral":{"type":"string","description":"Collateral supplied to the AAVE pool, vault-asset units (decimal string)"},"debt":{"type":"string","description":"Variable debt borrowed against the collateral, vault-asset units (decimal string)"},"ltv":{"type":"string","description":"Current loan-to-value in basis points (out of 10000)","example":"8500"},"healthFactor":{"type":"string","description":"AAVE health factor in WAD (1e18); below 1e18 implies liquidation risk (decimal string)"},"idleAsset":{"type":"string","description":"Asset held by the vault but not yet supplied to the pool (decimal string)"}},"required":["collateral","debt","ltv","healthFactor","idleAsset"]},"LeverageYieldAprResponseDto":{"type":"object","properties":{"supplyAprRay":{"type":"string","description":"AAVE supply rate of the vault `asset`, in RAY (decimal string)"},"borrowAprRay":{"type":"string","description":"AAVE variable borrow rate of the vault `borrowToken`, in RAY (decimal string)"},"targetLtvBps":{"type":"string","description":"Target LTV in basis points, from `vault.targetLTV()` (decimal string)"},"leverageMultiplierWad":{"type":"string","description":"Leverage multiplier ×1e18 (decimal string)"},"netAprRay":{"type":"string","description":"Net APR earned by a depositor at `targetLtvBps`, in RAY. Can be negative (decimal string)"}},"required":["supplyAprRay","borrowAprRay","targetLtvBps","leverageMultiplierWad","netAprRay"]},"LeverageYieldLsdAprResponseDto":{"type":"object","properties":{"aprRay":{"type":"string","description":"LSD staking APR in RAY (1e27 = 100%). `\"0\"` when no LSD source is configured (decimal string)"},"label":{"type":"string","description":"Human-readable provider label","example":"Lido (stETH)"},"stale":{"type":"boolean","description":"True when the value came from the hardcoded fallback rather than a live fetch"}},"required":["aprRay","label","stale"]},"LeverageYieldEffectiveAprResponseDto":{"type":"object","properties":{"supplyAprRay":{"type":"string","description":"AAVE supply rate of the vault `asset`, in RAY (decimal string)"},"borrowAprRay":{"type":"string","description":"AAVE variable borrow rate of the vault `borrowToken`, in RAY (decimal string)"},"targetLtvBps":{"type":"string","description":"Target LTV in basis points, from `vault.targetLTV()` (decimal string)"},"leverageMultiplierWad":{"type":"string","description":"Leverage multiplier ×1e18 (decimal string)"},"netAprRay":{"type":"string","description":"Net APR earned by a depositor at `targetLtvBps`, in RAY. Can be negative (decimal string)"},"lsdApr":{"description":"LSD staking APR snapshot used to compute the effective rates","allOf":[{"$ref":"#/components/schemas/LeverageYieldLsdAprResponseDto"}]},"effectiveSupplyAprRay":{"type":"string","description":"`supplyAprRay + lsdApr.aprRay`, in RAY (decimal string)"},"effectiveNetAprRay":{"type":"string","description":"The headline effective net APR, in RAY (decimal string)"}},"required":["supplyAprRay","borrowAprRay","targetLtvBps","leverageMultiplierWad","netAprRay","lsdApr","effectiveSupplyAprRay","effectiveNetAprRay"]},"VaultTotalAssetsResponseDto":{"type":"object","properties":{"totalAssets":{"type":"string","description":"Total vault assets in smallest unit (18 decimals, decimal string)"}},"required":["totalAssets"]},"PreviewDepositResponseDto":{"type":"object","properties":{"shares":{"type":"string","description":"Vault shares (lsoda*) that would be minted (decimal string)"}},"required":["shares"]},"PreviewWithdrawResponseDto":{"type":"object","properties":{"shares":{"type":"string","description":"Vault shares (lsoda*) that would be burned (decimal string)"}},"required":["shares"]},"PreviewRedeemResponseDto":{"type":"object","properties":{"assets":{"type":"string","description":"Underlying asset returned (decimal string)"}},"required":["assets"]},"ShareBalanceResponseDto":{"type":"object","properties":{"balance":{"type":"string","description":"Vault shares (lsoda*) held by the owner (decimal string)"}},"required":["balance"]},"MaxWithdrawResponseDto":{"type":"object","properties":{"maxWithdraw":{"type":"string","description":"Maximum withdrawable underlying asset (decimal string)"}},"required":["maxWithdraw"]},"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"]},"LeverageYieldDepositQuoteRequestDto":{"type":"object","properties":{"vault":{"type":"string","description":"Hub-side LeverageYieldVault proxy address (target vault)"},"tokenSrc":{"type":"string","description":"Source token address the user pays in","example":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"},"tokenSrcChainKey":{"type":"string","description":"Source spoke chain key (SODAX SpokeChainKey)","example":"0xa4b1.arbitrum"},"amount":{"type":"string","description":"Input amount in smallest unit of the source token (decimal string)","example":"1000000"},"quoteType":{"type":"string","description":"Quote type (only `exact_input` is supported)","enum":["exact_input"],"example":"exact_input"},"partnerFee":{"description":"Per-request partner-fee override. Omit for no partner fee (the instance carries no configured fee).","allOf":[{"$ref":"#/components/schemas/PartnerFeeDto"}]},"srcAddress":{"type":"string","description":"Source address — required only when `includeTxData=true`; ignored otherwise."}},"required":["vault","tokenSrc","tokenSrcChainKey","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","728126428","21071","66","48","607","133","1815"],"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","728126428","21071","66","48","607","133","1815"],"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"]},"LeverageYieldWithdrawQuoteRequestDto":{"type":"object","properties":{"vault":{"type":"string","description":"Hub-side LeverageYieldVault proxy address (source vault)"},"srcChainKey":{"type":"string","description":"Spoke chain the user signs the withdraw from","example":"0xa4b1.arbitrum"},"tokenDst":{"type":"string","description":"Destination token address the user receives","example":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},"tokenDstChainKey":{"type":"string","description":"Destination spoke chain key (SODAX SpokeChainKey)","example":"0x89.polygon"},"amount":{"type":"string","description":"Amount of vault shares (lsoda*) to withdraw, in smallest unit (18 decimals, decimal string)","example":"1000000000000000000"},"quoteType":{"type":"string","description":"Quote type (only `exact_input` is supported)","enum":["exact_input"],"example":"exact_input"},"srcAddress":{"type":"string","description":"Source address — required only when `includeTxData=true`; ignored otherwise."},"dstAddress":{"type":"string","description":"Recipient on `tokenDstChainKey` — required only when `includeTxData=true`; ignored otherwise."}},"required":["vault","srcChainKey","tokenDst","tokenDstChainKey","amount","quoteType"]},"DeadlineResponseDto":{"type":"object","properties":{"deadline":{"type":"string","description":"Unix timestamp (in seconds) at which the swap intent will expire","example":"1768400000"}},"required":["deadline"]},"CreateDepositIntentParamsDto":{"type":"object","properties":{"vault":{"type":"string","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)"},"srcChainKey":{"type":"string","description":"Source spoke chain the user holds `inputToken` on and signs from","example":"0xa4b1.arbitrum"},"srcAddress":{"type":"string","description":"User's address on `srcChainKey` (chain-specific format)","example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"},"inputToken":{"type":"string","description":"Spoke-side token the user pays in","example":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"},"inputAmount":{"type":"string","description":"Amount of `inputToken` to swap, in smallest unit (decimal string)","example":"1000000"},"minOutputAmount":{"type":"string","description":"Minimum acceptable lsoda* output in smallest unit (18 decimals, decimal string)","example":"990000000000000000"},"deadline":{"type":"string","description":"Unix timestamp (seconds) at which the intent expires; `0` for no expiry. Defaults to hub block time + 5 min.","example":"1768400000"},"solver":{"type":"string","description":"Solver address (EVM hub address). Defaults to 0x0000000000000000000000000000000000000000 for \"any solver\".","default":"0x0000000000000000000000000000000000000000"},"partnerFee":{"description":"Per-intent partner-fee override. Omit for no partner fee (the instance carries no configured fee).","allOf":[{"$ref":"#/components/schemas/PartnerFeeDto"}]}},"required":["vault","srcChainKey","srcAddress","inputToken","inputAmount","minOutputAmount"]},"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"]},"CreateWithdrawIntentParamsDto":{"type":"object","properties":{"vault":{"type":"string","description":"Hub-side LeverageYieldVault proxy address (doubles as the lsoda* token)"},"srcChainKey":{"type":"string","description":"Spoke chain the user signs the withdraw from (drives hub-wallet derivation)","example":"0xa4b1.arbitrum"},"srcAddress":{"type":"string","description":"User's address on `srcChainKey` (chain-specific format)","example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31"},"dstChainKey":{"type":"string","description":"Destination spoke chain where the solver delivers the swapped-back token","example":"0x89.polygon"},"outputToken":{"type":"string","description":"Output spoke-side token address on `dstChainKey`","example":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},"inputAmount":{"type":"string","description":"Amount of lsoda* shares to swap, in smallest unit (18 decimals, decimal string)","example":"1000000000000000000"},"minOutputAmount":{"type":"string","description":"Minimum acceptable output in smallest unit of the output token (decimal string)","example":"475117283"},"recipient":{"type":"string","description":"Recipient on `dstChainKey` (chain-specific format). Defaults to `srcAddress`."},"deadline":{"type":"string","description":"Unix timestamp (seconds) at which the intent expires; `0` for no expiry. Defaults to hub block time + 5 min.","example":"1768400000"},"solver":{"type":"string","description":"Solver address (EVM hub address). Defaults to 0x0000000000000000000000000000000000000000 for \"any solver\".","default":"0x0000000000000000000000000000000000000000"}},"required":["vault","srcChainKey","srcAddress","dstChainKey","outputToken","inputAmount","minOutputAmount"]},"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","728126428","21071","66","48","607","133","1815"],"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","728126428","21071","66","48","607","133","1815"],"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"]},"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"]},"LeverageYieldSubmitTxDto":{"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); Tron, XRP, TON, Zcash and Cardano 64 hex with an optional `0x`; 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","tron","robinhood","xrp","monad","ton","zcash","cardano"]},"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"},"operation":{"type":"string","description":"Which vault operation this submitted tx represents","enum":["deposit","withdraw"],"example":"deposit"}},"required":["txHash","srcChainKey","walletAddress","intent","relayData","operation"]},"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"},"releaseTxHash":{"type":"string","description":"Payout tx on the destination chain when it is an MPC-relay chain (tron, xrp, monad, ton, zcash, cardano). Set after `solved`, once the MPC relay pays the release out; absent before that and for every other destination.","example":"A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4E5F6A1B2C3D4E5F6A1B2"}},"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","tron","robinhood","xrp","monad","ton","zcash","cardano"],"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"]}}}}