> For the complete documentation index, see [llms.txt](https://saseul-gold.gitbook.io/saseul-gold-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://saseul-gold.gitbook.io/saseul-gold-docs/dex-api/token-pair-info-api.md).

# Token Pair Info API

Inquires information about two token pairs.&#x20;

At this time, the order of a and b is adjusted by itself inside the contract.&#x20;

For example, both a,b → (db6ea1ed, 85e8342) and a,b → (85e8342, db6ea1ed) refer to the same liquidity pool and return the same value.&#x20;

Token pairs are separated by pair\_address.

* **Raw Request Payload**

```
{
    "type": "GetPairInfo",
    "token_address_a": "db6ea1edf4ed76bc9395100aa50bdaf43c428d77f5a3c4790d564
    "token_address_b": "85e8342145958a5a242773694ef5d4f3618ebce8a246b939c02
}
```

* **Signed Request Payload**

```
{
    "request": {
        "type": "GetPairInfo",
        "token_address_a": "db6ea1edf4ed76bc9395100aa50bdaf43c428d77f5a3c4790d564
        "token_address_b": "85e8342145958a5a242773694ef5d4f3618ebce8a246b939c02
        "from": "910727363ee63f4cf2b8206bda68b4284928f0b41788",
        "timestamp": 1735360020891000
    },
    "public_key": "06b4b269b65a62740132177ff0283594b510effdcb8cb4153e7bee25089b",
    "signature": "17b13609f971ab1e59d6db7bc211d3c829cb1598768e78a2e71cfafb86d899"
}
```

* **Response**

```
{
    "accumulated_reward_per_unit": "30000418896",
    "address_a": "450a8c9a1a72c285d919ef86c673542b5396ee79dffb6b58fc829490712a",
    "address_b": "dc2d6ab6d6a6000fb82931cc6ea3989629d051612701158df1214e62ac25",
    "pair_address": "861e97ffae8548adb896c0651b6c12a41db0ef9594e62a293b78f11d775",
    "rate_a_to_b": "996904290447128058",
    "rate_b_to_a": "996896329519330848",
    "reserve_a": "9999980664821156668416",
    "reserve_b": "10000020595224656198656",
    "total_liquidity": "10000000000000000000000"
}
```


---

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

```
GET https://saseul-gold.gitbook.io/saseul-gold-docs/dex-api/token-pair-info-api.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.
