dex-simulate-swap
Simulate token swaps on the MantraChain DEX to view expected outcomes before execution. Verify token availability in pools using dex-get-pools for accurate results.
Instructions
Simulate a token swap to get expected outcome without executing it - must first check two tokens are available in the DEX pools by using dex-get-pools
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": {
"networkName": "<networkName>",
"tokenInDenom": "<tokenInDenom>",
"tokenInAmount": "<tokenInAmount>",
"tokenOutDenom": "<tokenOutDenom>"
},
"name": "dex-simulate-swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| networkName | Yes | Name of the network to use | |
| tokenInAmount | Yes | Amount of tokens to swap | |
| tokenInDenom | Yes | Denomination of the token to swap from | |
| tokenOutDenom | Yes | Denomination of the token to swap to |