Get deal
tribeunal_get_dealRead an escrow deal by slug to check deposit status, terms, wallets, amount, dates, and the indexer's last recorded state after creating a deal or opening a shared link.
Instructions
Read one escrow deal request by its slug: the hashed terms, both wallets, the amount and dates, and the status Tribeunal's indexer last recorded. Use it after tribeunal_create_deal to see whether the payer has deposited, or to read a deal whose shareUrl you were sent; it only reads, and no Tribeunal tool can fund, release, refund or dispute a deal. status is awaiting_deposit, expired (the deposit deadline passed with none recorded), funded, disputed, released, refunded, released_after_deadline, executed (a ruling was applied) or timed_out (no ruling in time, so the money was split). It is built from deposits and outcomes the indexer has recorded, which trail the network by minutes; live.bridge.stale true means the indexer has not kept up and the status may be older still. The account that created the request reads it with slug alone; anyone else must also pass share. Refused: 404 deal_not_found (unknown slug, or not yours to read without a current share value: identical by design); 404 with no code on a server with no deal endpoints. Returns {slug, status, chain, terms: {version, text, hash, metaEvidenceUri}, deal: {payer, payee, amountMinor, amount, asset, decimals, releaseAfter, fundBy, createdAt, panel, description}, params, live, onchain, dispute, resolution, viewer: {isCreator}, shareUrl, honesty}; onchain, dispute and resolution are null until a deposit, a dispute or an outcome is recorded, shareUrl is null unless you created the request, and releaseAfter, fundBy and createdAt are unix seconds. Proves: The stored terms and their hash, and the status Tribeunal's indexer had recorded as of live.bridge.updatedAt. Does NOT prove: The state on the network right now (the indexer trails it by minutes, and live.bridge.stale true means it has not kept up); that the payee accepted the terms; that either address belongs to the person you think; that the description is true
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The deal's slug: the 16 characters after /deals/ in its url or shareUrl (slug from tribeunal_create_deal). Not the whole URL and not a UUID. | |
| share | No | The ?share= value of the shareUrl you were sent: 64 hex characters. Leave it out for a request your own account created; anyone else needs it, and a link the creator has rotated since no longer works. |