# Pool Lookup

Tinyman pools are discovered by generating a Pool LogicSig contract from the published template and computing the address associated with that LogicSig. The following variables must be replaced in the template to generate the LogicSig for a pool; Asset 1 ID, Asset 2 ID and Validator App ID.

See the Python SDK for the [reference implementation](https://github.com/tinymanorg/tinyman-py-sdk/blob/main/tinyman/v1/pools.py#L19) of this lookup.

{% hint style="danger" %}
All clients interacting with Tinyman pools MUST generate pool addresses in this way. It is not safe to assume any address is a Pool if it is not verified with this method.
{% endhint %}


---

# 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.tinyman.org/v1-integration/pool-lookup.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.
