# bombora
> Bombora is an Ethereum block builder by Sigma Prime. Submit private Ethereum transactions and bundles through Bombora's Mainnet JSON-RPC endpoint.
## Authentication
Bombora authenticates requests with the Flashbots-style `X-Flashbots-Signature` header, which identifies the Ethereum address that signed the request body.
Most methods accept the header but do not require it, and it does not affect priority. [`eth_sendEndOfBlockBundle`](/docs/eth-sendEndOfBlockBundle) is the exception: it requires a valid signature, and requests without one are rejected.
### Header format
```
X-Flashbots-Signature:
:
```
* `address`: the public address of the signing key.
* `signature`: the EIP-191 (`personal_sign`) ECDSA secp256k1 signature over the hex-encoded keccak256 hash of the request body (UTF-8 bytes).
The signing key can be any Ethereum key; it is independent of the transactions in the bundle. The signature covers the exact body, so it must be recomputed whenever the body changes.
### Compatibility
This is the same scheme originally defined by [Flashbots](https://docs.flashbots.net/flashbots-auction/advanced/rpc-endpoint#authentication), so existing signing code works against Bombora unchanged.
import { CopyBox } from "../../components/copy-box"
## bombora\_getBundleStats
Check what happened to a bundle you submitted to Bombora. Returns whether the bundle passed simulation, whether it was included in a block we built, the builder payment we saw, and any errors.
Stats are available **four blocks (≈48 seconds)** after Bombora receives the bundle. Earlier calls return a normal result with `status: "Pending"`.
We follow the layout from [Titan's bundle-tracing API](https://docs.titanbuilder.xyz/bundle-tracing). `titan_getBundleStats` is accepted as an alias.
### Endpoint
Bundle stats are served from a separate host from the bundle-submission RPC ([Getting Started](/docs/getting-started#endpoints)):
### Request
```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "bombora_getBundleStats",
"params": [
{
"bundleHash": "0x..."
}
]
}
```
### Parameters
| Parameter | Required | Description |
| ------------ | -------- | ----------------------------------------------------------------------------- |
| `bundleHash` | Yes | The 32-byte bundle hash returned by [`eth_sendBundle`](/docs/eth-sendBundle). |
### Response
```json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"status": "IncludedInBlock",
"builderPayment": "13618000000000",
"builderPaymentWhenIncluded": "13618000000000",
"error": "",
"pammStatus": null
}
}
```
| Field | Description |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `status` | What we currently know about the bundle. See [Status Values](#status-values). |
| `builderPayment` | Builder payment we observed on the bundle's entry simulation (the simulation Bombora runs when it first receives the bundle), in wei, truncated to whole gwei. Empty when the bundle failed simulation. |
| `builderPaymentWhenIncluded` | Builder payment observed when the bundle was used in a build attempt, in wei, truncated to whole gwei (same rounding as `builderPayment`). Populated when `status` is `IncludedInBlock` or `Submitted`; empty otherwise. |
| `error` | Free-text, human-readable reason when the bundle failed simulation in a way callers can act on. Empty otherwise. |
| `pammStatus` | The bundle's interaction with a [PropAMM maker](/docs/propamm-takers), or `null` when there was none. See [PropAMM Status Values](#propamm-status-values). |
#### Status Values
| Status | Meaning |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `NotFound` | Bombora has no record of this bundle: wrong hash, never submitted to us, or its data is no longer retained. |
| `Pending` | The bundle was received within the last four blocks and its outcome is still settling. |
| `Received` | The bundle was seen but has no simulation outcome to report. |
| `SimulationFail` | The bundle was rejected during simulation. `error` may carry more details. |
| `SimulationPass` | The bundle passed simulation on entry. |
| `IncludedInBlock` | The bundle made it into at least one candidate block during building. Bombora builds several candidate blocks in parallel and only submits the most valuable one, so this does **not** guarantee the bundle reached a submitted block. A competing candidate may have won. `builderPaymentWhenIncluded` reflects the payment from the candidate build that used the bundle. See `Submitted` for confirmation the bundle reached a relay. |
| `Submitted` | Bombora submitted a block containing the bundle to at least one relay: the candidate block it was part of won locally and was sent onward. This does **not** guarantee the bundle lands on-chain. The proposer may select a competing builder's block, so submission is the last step Bombora controls, not proof of inclusion. |
The statuses trace a bundle's path from arrival to relay submission. The two branch points worth noting: a bundle can pass simulation yet never enter a candidate block, and it can enter a candidate block yet lose to a more valuable candidate before submission.
Each status is the furthest point the bundle reached, so every value is a possible exit node for a `getBundleStats` query:
```
eth_sendBundle
|
+-- NotFound
|
+-- Pending
|
+-- Received
|
+-- SimulationFail
|
+-- SimulationPass
|
+-- IncludedInBlock
|
+-- Submitted
```
#### PropAMM Status Values
`pammStatus` describes the bundle's interaction with a [PropAMM maker](/docs/propamm-takers): whether it swapped through the maker's pool, and whether Bombora paired it with one of that maker's quote updates.
| Value | Meaning |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `null` | No PropAMM maker involvement was recorded. |
| `swappedThroughPamm` | Simulation saw the bundle swap through a PropAMM maker's pool, whether or not one of that maker's quote updates was applied. |
| `matchedWithQuote` | Bombora paired the bundle with a maker's quote update and submitted it in a block. |
import { CopyBox } from "../../components/copy-box"
## Builder Public Keys
Bombora submits Ethereum Mainnet blocks only with the builder public keys below.
If a block is attributed to any other key, it is not from Bombora. Do not rely on `extraData` for attribution, since that field can be set arbitrarily.
### Ethereum Mainnet
import { CopyBox } from "../../components/copy-box"
## eth\_cancelBundle
Cancel a pending bundle by its replacement UUID. The bundle is removed from the pool and any pending built blocks containing it are invalidated.
### Endpoint
See [Getting Started](/docs/getting-started#endpoints) for regional endpoints.
### Request
```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_cancelBundle",
"params": [
{
"replacementUuid": "uuid-string"
}
]
}
```
### Parameters
| Parameter | Required | Description |
| ----------------- | -------- | -------------------------------------------------------------------------------------------------------- |
| `replacementUuid` | Yes | The UUID provided when the bundle was originally submitted via [`eth_sendBundle`](/docs/eth-sendBundle). |
:::warning
Cancellation is best-effort. If the bundle has already been submitted to a relay for the current slot, cancellation may not take effect in time.
:::
import { CopyBox } from "../../components/copy-box"
## eth\_cancelPrivateTransaction
Cancel a pending private Ethereum transaction by its transaction hash.
### Endpoint
See [Getting Started](/docs/getting-started#endpoints) for regional endpoints.
### Request
```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_cancelPrivateTransaction",
"params": [
{
"txHash": "0x..."
}
]
}
```
### Parameters
| Parameter | Required | Description |
| --------- | -------- | ------------------------------------------ |
| `txHash` | Yes | Hash of the private transaction to cancel. |
:::warning
Cancellation is best-effort. If the transaction has already been included in a pending block, cancellation may not take effect.
:::
import { CopyBox } from "../../components/copy-box"
## eth\_sendBundle
Submit a bundle of Ethereum transactions for ordered execution within a block. Transactions execute in the order submitted, with explicit controls for revertable and optional transactions.
### Endpoint
See [Getting Started](/docs/getting-started#endpoints) for regional endpoints.
### Request
```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_sendBundle",
"params": [
{
"txs": ["0x...", "0x..."],
"blockNumber": "0x1234567",
"minTimestamp": 1234567890,
"maxTimestamp": 1234567899,
"revertingTxHashes": ["0x..."],
"droppingTxHashes": ["0x..."],
"replacementUuid": "uuid-string",
"replacementSeqNumber": 1,
"refundPercent": 50,
"refundRecipient": "0x...",
"refundTxHashes": ["0x..."]
}
]
}
```
### Parameters
| Parameter | Required | Description |
| ---------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `txs` | Yes | Array of signed transactions to execute in order (RLP-encoded hex). |
| `blockNumber` | No | Target block number (hex). Defaults to the next block. |
| `minTimestamp` | No | Earliest unix timestamp at which the bundle is valid. |
| `maxTimestamp` | No | Latest unix timestamp at which the bundle is valid. |
| `revertingTxHashes` | No | Transaction hashes that are allowed to revert, or to be omitted, without invalidating the bundle. A transaction in this set that executes and reverts stays in the block in its reverted state. |
| `droppingTxHashes` | No | Transaction hashes that are allowed to be omitted, but never to revert. If one of these transactions fails validation or execution, it is omitted and the bundle can continue. If it executes successfully, it is included. |
| `replacementUuid` | No | A UUID used to replace or cancel this bundle. Submitting a new bundle with the same UUID replaces the previous one. |
| `replacementSeqNumber` | No | Monotonically increasing sequence number for bundles sharing the same `replacementUuid`. Later bundles must have a higher sequence or they are dropped. If `0` or omitted, ordering falls back to builder receive time. |
| `refundPercent` | No | Percentage (0–99) of the refund anchor's coinbase profit to refund (see `refundTxHashes`). `0` or omitted means no refund. |
| `refundRecipient` | No | Address to receive the refund. Defaults to the signer of the first transaction. |
| `refundTxHashes` | No | Transaction hash used to anchor the refund calculation. The refund is based on its coinbase profit. Defaults to the last transaction. Max 1 entry. |
### Execution Semantics
Transactions within a bundle execute in the order submitted.
By default, any transaction failure invalidates the bundle. The two hash sets relax that, and they grant two separate permissions:
| Transaction listed in | May be omitted from the bundle | May be included in a reverted state |
| --------------------- | ------------------------------ | ----------------------------------- |
| Neither set | No | No |
| `revertingTxHashes` | Yes | Yes |
| `droppingTxHashes` | Yes | No |
Strict all-or-nothing behavior therefore applies only to transactions that are not listed in `revertingTxHashes` or `droppingTxHashes`.
### Refunds
When `refundPercent` is greater than zero, Bombora pays a refund to `refundRecipient` in a separate transfer. The gas cost of that transfer is deducted from the refund:
```
refund = (anchor_profit * refundPercent / 100) - transfer_cost
```
`anchor_profit` is the coinbase profit of the refund anchor transaction (from `refundTxHashes`, or the last tx by default), not the profit of the whole bundle. It includes priority fees and direct coinbase transfers. The percentage is applied first and rounded down to the wei, then the transfer cost is subtracted.
`transfer_cost` is the gas the refund transfer uses multiplied by the block's base fee:
```
transfer_cost = transfer_gas_used * base_fee
```
Refunds to the same recipient in one block are summed and paid with a single transfer, so the transfer cost is deducted once.
#### Examples
Refund transfers are sent through the payment forwarder contract `0xFEEEEEE44046c3f61a8CC081E0918eF0de0a7ffC`. The forwarder pays with `SELFDESTRUCT`, so no recipient code runs. A transfer through it uses 29,022 gas, or 25,000 more when the recipient account is empty. All examples assume a non-empty recipient and a base fee of 1 gwei, so a transfer costs `29,022 gas * 1 gwei = 0.000029022 ETH`.
**One anchor.** The bundle's last transaction pays the builder 0.01 ETH in priority fees and coinbase transfers, and `refundPercent` is 90:
```
anchor_profit = 0.01 ETH
refund = 0.01 * 90 / 100 - 0.000029022 = 0.008970978 ETH
```
**Two bundles refunding the same recipient.** Both bundles land in the same block and name the same `refundRecipient`. Bundle 1's anchor profit is 0.01 ETH at `refundPercent` 90, and bundle 2's is 0.00002 ETH at `refundPercent` 50. Both are paid with one transfer:
```
bundle 1 = 0.01 * 90 / 100 = 0.009 ETH
bundle 2 = 0.00002 * 50 / 100 = 0.00001 ETH
refund = 0.009 + 0.00001 - 0.000029022 = 0.008980978 ETH
```
Bundle 2's 0.00001 ETH could not pay a transfer on its own, but it lands because it joins bundle 1's transfer.
If the refund anchor transaction (from `refundTxHashes`, or the last tx by default) is never evaluated, or the refund cannot cover the cost of a transfer and there is no transfer to the same recipient for it to join, the bundle is dropped.
### Replacement and Cancellation
Submitting a new bundle with the same `replacementUuid` replaces the previous bundle. Submitting an empty `txs` array with a `replacementUuid` is treated as a cancellation. You can also use [`eth_cancelBundle`](/docs/eth-cancelBundle) to cancel by UUID.
When multiple replacements may be in flight, set `replacementSeqNumber` to a monotonically increasing value so the builder can order them deterministically instead of relying on receive time. A bundle with a sequence number lower than or equal to one already seen for the same `replacementUuid` is dropped.
### Response
```json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"bundleHash": "0x..."
}
}
```
| Field | Description |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `bundleHash` | 32-byte hash identifying the submitted bundle. Pass it to [`bombora_getBundleStats`](/docs/bombora-getBundleStats) to retrieve its status. |
A successful response means the bundle was accepted for inclusion. It does not guarantee the bundle will be included in a block.
import { CopyBox } from "../../components/copy-box"
## eth\_sendEndOfBlockBundle
Submit a bundle targeting one or more pools. It is included only if at least one of its target pools was modified earlier in the block. With `targetSlots`, you can narrow a pool to specific storage slots, so the bundle triggers only when the block writes one of them. The bundle is then applied against the resulting state of those pools. It runs after the transactions that touched them, but not necessarily as the last transaction in the block.
### Endpoint
See [Getting Started](/docs/getting-started#endpoints) for regional endpoints.
:::note
This method requires a valid [`X-Flashbots-Signature`](/docs/authentication) header. Requests without one are rejected.
:::
### Request
```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_sendEndOfBlockBundle",
"params": [
{
"txs": ["0x..."],
"targetPools": ["0x11b815efb8f581194ae79006d24e0d814b7697f6"],
"targetSlots": [["0x0000000000000000000000000000000000000000000000000000000000000000"]],
"blockNumber": "0x1234567",
"revertingTxHashes": ["0x..."],
"replacementUuid": "uuid-string",
"replacementSeqNumber": 1
}
]
}
```
### Parameters
| Parameter | Required | Description |
| ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `txs` | Yes | Array of signed transactions to execute in order (RLP-encoded hex). Must be non-empty. |
| `targetPools` | Yes | Pool contract addresses this bundle targets. The bundle is only included if at least one of these pools was modified earlier in the block. |
| `targetSlots` | No | Storage slots to watch per target pool, as 32-byte hex values. One list per entry in `targetPools`, in the same order. See [Targeting storage slots](#targeting-storage-slots). |
| `blockNumber` | No | Target block number (hex). Defaults to the next block. |
| `revertingTxHashes` | No | Transaction hashes that are allowed to revert or be discarded without invalidating the bundle. |
| `replacementUuid` | No | A UUID used to replace or cancel this bundle. Submitting a new bundle with the same UUID replaces the previous one. |
| `replacementSeqNumber` | No | Monotonically increasing sequence number for bundles sharing the same `replacementUuid`. Later bundles must have a higher sequence or they are dropped. |
The `0x` prefix on hex values is optional.
### Targeting storage slots
By default, a target pool triggers the bundle if the block writes any of its storage. `targetSlots` narrows this per pool:
* A non-empty list triggers only if the block writes one of those slots on that pool.
* An empty list (`[]`) keeps the default: any storage write on that pool.
* If the same pool appears more than once in `targetPools`, its slot lists are combined. An empty list for any of them means any slot.
If provided, `targetSlots` must have the same length as `targetPools`, or the request is rejected.
This is useful for singleton contracts that keep many pools in one contract's storage. To target a single pool inside such a contract, list the contract with the storage slot that holds that pool's state:
```json
"targetPools": [
"0x",
"0x"
],
"targetSlots": [
[],
["0x"]
]
```
Here the first pool triggers on any write, and the singleton contract only when that pool's state slot changes.
Replacement and cancellation work the same as for [`eth_sendBundle`](/docs/eth-sendBundle): resubmit with the same `replacementUuid` to replace, or cancel by UUID with [`eth_cancelBundle`](/docs/eth-cancelBundle).
### Response
```json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"bundleHash": "0x..."
}
}
```
| Field | Description |
| ------------ | ---------------------------------------------- |
| `bundleHash` | 32-byte hash identifying the submitted bundle. |
A successful response means the bundle was accepted for inclusion. It does not guarantee the bundle will be included in a block.
import { CopyBox } from "../../components/copy-box"
## eth\_sendPrivateTransaction
Submit a single private Ethereum transaction with an optional block number ceiling. The transaction is not broadcast to the public mempool.
Use this method when you want Bombora to consider a signed transaction for private transaction inclusion before a specific Ethereum Mainnet block.
### Endpoint
See [Getting Started](/docs/getting-started#endpoints) for regional endpoints.
### Request
```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_sendPrivateTransaction",
"params": [
{
"tx": "0x...signed-tx-bytes...",
"maxBlockNumber": "0x1234567"
}
]
}
```
### Parameters
| Parameter | Required | Description |
| ---------------- | -------- | ------------------------------------------------------------------------------------------------------- |
| `tx` | Yes | Signed raw transaction (RLP-encoded hex). |
| `maxBlockNumber` | No | Last block number in which the transaction should be included (hex). Must be in the future if provided. |
### Response
```json
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x...txhash..."
}
```
| Field | Description |
| -------- | ------------------------------------------ |
| `result` | 32-byte hash of the submitted transaction. |
The transaction can be cancelled with [`eth_cancelPrivateTransaction`](/docs/eth-cancelPrivateTransaction).
import { CopyBox } from "../../components/copy-box"
## eth\_sendRawTransaction
Submit a single signed Ethereum transaction privately. The transaction is not broadcast to the public mempool.
Bombora documents this as the raw private-transaction entrypoint. At the edge, `eth_sendPrivateRawTransaction` is also accepted and forwarded to the same downstream handler.
### Endpoint
See [Getting Started](/docs/getting-started#endpoints) for regional endpoints.
### Request
```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_sendRawTransaction",
"params": ["0x...signed-tx-bytes..."]
}
```
### Parameters
| Parameter | Required | Description |
| ----------- | -------- | ----------------------------------------- |
| `params[0]` | Yes | Signed raw transaction (RLP-encoded hex). |
### Response
```json
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x...txhash..."
}
```
| Field | Description |
| -------- | ------------------------------------------ |
| `result` | 32-byte hash of the submitted transaction. |
import { CopyBox } from "../../components/copy-box"
## Getting Started
Bombora is an Ethereum block builder by [Sigma Prime](https://sigmaprime.io). Submit bundles and private Ethereum transactions via the JSON-RPC endpoint.
Use Bombora when you need direct builder submission, private transaction inclusion, or ordered bundle execution on Ethereum Mainnet.
### Coinbase
Ethereum Mainnet blocks built by Bombora use the following coinbase address:
### Endpoints
| Network | Region | Endpoint |
| ---------------- | ------ | ------------------------------ |
| Ethereum Mainnet | Global | `https://rpc.bombora.build` |
| Ethereum Mainnet | EU | `https://eu-rpc.bombora.build` |
| Ethereum Mainnet | US | `https://us-rpc.bombora.build` |
| Ethereum Mainnet | AP | `https://ap-rpc.bombora.build` |
Global endpoints route to the nearest available region.
[`bombora_getBundleStats`](/docs/bombora-getBundleStats) is served from its own host:
### Authentication
Most methods require no authentication, and the `X-Flashbots-Signature` header does not affect priority. [`eth_sendEndOfBlockBundle`](/docs/eth-sendEndOfBlockBundle) requires a valid signature. See [Authentication](/docs/authentication) for how to sign requests.
### Privacy
Bundles and private transactions submitted to Bombora are not broadcast to the public mempool.
### Supported Methods
| Method | Description |
| -------------------------------------------------------------------- | ----------------------------------------------------------- |
| [`eth_sendBundle`](/docs/eth-sendBundle) | Submit an ordered bundle with explicit revert/drop controls |
| [`eth_cancelBundle`](/docs/eth-cancelBundle) | Cancel a pending bundle via its replacement UUID |
| [`eth_sendEndOfBlockBundle`](/docs/eth-sendEndOfBlockBundle) | Submit an end-of-block bundle targeting specific pools |
| [`eth_sendRawTransaction`](/docs/eth-sendRawTransaction) | Submit a single private transaction (raw) |
| [`eth_sendPrivateTransaction`](/docs/eth-sendPrivateTransaction) | Submit a private transaction with a block number ceiling |
| [`eth_cancelPrivateTransaction`](/docs/eth-cancelPrivateTransaction) | Cancel a pending private transaction |
| [`bombora_getBundleStats`](/docs/bombora-getBundleStats) | Check the status of a previously submitted bundle |
### PropAMMs
Bombora supports conditional quote updates for proprietary AMMs (propAMMs).
Makers stream single-block updates over an authenticated WebSocket. Searchers, solvers, and aggregators continue to submit taker routes through the normal bundle API and can optionally consume a public state-override stream.
* [Maker WebSocket integration](/docs/propamm-makers)
* [Taker routing and state stream](/docs/propamm-takers)
## Maker Integration
The maker API lets a PropAMM maker push quote updates to Bombora over a long-lived WebSocket. Each update carries a signed transaction to one of the maker's own contracts, valid for a single block. Cancellations use an empty transaction.
The frame schema is the same as Titan's [`/ws/sendquoteupdate`](https://docs.titanbuilder.xyz/propamms/makers), so a client built for Titan works here with a different endpoint and API key.
:::note
Maker access is API-key gated. Contact [Bombora on Telegram](https://t.me/bomborabuild) or [hello@bombora.build](mailto\:hello@bombora.build) before connecting.
:::
### Onboarding
When maker access is granted, Bombora agrees with you:
* **Target contracts.** The contracts your quote transactions may call: your oracle, pricing engine, the [Priority Update Registry](https://github.com/flashbots/priority-update-registry), or anything else your pools read prices from. Quotes to any other contract are rejected.
* **Freshness buffer.** Optional. See [Maker protection](#maker-protection).
* **State stream consent.** Whether your quotes are published on the [public state stream](/docs/propamm-takers#state-stream).
### Endpoint
| Network | Region | WebSocket endpoint |
| ---------------- | ------ | ----------------------------------------------- |
| Ethereum Mainnet | Global | `wss://rpc.bombora.build/ws/sendquoteupdate` |
| Ethereum Mainnet | EU | `wss://eu-rpc.bombora.build/ws/sendquoteupdate` |
| Ethereum Mainnet | US | `wss://us-rpc.bombora.build/ws/sendquoteupdate` |
| Ethereum Mainnet | AP | `wss://ap-rpc.bombora.build/ws/sendquoteupdate` |
### Authentication
Present your API key in the `Authorization` header of the WebSocket upgrade request:
```
Authorization:
```
A `Bearer` prefix is accepted. A connection without a valid key is rejected with HTTP `401`.
### Request
Requests and responses are protobuf-encoded binary WebSocket messages, at most 64 KiB each. Text messages are ignored.
```proto
message PWebsocketQuoteUpdateV1Args {
bytes tx = 1;
uint64 block_number = 2;
bytes replacement_uuid = 3;
uint64 replacement_seq_number = 4;
bool disable_cross_region_sharing = 5;
repeated bytes asset_pairs = 6;
bytes quote_address = 7;
repeated bytes pool_addresses = 8;
}
```
### Parameters
| Parameter | Description |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `tx` | RLP-encoded signed transaction bytes (EIP-2718 envelope). Empty cancels the `replacement_uuid`. |
| `block_number` | The single block this update is valid for. |
| `replacement_uuid` | Quote identifier, as the UUID's raw 16 bytes rather than its hyphenated string form. |
| `replacement_seq_number` | Strictly increasing per UUID within a block. Must be greater than zero. |
| `disable_cross_region_sharing` | If true, the update is not shared between builder regions. |
| `asset_pairs` | Quoted pairs, each encoded as two concatenated 20-byte token addresses, in either order. May be empty on a cancellation. |
| `quote_address` | Address a taker trades through to use this quote, encoded as a 20-byte address. Required on a quote, and may be empty on a cancellation. Also the key for this quote on the [state stream](/docs/propamm-takers#state-stream). |
| `pool_addresses` | Additional contracts that pay out trades using this quote, each encoded as a 20-byte address. Optional. |
#### Quote transaction
`tx` can be any signed transaction to one of your agreed target contracts. It must have a `to` address.
The quote is an ordinary transaction once it is in the block. It pays its own gas, its `max_fee_per_gas` must cover the block's base fee, and its nonce and balance must be valid at the point it is placed. Bombora does not require a minimum priority fee.
If you send several quotes for the same block from one sender, they can fail on nonce ordering. Send concurrent quote streams from separate senders, or combine their writes into one transaction.
#### Declaring a quote
Bombora uses `quote_address`, `asset_pairs` and `pool_addresses` to pair your quote with the trades that depend on it. Declare every pair the quote prices. A trade is paired with the quote only when one of your declared addresses, `quote_address` or a `pool_addresses` entry, pays out a token of a declared pair. `pool_addresses` is only needed when a contract other than `quote_address` makes that payout.
A quote that reverts, writes no storage, or targets a block other than the next one is not used.
### Regions
Connect to the region nearest you.
Bombora does not forward quote updates to other builders. Updates are shared between Bombora regions unless `disable_cross_region_sharing` is set. Each region checks that flag again when an update arrives.
### Maker protection
When a block is built, Bombora applies the most recent quote it has received and places it just before the trade that uses it. A quote still in flight at that moment cannot be applied, so what lands is the freshest update Bombora had received, not necessarily the latest the maker has sent.
To protect makers from takers racing them, a maker can opt in to a freshness buffer, agreed individually during onboarding. With one in place, a trade is only eligible against a quote received more than the buffer after the trade:
```text
taker_received_at + freshness_buffer < quote_received_at
```
With a `50 ms` buffer, a quote received at time `T` is paired only with trades received before `T - 50 ms`. A trade that does not clear the buffer is not included against your pool at all, neither with the fresher quote nor against the older onchain price. This reduces exposure to stale-quote sniping and quote-stream interruptions.
Timing is judged entirely on receive times observed by Bombora's own infrastructure. Timestamps supplied by makers or takers are never used for this.
### Conditional inclusion
Quote updates land only when a matching, freshness-eligible taker is included, just before that taker. Updates without a matching taker do not go onchain. A quote applied once in a block is not repeated. Later takers in the same block can land anywhere after it and trade against it as it stands.
A matched quote is submitted as part of the block. The proposer may still select a competing builder's block, so submission is the last step Bombora controls.
### Replacement
To update a quote, reuse its `replacement_uuid`, keep the same `block_number`, and use a higher `replacement_seq_number`.
For example:
```text
uuid A, block 25,000,001, seq 1 → initial update
uuid A, block 25,000,001, seq 2 → replaces seq 1
uuid A, block 25,000,001, seq 3 → replaces seq 2
uuid A, block 25,000,002, seq 1 → valid reset for the next block
```
A stale or duplicate sequence cannot replace a newer version. Use a separate UUID for an independent update stream.
Resending the same transaction under a higher sequence refreshes its receive time without changing the quote. Use this to keep a quote fresh against your freshness buffer when the price has not moved.
### Cancellation
Send a request with:
* the same `replacement_uuid`
* the relevant `block_number`
* a sequence higher than the latest update
* an empty `tx`
`asset_pairs`, `quote_address` and `pool_addresses` may be empty on a cancellation.
### Response
Every frame is acknowledged on receipt.
```proto
message PWebsocketQuoteUpdateV1Response {
bytes replacement_uuid = 1;
uint64 replacement_seq_number = 2;
uint64 timestamp = 3;
string error = 4;
}
```
| Field | Description |
| ------------------------ | --------------------------------------------------------- |
| `replacement_uuid` | Quote identifier being acknowledged. |
| `replacement_seq_number` | Sequence number being acknowledged. |
| `timestamp` | Time Bombora received the frame, in Unix nanoseconds. |
| `error` | Empty on acceptance, and set when the frame was rejected. |
Match responses to requests using `(replacement_uuid, replacement_seq_number)`.
An acceptance means the frame passed admission and was forwarded to the builders. It does not mean the quote was applied: a stale sequence, a past block, or a quote that reverts is discarded later without a further response.
## Takers & State Stream
Searchers, solvers, and aggregators trade with PropAMMs through Bombora's normal transaction and bundle APIs. There is no special method for PropAMM routes.
### Submit routes
Send a route that trades through a PropAMM with [`eth_sendBundle`](/docs/eth-sendBundle) or as a private transaction.
Bombora tries the route against every maker's latest quote until the block is built. If a route uses a quote, the quote goes in just before the first route that uses it, and later routes can use it from anywhere after that. If the route fails against the quote, for example on slippage, neither goes in the block.
To check whether a bundle traded through a PropAMM and was paired with a quote, use [`bombora_getBundleStats`](/docs/bombora-getBundleStats#propamm-status-values).
### State stream
The state stream shows what each opted-in maker's latest quote will change in the next block. Use it to test your routes locally before you send them.
There are two streams:
* **Venue stream** (`/ws/pamm_quote_stream_v2`): one record per PropAMM with its maker, addresses, and token pairs, sent only when something changes. It uses the same format as Titan's [`pamm_quote_stream_v2`](https://docs.titanbuilder.xyz/propamms/takers), so code written for Titan works here too. Use this one.
* **Snapshot stream** (`/ws/pamm_quote_stream`): all PropAMMs in one full message. Deprecated and turned off soon, so move to the venue stream.
Both contain the same state.
#### Endpoints
Both streams run on Ethereum Mainnet in every region. Use the region closest to you:
| Region | Host |
| ------ | ---------------------------- |
| Global | `wss://rpc.bombora.build` |
| EU | `wss://eu-rpc.bombora.build` |
| US | `wss://us-rpc.bombora.build` |
| AP | `wss://ap-rpc.bombora.build` |
Add the stream's path to the host:
| Stream | Path |
| ---------------------------- | -------------------------- |
| Venue stream (v2) | `/ws/pamm_quote_stream_v2` |
| Snapshot stream (deprecated) | `/ws/pamm_quote_stream` |
For example, the EU venue stream is:
```
wss://eu-rpc.bombora.build/ws/pamm_quote_stream_v2
```
No API key is needed.
#### Published PropAMMs
Each PropAMM is identified by its `quote_address`: the contract you trade through to use that maker's quote. These quote addresses are on the stream today:
| Maker | Quote address |
| ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Bebop | `0xb09aaa8933626d7e4c48d65dad2d77021cfbca9a` |
| Fermi | `0x5979458912f80b96d30d4220af8e2e4925a33320` |
| Kipseli | `0xc9a956b5196dfe110debe8781857bc8b97d32091` |
| Metric | `0xe844701934d9c6085b292e428f41b911cc0b3872`
`0x30a88bf894d1b806125a23ebf23d715496fd7102`
`0x38e6f145586043a030d02f1aa32eb55c65183a1d`
`0x6f7d95d03300c6833ebfeb458cf468326399f591` |
A PropAMM shows up only while its maker is quoting. Makers can join, leave, or change their quote address, so rely on the stream rather than this table, and don't treat an unknown address as an error.
If a maker you want is not on the stream, contact [Bombora on Telegram](https://t.me/bomborabuild) or [hello@bombora.build](mailto\:hello@bombora.build).
#### State overrides
Each PropAMM's `stateOverride` lists every account its latest quote touches:
* `balance` and `nonce`: the account's values after the quote.
* `stateDiff`: the new value of each storage slot the quote writes.
These accounts include wherever the maker stores its prices, such as an oracle or registry, plus the quote's sender and the contracts it calls. So they are often not the `quote_address` itself. That's expected. The block's fee recipient is never included.
`stateOverride` already has the format Ethereum nodes accept. Pass it as the third parameter to `eth_call`, or as `stateOverrides` in an `eth_simulateV1` call. Your simulation then prices the route against the next block's state instead of today's onchain state.
To test against several PropAMMs at once, merge their `stateOverride` objects into one, keyed by account address.
Quotes that revert or change nothing are not on the stream.
### Venue stream
#### Message format
Each message lists the PropAMMs that changed since the last message on your connection:
```json
{
"venues": [
{
"maker": "Metric",
"quoteAddress": "0x1111111111111111111111111111111111111111",
"pricedAddresses": [
"0x1111111111111111111111111111111111111111",
"0x3333333333333333333333333333333333333333"
],
"assetPairs": [
{
"token_1": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"token_2": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
}
],
"pairSequences": [227737562482426389775515791],
"slot": 12345678,
"blockNumber": 25000001,
"timestamp": 1785000000000000000,
"stateOverride": {
"0x2222222222222222222222222222222222222222": {
"balance": "0x1bc16d674ec80000",
"nonce": "0x2a",
"stateDiff": {
"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
}
}
}
}
]
}
```
| Field | Description |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `venues` | The PropAMMs that changed, one record each. |
| ↳ `maker` | The maker's name, or `null` when the PropAMM is [removed](#removed-propamms). |
| ↳ `quoteAddress` | The PropAMM's `quote_address`. Use it to match records. |
| ↳ `pricedAddresses` | The `quoteAddress`, then the pools this quote prices. |
| ↳ `assetPairs` | The token pairs the quote covers. |
| ↳ `pairSequences` | One number per pair: the slot in the top 64 bits and the maker's quote number for that pair in the bottom 64 bits. |
| ↳ `slot` | Slot of the target block. Its timestamp is `1606824023 + 12 * slot`. Can be missing, so treat it as optional. |
| ↳ `blockNumber` | The block this state is for: the next block. |
| ↳ `timestamp` | When Bombora received the latest quote, or for a removed PropAMM when it was removed, in Unix nanoseconds. Not the block timestamp. |
| ↳ `stateOverride` | The [state overrides](#state-overrides) that apply the maker's quote. |
Within a block, a pair's `pairSequences` value only goes up, so a higher value means a newer quote. Don't compare values from different blocks.
#### Removed PropAMMs
When a PropAMM has no live quote any more, it is sent once with `maker` set to `null`, empty `assetPairs` and `pairSequences`, and an empty `stateOverride`. Remove it from your state.
```json
{
"maker": null,
"quoteAddress": "0x1111111111111111111111111111111111111111",
"pricedAddresses": ["0x1111111111111111111111111111111111111111"],
"assetPairs": [],
"pairSequences": [],
"slot": 12345679,
"blockNumber": 25000002,
"timestamp": 1785000012000000000,
"stateOverride": {}
}
```
#### Keeping state
Keep one record per `quoteAddress`:
1. The first message after you connect has every live PropAMM.
2. For each record in later messages, replace the one you have for that `quoteAddress`, or delete it if `maker` is `null`.
3. PropAMMs not in a message haven't changed.
All records in a message are for the same block. When a new block starts, every live PropAMM is sent again for it, or removed, so your records always match one block.
#### Emission
Messages go out every 100 ms and contain only what changed since your last message. If nothing changed, nothing is sent. If your connection falls behind, the next message catches you up to the latest state. Missed messages are not replayed.
### Snapshot stream
:::warning
`/ws/pamm_quote_stream` is deprecated and will be turned off soon. Use the [venue stream](#venue-stream) instead. It has the same state.
:::
#### Snapshot format
Each message is a full snapshot of every published PropAMM:
```json
{
"slot": 12345678,
"blockNumber": 25000001,
"timestamp": 1785000000000000000,
"0x1111111111111111111111111111111111111111": {
"stateOverride": {
"0x2222222222222222222222222222222222222222": {
"balance": "0x1bc16d674ec80000",
"nonce": "0x2a",
"stateDiff": {
"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
}
}
}
}
}
```
| Field | Description |
| ------------------- | ------------------------------------------------------------------------------------------------------------- |
| `slot` | Slot of the target block. Its timestamp is `1606824023 + 12 * slot`. Can be missing, so treat it as optional. |
| `blockNumber` | The block this state is for: the next block. |
| `timestamp` | When the snapshot was taken, in Unix nanoseconds. Not the block timestamp. |
| `0x1111…` | The maker's `quote_address`: the contract you trade through to use the quote. |
| ↳ `stateOverride` | The [state overrides](#state-overrides) that apply the maker's quote. |
A PropAMM appears only while its maker is quoting.
#### Emission
A new snapshot goes out when a maker updates its quote and when a new block starts. Identical snapshots are not repeated, so no message means nothing changed. When you connect, you get the current snapshot right away.
## PropAMM Overview
Bombora gives proprietary AMMs (propAMMs) a fast path for quote updates. A maker streams signed quote transactions to the builder, and Bombora places the freshest one just before the trade that uses it.
[Titan](https://docs.titanbuilder.xyz/propamms) brought PropAMMs to Ethereum and created this API. Bombora uses the same API, so maker and taker integrations built for Titan work here as well.
### The problem
An ordinary onchain AMM only reprices when someone trades against it. Between trades its price drifts away from what the wider market is doing, so anyone routing through it executes against a price that is already old. Liquidity providers widen their spreads to cover that risk, and takers pay for it.
A propAMM closes that gap. It is a normal onchain pool that anyone can trade against, but its price is refreshed by a market maker streaming signed quotes directly to the builder. The maker can quote as tightly as it would elsewhere, because it is no longer exposed to a price it set several blocks ago.
### The guarantee
When a trade that uses a maker's quote is included in a block, the latest quote Bombora has received for that state is placed just before the first such trade, with no staler update in between. That taker trades against a price set moments earlier rather than one set in a previous block. The quote is applied once per block; later trades that use it can land anywhere after it.
A matched quote is submitted as part of the block. The proposer may still select a competing builder's block, so submission is the last step Bombora controls.
### Roles
| Role | What they do |
| ------- | ----------------------------------------------------------------------------------------------------- |
| Maker | Streams signed quote transactions for the pools it prices. |
| Taker | Submits ordinary bundles, some of which route through a propAMM pool. |
| Builder | Holds the latest quote per stream, pairs it with the trade that uses it, and orders the two together. |
```mermaid
flowchart TD
maker[Market maker] -->|signed quote stream| bombora[Bombora builder]
taker[Searcher, solver or aggregator] -->|bundles| bombora
bombora -->|quote placed before the matched trade| block[Block submitted to relays]
```
### How it works
#### Quote ingestion
Makers connect to Bombora over a WebSocket and authenticate per maker. A quote is an ordinary signed transaction to one of the maker's own contracts, such as an oracle, pricing engine, or the [Priority Update Registry](https://github.com/flashbots/priority-update-registry). Each maker's allowed contracts are agreed at onboarding, and a quote to any other contract is rejected.
#### Matching
Bombora works out which trades depend on each quote and pairs them. A quote that no trade uses never goes onchain, so the block spends no space on unused price updates.
#### Proof before commit
A paired quote and trade are simulated together before either enters the block, under the taker's own slippage protection. If the trade does not succeed, neither transaction is included. The builder never forces a fill.
#### Continuous re-evaluation
Candidates are re-evaluated against the freshest quote from every maker until the block is built, and whichever combination gives the best outcome is the one that is submitted.
### For makers
A maker can opt in to a freshness buffer, so a trade is only eligible against a quote that arrived a set interval after that trade reached the builder. This gives the maker a window to react before its price can be traded against. See [Maker Integration](/docs/propamm-makers) for the protocol, the buffer, and regional behaviour.
### For takers
There is no separate submission path. Searchers, solvers and aggregators submit bundles exactly as they do today, and any route through a propAMM pool is matched automatically. Existing integrations need no changes to benefit.
Makers can also consent to publishing their next-block quote state on a public stream, so a route can be priced against the state the block will actually have rather than against what is currently onchain. See [Takers & State Stream](/docs/propamm-takers).