This endpoint retrieves the currently active flywheel batch for a specific token, if one exists.
null
if no current batch exists for the token.
burn
or airdrop
scopes.
To authenticate, provide your API key in the x-believe-api-key
request header.
Example:
Field | Type | Required | Description |
---|---|---|---|
tokenId | string | Yes | The token ID to retrieve the current batch for. |
/batch/{batchId}
)null
if no current batch exists for the tokenStatus | Description |
---|---|
AVAILABLE_TO_QUEUE | Batch has been created but not yet finalized for execution. |
FINALIZED | Batch has been finalized and is ready for execution approval. |
EXECUTED | Batch has been successfully executed (may still be “current” briefly). |
FAILED | Batch execution failed. |
Error Code | Status | Description |
---|---|---|
ERR_BATCH_CURRENT_FAILED | 500 | Failed to retrieve current batch information. |
null
response is normal and indicates no current batch exists for the token.
EXECUTED
or FAILED
status, it may no longer be considered “current” depending on your implementation.