Simulate a clearing proposal
x207_simulate_clearingDry-run a netting proposal for an epoch to check whether its debt edges would be accepted and how much debt they would cancel before a solver submits it.
Instructions
Dry 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.
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. |