submit_delivery
Submit the delivery hash for an active contract to trigger immediate settlement on match or move to approval for review, enabling workers to finalize escrow payments.
Instructions
Submit delivery hash for an Active Idios contract as the worker (Bob).
For Mode A: if delivery_hash matches the result_hash locked at creation, the contract auto-settles immediately and you can claim funds.
For Mode B: contract moves to AwaitingApproval. The requester has review_window_blocks to approve or dispute. If they do nothing, call claim_after_timeout once the window expires.
Send the actual deliverable file to the requester off-chain (via whatever channel you agreed). The file never touches the blockchain.
Args: job_id: The contract ID to submit delivery for. delivery_hash: SHA-256 hash of your deliverable (64-char hex string). Generate with: sha256sum yourfile (Linux/Mac) or Get-FileHash yourfile -Algorithm SHA256 (Windows PowerShell).
Returns confirmation of submission, or error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| delivery_hash | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |