# Token data

Access supported token data

```typescript
import { tokenData, tokens, oTokens, controllers } from "liquidops";
```

Get token details

```typescript
const qarData = tokenData.QAR;
/* {
    name: "Quantum Arweave",
    ticker: "QAR", 
    address: "XJYGT9...",
    oTicker: "oQAR",
    oAddress: "CbT2b...",
    controllerAddress: "vYlv6...",
    // ...other metadata
} */
```

Get base token addresses

```typescript
const tokenAddress = tokens.QAR; // "XJYGT9..."
```

Get oToken addresses

```typescript
const oTokenAddress = oTokens.oQAR; // "CbT2b..."
```

Get controller addresses

```typescript
const controllerAddress = controllers.QAR; // "vYlv6..."
```

Helper function to resolve token addresses and related data

```typescript
import { tokenInput, type TokenInput } from "liquidops";
```

Can use either ticker or address

```typescript
const resolved = tokenInput("QAR");
```

Or

```typescript
const resolved = tokenInput("XJYGT9ZrVdzQ5d7FzptIsKrJtEF4jWPbgC91bXuBAwU");

/* Returns:
{
  tokenAddress: "XJYGT9...",    // Base token address
  oTokenAddress: "CbT2b...",    // oToken address
  controllerAddress: "vYlv6..." // Controller process address
}
*/
```

Currently supported tokens: QAR (Test Quantum Arweave) and USDC (Test USD Circle)


---

# 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.liquidops.io/developers/liquidops-js/token-data.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.
