This endpoint executes a flywheel batch after approval, processing all pipeline transactions and returning detailed execution results.
proposalApproveTx
from batch init has been signed with your registered wallet address and approved by the required parties.
The endpoint processes transactions in chunks of 4 for optimal performance and uses Jito bundles to ensure reliable execution on Solana. It provides detailed results including successful executions, failures, and transaction hashes.
burn
or airdrop
scopes.
To authenticate, provide your API key in the x-believe-api-key
request header.
Example:
Field | Type | Required | Description |
---|---|---|---|
batchId | string | Yes | The unique identifier (UUID) of the batch to execute (returned from batch init). |
signedTx | string | Yes | Base64-encoded signed transaction (the proposalApproveTx from batch init, signed by you). |
Field | Type | Description |
---|---|---|
batchId | string | The batch ID (UUID) that was executed. |
result | Object | Detailed execution results for all transactions in the batch. |
Field | Type | Description |
---|---|---|
total | number | Total number of pipeline transactions in the batch. |
totalSuccessful | number | Number of pipeline transactions that executed successfully. |
totalFailed | number | Number of pipeline transactions that failed to execute. |
successfulExecutions | Array | Array of successful bundle executions with their details. |
failedOnTransactionIndex | number | (Optional) Transaction index where failure occurred. |
failedStartTransactionIndex | number | (Optional) Starting transaction index of the failed batch. |
failedTxMsg | string | (Optional) Error message describing the failure. |
Field | Type | Description |
---|---|---|
bundleId | string | Jito bundle ID (hex string) for this group of transactions. |
txHashes | Array | Array of Solana transaction signatures (base58 strings) for executed transactions. |
/flywheel/batch/init
successfullyproposalApproveTx
with your registered wallet addressError Code | Status | Description |
---|---|---|
ERR_TOKEN_NOT_FOUND | 404 | The token associated with the API key could not be found. |
ERR_KEY_NOT_FOUND | 404 | The API key could not be found or is invalid. |
ERR_FLYWHEEL_NOT_FOUND | 404 | No flywheel is associated with the provided API key. |
ERR_BATCH_EXECUTE_FAILED | 500 | Failed to execute the batch. Check the response for detailed failure information. |
/flywheel/batch/init
with your pipelinesproposalApproveTx
with your registered wallet/flywheel/batch/execute
with the batchId
and signed transaction