claim_funds
Claim earned payment and collateral from a settled or resolved Idios contract after dispute resolution, with automatic duplicate-claim protection.
Instructions
Claim funds from a Settled or Resolved Idios contract.
Call this after the contract reaches one of these states:
Settled (status=4): worker claims payment + collateral
ResolvedToBob (status=7): worker won the dispute, claims payment + collateral
ResolvedToAlice (status=6): requester won the dispute, claims payment + collateral A refunded contract (status=5) returns funds directly and needs no claim.
The dispute winner receives payment + collateral only. The dispute fee is split among the consensus voting arbitrators, never awarded to a party.
A Resolved contract stays at status 6 or 7 forever, even after the winner is paid. This tool checks the winner_paid flag via view_dispute before claiming, and reports "already claimed" instead of firing a call that would halt on chain.
The amounts are read from chain by the contract; only job_id is sent.
Args: job_id: The contract ID to claim from.
Returns confirmation of claim, or error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |