aex402_quote
Get a swap quote from an AeX402 pool. Calculates expected output, price impact, and fees without executing.
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": {
"pool": "<pool>",
"inputMint": "<inputMint>",
"amount": "<amount>"
},
"name": "aex402_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | Pool account address (base58) | |
| amount | Yes | Input amount in atomic units (lamports/smallest unit) | |
| inputMint | Yes | Input token mint address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| feeBps | No | ||
| inputMint | Yes | ||
| outputMint | Yes | ||
| inputAmount | Yes | u64 as string | |
| priceImpactPct | No | percent, 4 decimals | |
| estimatedOutput | Yes | u64 as string |