## Documentation Index

Fetch the complete documentation index at: [/llms.txt](https://docs.relay.link/llms.txt)

Use this file to discover all available pages before exploring further.

### cURL

```bash
curl --request GET \
  --url https://api.relay.link/currencies/token/price
```

### JavaScript

```javascript
const options = {method: 'GET'};

fetch('https://api.relay.link/currencies/token/price', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.relay.link/currencies/token/price"

response = requests.get(url)

print(response.text)
```

### Status Codes

- **200**  
- **400**

### Response Examples

```json
{
  "price": 123
}
```

```json
{
  "error": "<string>"
}
```

### Headers

- `x-api-key`  
  - **Type:** string  
  - **Description:** Optional API key for authentication and higher rate limits.

### Query Parameters

- `address`  
  - **Type:** string  
  - **Required:** Yes  
  - **Description:** Token address to get price for

- `chainId`  
  - **Type:** number  
  - **Required:** Yes  
  - **Description:** Chain ID of the token

### Response

- **200**  
  - **Content-Type:** application/json  
  - **Description:** Default Response  
  - **Response Example:**  
  ```json
{
  "price": 123
}
```  
  
- **Error Response Example:**  
  ```json
{
  "error": "<string>"
}
```
