verify_fees
Verify off-chain fee quote matches on-chain DPXSettlementRouter charge. Returns true if fees match, enabling settlement.
Instructions
Verify that the off-chain fee quote matches what the on-chain DPXSettlementRouter contract will charge. Returns feesMatch (true/false). If feesMatch is true, proceed with settlement. Call this after get_quote and before settle.
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": {
"amountUsd": "<amountUsd>"
},
"name": "verify_fees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amountUsd | Yes | Settlement amount in USD | |
| hasFx | No | Cross-currency settlement? | |
| esgScore | No | ESG score 0–100 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feesMatch | No | ||
| offChainFee | No | ||
| onChainFee | No | ||
| delta | No | ||
| recommendation | No |