# Middleware&#x20;

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Middleware Documentation</td><td><a href="https://app.gitbook.com/s/yxhRUAwn7tH8JUboTur7/ae_mdw/docs">docs</a></td><td><a href="https://839505583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FggVl0Jqy6Dd8f38hGk63%2Fuploads%2FO7MHc7XJYKrtCX2zPCz5%2Fflip-30deg-gradient2.svg?alt=media&#x26;token=9a5fcdda-f853-495e-a65b-ac9c4272af37">flip-30deg-gradient2.svg</a></td></tr><tr><td>Middleware Docker Setup</td><td><a href="https://app.gitbook.com/s/yxhRUAwn7tH8JUboTur7/ae_mdw/docs/middleware_setup">AeMdw Docker Setup Documentation</a></td><td><a href="https://839505583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FggVl0Jqy6Dd8f38hGk63%2Fuploads%2FuCuUz6N9JVi7JNEARpet%2F30deg-gradient.svg?alt=media&#x26;token=14b19a78-76dd-40be-b953-2b92048cd356">30deg-gradient.svg</a></td></tr><tr><td>Middleware Hyperchains Setup</td><td><a href="https://app.gitbook.com/s/yxhRUAwn7tH8JUboTur7/ae_mdw/docs/hyperchains_setup">AeMdw Hyperhain Setup Documentation</a></td><td><a href="https://839505583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FggVl0Jqy6Dd8f38hGk63%2Fuploads%2FFg8uXb2tgWcUjB3yscps%2Fflip-30deg-gradient.svg?alt=media&#x26;token=7011595e-bad7-4b5e-926e-501080d42820">flip-30deg-gradient.svg</a></td></tr></tbody></table>

The [æternity Middleware](https://app.gitbook.com/s/yxhRUAwn7tH8JUboTur7/ae_mdw) (MDW) is a powerful caching and reporting layer that sits between applications and æternity nodes, designed to enhance query performance and extend the blockchain's querying capabilities. It provides fast access to blockchain data and supports complex queries that would be inefficient or impractical to implement directly on the node level.

The Middleware documentation covers everything you need to know about setting up, configuring, and using the middleware, including:

* Complete setup instructions for both mainnet and testnet environments
* Comprehensive API reference for all available endpoints
* Detailed guides for working with blockchain data like transactions, contracts, and tokens
* Advanced features such as pagination and websocket interfaces
* Tools and configurations for development and deployment

The middleware is currently hosted at <https://mainnet.aeternity.io/mdw/> for production use, though you can also deploy your own instance following the setup guides in this documentation.

*Note: All examples in this documentation are based on the hosted infrastructure, but endpoints may differ slightly for local deployments.*


---

# Agent Instructions: 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:

```
GET https://docs.aeternity.com/aeternity-developer-tools/development-infrastructure/middleware.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
