Quote AETH to OSMO swap
quote_swapQuote swapping AETH for OSMO in the AETH/OSMO pool on Osmosis testnet: the OSMO the swap would return after Osmosis's taker fee and the pool's fee, the price before the swap and the price it gets, what fees and price impact cost together, and a minOutput for a slippage you choose. Read-only: it reads Osmosis's own estimate and moves nothing. The pool is small and moves with every trade, so quote just before you swap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | the AETH to swap, with its unit: "1 AETH" or "1000000uaeth" | |
| slippagePercent | No | how far below this quote a swap may fill, for minOutput (default 1, at most 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| in | Yes | ||
| out | Yes | Osmosis's estimate of what the swap returns, after its taker fee and the pool's swap fee | |
| note | Yes | ||
| pool | Yes | ||
| chain | Yes | where the pool is: Osmosis testnet | |
| price | Yes | OSMO per AETH this swap gets | |
| quotedAt | Yes | ||
| reserves | Yes | ||
| minOutput | Yes | the least to accept: the estimate less slippagePercent. A swap set to this fails (and refunds) rather than fill below it | |
| spotPrice | Yes | OSMO per AETH before this swap, from the reserves | |
| costPercent | Yes | how far price is below spotPrice: fees and price impact together | |
| swapFeePercent | Yes | the pool's own fee; Osmosis's taker fee comes on top | |
| slippagePercent | Yes |