Quote a swap (read-only)
tegro_dex_quote_swapSimulate an exact-in swap quote on Tegro Finance DEX, estimating the amount of ask tokens received for a given offer token amount. No transaction is built or signed.
Instructions
Simulate an exact-in swap: how much of the ask token you'd receive for a given amount of the offer token. No transaction is built or signed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Human amount of the offer token, e.g. 1.5 | |
| decimals | No | Offer token decimals (default 9) | |
| slippage | No | Slippage tolerance, e.g. 0.01 = 1% (default 0.01) | |
| askAddress | Yes | Token you want | |
| offerAddress | Yes | Token you give (use EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c for TON) |