ClaimsService
Get Daily Claim Status
Get today's reward and claim status for the authenticated root account. Requires a session JWT; API keys are not accepted. Future reward schedules are not returned.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/trading/daily-claim' \ --header 'Accept: */*' \ --header 'X-API-KEY-ID: YOUR_API_KEY_ID' \ --header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \ --header 'X-API-SIGNATURE: YOUR_API_SIGNATURE'
Responses
{
"campaign": {
"campaignId": "value",
"claimPolicy": "UTC_DAILY",
"description": "Example configuration for the API playground.",
"name": "value"
},
"claimId": "value",
"payoutDelayReason": "CLAIM_TEMPORARILY_UNAVAILABLE",
"resetAt": "2025-01-01T00:00:00Z",
"rewards": [
{
"amount": "18.446744073709551617",
"assetCode": "USDC",
"assetId": 100
}
],
"state": "AVAILABLE",
"subaccountId": "45LUmqjT"
}Stable campaign identifier.
valueHow frequently each root account may claim from this campaign.
UTC_DAILYCampaign description. Existing claims retain the description that applied when they were created.
Example configuration for the API playground.Campaign name. Existing claims retain the name that applied when they were created.
valueClaim identifier. Empty until a claim has been created.
valueWhy the payout of today's claim is delayed: the claim reward is temporarily unavailable, or reward payouts for this campaign are paused. Set only while the state is payout delayed; unspecified or omitted otherwise.
CLAIM_TEMPORARILY_UNAVAILABLEStart of the next UTC calendar day.
2025-01-01T00:00:00ZClaim amount in 18-decimal unified asset units.
18.446744073709551617Asset code.
USDCAsset identifier.
100Current state of today's claim.
AVAILABLESubaccount public id that receives today's claimed reward. Zero or omitted when no claim has been created yet or when the reward is paid to the root account.
45LUmqjT| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |