Simulate a clearing proposal
x207_simulate_clearingDry run of a netting proposal: asks the contract (view simulate_clearing) whether the edges would be accepted for an epoch and how much debt they would cancel. Use it to check a proposal before a solver submits it; to see what a finished epoch actually netted use x207_epoch_report. Returns {epoch, edgeCount, result}. An invalid proposal (unknown member, amount above the debt, wrong epoch phase) comes back as an error text from the contract. Read-only, sends nothing.
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": {
"epoch": "<epoch>",
"edges": "<edges>"
},
"name": "x207_simulate_clearing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | 1 to 300 debt edges; a cycle of edges nets to zero cash. | |
| epoch | Yes | The epoch the proposal is for; it must be one that can still accept a clearing. |