Swap quote
trdefi_quotePrice a swap against one position, on-chain, at the current block — no custody, nothing signed, nothing moved. Works on any pair the position trades, not only stablecoins. Use this to check liquidity and get the output amount before preparing a swap. If a position answers "Strategy is gated" (revert 0x89c62b64), the maker embedded an access-licence check in the order: the CALLER must hold the 1inch Aqua access token. That is a property of the strategy, not a bug — pass from with an address that holds the token to simulate as that caller. Measured on 2026-10-12: about half of sampled positions are gated this way, and the split is strongly per-network — BNB Chain quotes cleanly, Ethereum and Base are almost entirely behind the gate. Quotes are simulated on 17 networks: ethereum, base, arbitrum, optimism, polygon, arc, bnb-chain, gnosis, avalanche, sonic, linea, zksync-era, monad, unichain, hyperevm, cronos and robinhood-chain. This list is the set the quote path actually serves; if a network is not on it, do not promise a quote for it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | Strategy hash to quote against. | |
| chain | No | Network key. Defaults to "ethereum". | |
| amount | Yes | Input amount in token base units, as an integer string. e.g. "1000000" for 1 USDC. | |
| direction | No | aToB |