view_contract
Retrieve full on-chain state of an Idios contract to decide the next action. Read-only, no wallet funds needed.
Instructions
Get the current on-chain state of an Idios contract.
Returns all contract fields including status, payment, collateral, dispute_fee, delivery_hash, expiry_block, mode, and asset_id.
Status values: Open(0), Active(1), AwaitingApproval(2), Disputed(3), Settled(4), Refunded(5), ResolvedToAlice(6), ResolvedToBob(7), Closed(8), Voided(9), Cancelled(10).
Use this to check contract state before deciding what action to take. This call is read-only and does not require wallet funds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |