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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"offerAddress": "<offerAddress>",
"askAddress": "<askAddress>",
"amount": "<amount>"
},
"name": "tegro_dex_quote_swap"
}
}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) |