Reconcile invoices against transfers
reconcile_booksMatch invoices to stablecoin transfers by memo first, then exact amount and asset inside the invoice window. Names what is left over in both directions: invoices nobody paid, money nobody invoiced, invoices paid twice. A duplicate is counted once, never twice. Do NOT use as proof of who the payer was.
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": {
"invoices": "<invoices>",
"transactions": "<transactions>"
},
"name": "reconcile_books"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoices | Yes | id, amount, asset, created_at; optional due_at, payee, memo. | |
| transactions | Yes | tx_hash, amount, asset, timestamp; optional to, memo. |