# settle/escrow/settled

https://toip.tools/spec/settle/escrow/settled/0.1

After it submits the resolve transaction, the processor tells everyone the escrow settled, with the transaction signature, the payee's share and the evidence hash. Each party confirms the settlement against the chain. The payee then sends the payer a receipt.

- **Sent**: processor → payer's party, payee's party and arbiter
- **Kind**: One-way. No response is expected; any answer is a separate message.
- **Envelope**: Signed by the issuer, addressed to one recipient, timestamped, and encrypted in a TSP Direct message. The signature and recipient binding prevent its use as a bearer token.
- **Defined in**: [`projects/settle/src/protocol/specs.ts:15`](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/protocol/specs.ts#L15) as `ESCROW_SETTLED`
- **Handled in**: [`projects/settle/src/agents/party.ts`](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/src/agents/party.ts)
- **Design**: [7. The Trust Tasks](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/settle/docs/design.md#7-the-trust-tasks) in `projects/settle/docs/design.md`

## Payload

projects/settle/src/agents/messages.ts:32:

```ts
export interface SettledPayload {
  termsHash: string;
  escrow: Address;
  transaction: string;
  payeeUnits: string;
  evidenceHash: string;
}
```

## Document envelope

Every Trust Task uses this envelope. Replace `payload` with the structure shown above.

Shape of a document of this type:

```json
{
  "id": "urn:uuid:…",
  "type": "https://toip.tools/spec/settle/escrow/settled/0.1",
  "issuer": "did:key:… (the sender)",
  "recipient": "did:key:… (the receiver)",
  "issuedAt": "2026-11-06T18:00:00.000Z",
  "payload": { … },
  "proof": {
    "type": "DataIntegrityProof",
    "cryptosuite": "eddsa-jcs-2022",
    "verificationMethod": "did:key:…#…",
    "proofPurpose": "assertionMethod",
    "proofValue": "z…"
  }
}
```

---

This is the Markdown version of https://toip.tools/spec/settle/escrow/settled/0.1/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
