view_contract
Retrieve the current on-chain state of an Idios contract including status, payment, collateral, and expiry. Use this read-only tool to check contract details before taking any action.
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 |