A complete, plain-English walkthrough — no blockchain knowledge required.
The Scenario
Alice is a freelance developer. Bob wants to hire her to build a website for 50 IRM. They have never worked together. Alice does not know if Bob will pay after she delivers. Bob does not know if Alice will deliver after he pays. Neither wants to go first.
Irium escrow solves this. Bob locks 50 IRM on-chain before Alice does any work. The chain enforces the agreement — no bank, no lawyer, no intermediary.
Before anything goes on-chain, they agree on: the amount (50 IRM), what counts as delivery (a working website at an agreed URL), and a deadline (a block height — about 1 block per 10 minutes).
They write the terms into a document file. This file is hashed and recorded on-chain so neither party can claim the terms were different later.
Bob generates a one-time secret and creates the agreement:
Bob sends the agreement JSON to Alice. Alice inspects it and confirms the terms are correct before anything is funded.
Bob locks 50 IRM into the on-chain contract:
Alice builds the website. When it is ready, she notifies Bob for review.
If Bob is satisfied with the delivery, he sends Alice the secret. Alice uses it to claim the funds:
The 50 IRM moves from the escrow output to Alice's address. The agreement is settled.
| Situation | Outcome |
|---|---|
| Alice delivers, Bob accepts | Alice receives 50 IRM |
| Alice delivers, Bob withholds secret | Alice submits proof — attestor can release funds |
| Alice does not deliver | Bob reclaims 50 IRM automatically after timeout |
| Bob never responds after timeout | Bob reclaims 50 IRM automatically |
| Bob tries to take funds back early | Impossible — HTLC contract prevents it |
Two on-chain transactions: one to fund, one to release or refund. Each transaction costs approximately 0.001 IRM in network fees. Total cost for a complete agreement: roughly 0.002 IRM.