Description
ChainRPC users may query the real-time Credits balance under their current subscription plan via API key.
Endpoint
POST https://api.zan.top/platform/v1/credit/detail
Request Parameters
Parameter | Type | Required | Description |
|---|---|---|---|
apiKey | String | Yes | Client authentication key, please create your own API key. |
Response Parameters
| Field | Type | Description |
|---|---|---|
| success | Boolean | true indicates successful execution |
| code | String | Error code (null when successful) |
| message | String | Error message (null when successful) |
| data | Object | Credit details container |
| → autoScaling | Boolean | Indicates whether credit overusage is permitted |
| → remainCredit | Long | Available credits balance |
| → specName | String | Current subscription plan |
| → totalCredit | Long | Total allocated credits |
| → usedCredit | Long | Consumed credits amount |
Response Example
{
"success": true,
"code": null,
"message": null,
"data": {
"autoScaling": false,
"remainCredit": 300000000,
"specName": "Free",
"totalCredit": 300000000,
"usedCredit": 0
}
}