Skip to main content
GET
Get Batch Status

Overview

The Get Batch Status endpoint allows you to retrieve detailed information about a flywheel batch, including its current status, execution results, and pipeline details. This is useful for monitoring the progress of batch operations and checking execution results.

Authentication

This endpoint requires API key authentication. The API key must have either burn or airdrop scopes. To authenticate, provide your API key in the x-believe-api-key request header. Example:

Rate Limiting

Requests to this endpoint are rate-limited to 10 requests per second per API key.

Path Parameters

Example Request

Response Body

On success, the API returns a JSON object containing the complete batch information:

Batch Status Values

Init Result Object (Optional)

Present when status is FINALIZED or later.

Execute Result Object (Optional)

Present when status is EXECUTED or FAILED.

Example Response (Finalized Batch)

Example Response (Executed Batch)

Use Cases

  1. Monitor Batch Progress: Check if a batch has moved from FINALIZED to EXECUTED status.
  2. Retrieve Execution Results: Get detailed transaction hashes and bundle IDs after execution.
  3. Debug Failed Batches: Examine error messages and failure details when status is FAILED.
  4. Audit Trail: Review the complete lifecycle of a batch operation with timestamps.
  5. Integration Status Checks: Poll this endpoint to determine when to proceed with next steps in your application flow.

Error Codes

The batch status endpoint can return specific error codes.

Example Error Response

Integration Tips

  • Polling Strategy: Use this endpoint to poll for status changes after calling batch init or execute.
  • Error Handling: Check both the HTTP status and the batch status field for complete error information.
  • Transaction Verification: Use the returned transaction hashes to verify operations on Solana explorers.
  • Status Transitions: Batches typically progress: AVAILABLE_TO_QUEUEFINALIZEDEXECUTED/FAILED.

Authorizations

x-believe-api-key
string
header
required

Path Parameters

batchId
string<uuid>
required

The UUID of the batch to retrieve status for.

Response

Successful batch status retrieval.

id
string
required

The unique batch identifier (UUID).

flywheelId
string
required

The flywheel this batch belongs to.

tokenId
string
required

The token ID associated with this batch.

mintAddress
string
required

The Solana mint address for the token.

status
enum<string>
required

Current batch status.

Available options:
AVAILABLE_TO_QUEUE,
FINALIZED,
EXECUTED,
FAILED
batchIndex
string
required

The multisig batch index used for execution.

vaultIndex
string
required

The vault index within the multisig.

multisig
string
required

The multisig wallet address.

vaultAddress
string
required

The vault address for token operations.

dateCreated
string<date-time>
required

ISO 8601 timestamp when the batch was created.

dateUpdated
string<date-time>
required

ISO 8601 timestamp when the batch was last updated.

initResult
object

Results from the batch initialization process (optional).

executeResult
object

Results from the batch execution process (optional).