BotTx|Documentation

API Reference

Batch Send

Submit multiple signed transactions in a single request for high-throughput delivery.

POST/v1/send/batch

Request

Headers

HeadersValueRequired
AuthorizationBearer YOUR_API_KEYRequired
Content-Typeapplication/jsonRequired

Body Parameters

FieldTypeDescription
transactionsstring[]Array of base64-encoded signed transactions (max 100)

Example Request

cURL
curl -X POST https://bolttx.io/v1/send/batch \
  -H "Authorization: Bearer btx_live_abc123" \
  -H "Content-Type: application/json" \
  -d '{
    "transactions": [
      "AQAAAAAAAAAAAAAAAAAAAAA...",
      "AgAAAAAAAAAAAABBBBBBBB...",
      "AwAAAAAAAAAAAACCCCCCCC..."
    ]
  }'

Batch Limits

Each batch request accepts a maximum of 100 transactions. This cap is tuned to deliver every transaction at peak speed; larger batches see noticeably higher tail latency and are not recommended. Each transaction must independently include a valid tip instruction. Transactions that fail validation are reported individually in the response without affecting the rest of the batch.

Response

Success (200)

{
  "success": true,
  "results": [
    {
      "index": 0,
      "signature": "5xKnR8qXe...",
      "status": "sent"
    },
    {
      "index": 1,
      "signature": "3mPqY7wBz...",
      "status": "sent"
    },
    {
      "index": 2,
      "signature": null,
      "status": "failed",
      "error": "deserialize error: invalid transaction format"
    }
  ]
}

Result Fields

FieldTypeDescription
indexnumberPosition of the transaction in the input array
signaturestring | nullTransaction signature, or null if rejected
statusstring"sent" or "failed"
errorstring?Error message if the transaction was rejected

Error Codes

CodeMessageDescription
400Invalid requestMissing transactions array or batch size exceeds 100
401UnauthorizedMissing or invalid API key
429Rate limit exceededBatch size N consumes N tokens from your plan's per-second TPS budget; the cap is per-user (shared across all your API keys)