# API

Zeus serves one method: `eth_sendBundle`. Cancellation, single private transactions, end-of-block bundles, `mev_sendBundle` and WebSocket are not offered.

## eth_sendBundle

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_sendBundle",
  "params": [{
    "txs": ["0x…", "0x…"],
    "blockNumber": "0x1a2b3c4",
    "minTimestamp": 0,
    "maxTimestamp": 0,
    "revertingTxHashes": ["0x…"]
  }]
}
```

`params` is an array holding exactly one object.

| Field | Required | Description |
|---|---|---|
| `txs` | yes | Signed raw transactions for chain ID 1, in execution order (1–100) |
| `blockNumber` | yes | Target block, hex. Exactly one block from head + 1 to head + 4 |
| `minTimestamp` | no | Earliest block timestamp, Unix seconds |
| `maxTimestamp` | no | Latest block timestamp, Unix seconds |
| `revertingTxHashes` | no | Transaction hashes allowed to revert |

`replacementUuid` and `uuid` are rejected.

### Response

```json
{ "jsonrpc": "2.0", "id": 1, "result": { "bundleHash": "0x…" } }
```

The hash confirms receipt only. Duplicate submissions return the same hash.

### Errors

An HTTP 200 response can still carry a JSON-RPC `error`.

| HTTP | Code | Meaning |
|---|---|---|
| 401 | `-32001` | Missing or invalid `X-Flashbots-Signature` |
| 200 | `-32700` | Invalid JSON |
| 200 | `-32600` | Invalid request |
| 200 | `-32601` | Method not found |
| 200 | `-32602` | Invalid params |
| 200 | `-38000` | Target block out of range |
| 200 | `-32005` | Capacity or rate limit (pool full) |
| 200 | `-32000` | Temporary error |
| 429 | — | Rate or connection limit (body may be empty) |
| 503 | — | `delivery=unknown`: we could not confirm whether the bundle was received |
