refund_contract
Recover your payment from an expired contract if the worker never committed collateral or failed to deliver. The refund is included in the transaction itself, so no separate claim is needed.
Instructions
Refund an expired Idios contract as the requester (Alice).
Valid in two situations, both requiring the contract's expiry_block to have passed:
Open (worker never committed collateral): your payment is returned.
Active (worker committed collateral but never delivered): your payment is returned, and the worker's collateral is forfeited to the protocol treasury as a non-delivery penalty. You never receive the worker's collateral yourself, so a tight expiry cannot be used to seize their stake.
Funds are returned in the refund transaction itself. No separate claim is needed afterwards. Refund is not possible once a delivery has been submitted (AwaitingApproval or later); use approve, dispute, or the dispute resolution flow instead.
Args: job_id: The contract ID to refund.
Returns confirmation of refund, or error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |