> For the complete documentation index, see [llms.txt](https://docs.trustlesswork.com/trustless-work/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trustlesswork.com/trustless-work/v2-en/api-rest/escrows/get-escrow-by-contract-ids.md).

# Get Escrows Details

{% hint style="info" %}
This endpoint replaces `GET /helper/get-escrow-by-contract-ids`. The old path no longer exists.
{% endhint %}

### **Headers**

<table><thead><tr><th width="366">Name</th><th>Value</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/json</code></td></tr><tr><td>x-api-key</td><td><code>&#x3C;token></code></td></tr></tbody></table>

### Open API

## GET /escrows/details

Returns the full state and deposits of up to 50 escrows in one request. No event timeline — use `GET /escrows/{contractId}/events` for that.

### Query parameters

| Name        | Type             | Description                                                           |
| ----------- | ---------------- | --------------------------------------------------------------------- |
| contractIds | string\[] (1–50) | Contract addresses (`C…`) to fetch. Repeat the parameter once per id. |

{% hint style="warning" %}
Unknown ids are **silently absent** from the response rather than raising an error. Always check which ids came back before assuming an escrow exists.
{% endhint %}

### **What this Endpoint returns?**

An array of escrow objects, each containing the current state, the camelCase `snapshot`, the resolved `asset`, and the recorded `deposits`. Every amount is a decimal string.

Because the request itself is bounded at 50 ids, this endpoint is **not paginated**.

### Use Example:

```typescript
import axios from "axios";

const http = axios.create({
  baseURL: "https://beta.api.trustlesswork.com",
  timeout: 10000,
  headers: {
    "Content-Type": "application/json",
    "x-api-key": your_api_key,
  },
});

export const useExample = async () => {
  const contractIds = [
    "CCR6HLU3LQMXOESNA6TOS2RZKGEBWQG3EN5FMZNC43RVXZWTTDCZ...",
    "CCA7WTCVCQ5JPKNIFSHPSJLJ3FJ3GKPNEVAIHP6T..."
  ];

  const params = new URLSearchParams();
  contractIds.forEach(id => params.append("contractIds", id));

  const response = await http.get(`/escrows/details?${params.toString()}`);
  return response.data;
}
```

{% hint style="info" %}
The old endpoint took a `validateOnChain` flag to re-check data against the chain. There is no equivalent here: escrow state is recorded from on-chain events automatically, so there is nothing to reconcile. When you need chain-authoritative truth, read the chain.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.trustlesswork.com/trustless-work/v2-en/api-rest/escrows/get-escrow-by-contract-ids.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
