# Get Chip Info

{% hint style="info" %}
Retrieves information about in-game chips associated with a specific game.
{% endhint %}

**Endpoint:** `/game/chip/info`\
**Method:** GET

{% tabs %}
{% tab title="Request Parameters" %}

```typescript
{
	gameId: string; // The ID of the game
}
```

{% endtab %}

{% tab title="Success Response" %}

```typescript
{
  chips: {
    address: string;     // The address of the chip token
    name: string;        // The name of the chip
    symbol: string;      // The symbol of the chip
    image?: string;      // Optional URL to the chip's image
  }[];
}
```

{% endtab %}

{% tab title="Error Response" %}

```typescript
{
  error: string;
  details?: any;
}
```

{% endtab %}
{% endtabs %}

## Example Usage

```javascript
// Setup request parameters
const timestamp = Date.now().toString();
const gameId = 'game123';

// For GET requests with no body, pass null as the body for HMAC
const hmac = generateHmacSignature(timestamp, null, secretKey);

// Make the API request
const response = await axios.get(apiEndpoint + `/game/chip/info?gameId=${gameId}`, {
	headers: {
		apikey: apiKey,
		signature: hmac,
		timestamp: timestamp
	}
});

// Process the response
response.data.chips.forEach((chip) => {
	console.log(`Chip Name: ${chip.name}`);
	console.log(`Chip Symbol: ${chip.symbol}`);
	console.log(`Chip Address: ${chip.address}`);
	if (chip.image) {
		console.log(`Chip Image: ${chip.image}`);
	}
	console.log('---');
});
```


---

# 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://dev.plyr.network/api-reference/assets/tokens-erc-20/in-game-chips-overview/get-chip-info.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.
