Decode a quote result
decode_quoteDecode the eth_call result YOUR node returned for a prepare_quote call: net output after the 0.28% fee, price impact, the Phoenix Check verdict (ok / caution / danger / blocked — fails closed) and, in preview mode, the on-chain floor the Quoter reports for the route (ironFloor, effectiveMinOut). With a recipient and a userMinOut, it also returns unsigned calldata verified against the request, whose minimum output is the higher of your userMinOut and the quoted net output less slippageBps, never under the on-chain floor (exact mode: exactly your userMinOut; a recipient without a usable userMinOut returns a txError instead). The calldata clears the swap math, not the token transfer: before sending, simulate it as an eth_call to the Router from the paying address. Pure computation: it cannot authenticate your node's answer.
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": {
"request": "<request>",
"result": "<result>"
},
"name": "decode_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | the 0x hex result of the eth_call on your node | |
| request | Yes | the `request` object prepare_quote returned, verbatim |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: see code, error | |
| tx | No | ||
| code | No | ||
| meta | No | ||
| mode | No | ||
| entry | No | ||
| error | No | ||
| exact | No | ||
| quote | No | ||
| route | No | ||
| checks | No | ||
| minOut | No | ||
| usdOut | No | ||
| chainId | No | ||
| tokenIn | No | ||
| txError | No | ||
| amountIn | No | ||
| approval | No | ||
| deadline | No | ||
| tokenOut | No | ||
| amountOut | No | ||
| encodedBy | No | ||
| executeWith | No | ||
| unwrapAfter | No | ||
| wrapRequired | No | ||
| grossAmountOut | No | ||
| protocolVersion | No |