# Get NFT Credit

{% hint style="info" %}
Retrieves credit information for NFT operations on the PLYR platform.
{% endhint %}

**Endpoint:** `/game/nft/credit`\
**Method:** GET

{% tabs %}
{% tab title="Request Parameters" %}
No parameters required.
{% endtab %}

{% tab title="Success Response" %}

```typescript
{
	credit: {
		remaining: number; // Remaining NFT credit
		total: number; // Total NFT credit allowance
		reset: string; // Timestamp when credit will reset
	}
}
```

{% endtab %}

{% tab title="Error Response" %}

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

{% endtab %}
{% endtabs %}

## Example Usage

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

// 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/nft/credit', {
	headers: {
		apikey: apiKey,
		signature: hmac,
		timestamp: timestamp
	}
});

// Process the response
console.log(`Remaining NFT credit: ${response.data.credit.remaining}`);
console.log(`Total NFT credit: ${response.data.credit.total}`);
console.log(`Credit reset time: ${response.data.credit.reset}`);
```
