settle
Execute cross-border or domestic settlements with AI-driven oracle checks. Returns settlement ID, status, and fees. Sandbox mode by default for testing.
Instructions
Execute a DPX settlement — cross-border or domestic (intra-country). The Settlement Agent checks oracle conditions and local rail health, reasons about whether conditions are right, and executes on-chain (or returns sandbox result if sandbox=true). Same-currency settlements (e.g. USD→USD) skip the FX fee automatically. Returns settlement ID, status (executed/held/sandbox/failed), tx hash, net amount, fees, oracle status, and AI reasoning. IMPORTANT: By default runs in sandbox mode (no real funds moved). Set sandbox=false only when ready for live execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in source currency units | |
| sourceCurrency | Yes | Source currency: USD, EUR, GBP, USDC, EURC | |
| destinationCurrency | Yes | Destination currency: USD, EUR, GBP, USDC, EURC. Use same as sourceCurrency for domestic/intra-country settlements (no FX fee). | |
| recipientAddress | Yes | On-chain recipient wallet address (0x...) | |
| quoteId | No | Pre-fetched quoteId from get_quote (optional — agent fetches if omitted) | |
| purpose | No | Payment purpose: intercompany, vendor-payment, payroll, treasury | |
| referenceId | No | External reference ID (invoice number, TMS ID, etc.) | |
| esgScore | No | ESG score override 0–100 (testing only) | |
| sandbox | No | Sandbox mode: real calculations, no on-chain execution. Default: true. Set false for live settlement. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | ||
| httpStatus | No | ||
| result | No |