Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

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 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.

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, 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:

RegionHost
Globalwss://rpc.bombora.build
EUwss://eu-rpc.bombora.build
USwss://us-rpc.bombora.build
APwss://ap-rpc.bombora.build

Add the stream's path to the host:

StreamPath
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:

MakerQuote address
Bebop0xb09aaa8933626d7e4c48d65dad2d77021cfbca9a
Fermi0x5979458912f80b96d30d4220af8e2e4925a33320
Kipseli0xc9a956b5196dfe110debe8781857bc8b97d32091
Metric0xe844701934d9c6085b292e428f41b911cc0b3872
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 or [email protected].

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:

{
  "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"
          }
        }
      }
    }
  ]
}
FieldDescription
venuesThe PropAMMs that changed, one record each.
  ↳ makerThe maker's name, or null when the PropAMM is removed.
  ↳ quoteAddressThe PropAMM's quote_address. Use it to match records.
  ↳ pricedAddressesThe quoteAddress, then the pools this quote prices.
  ↳ assetPairsThe token pairs the quote covers.
  ↳ pairSequencesOne number per pair: the slot in the top 64 bits and the maker's quote number for that pair in the bottom 64 bits.
  ↳ slotSlot of the target block. Its timestamp is 1606824023 + 12 * slot. Can be missing, so treat it as optional.
  ↳ blockNumberThe block this state is for: the next block.
  ↳ timestampWhen Bombora received the latest quote, or for a removed PropAMM when it was removed, in Unix nanoseconds. Not the block timestamp.
  ↳ stateOverrideThe 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.

{
  "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

Snapshot format

Each message is a full snapshot of every published PropAMM:

{
  "slot": 12345678,
  "blockNumber": 25000001,
  "timestamp": 1785000000000000000,
  "0x1111111111111111111111111111111111111111": {
    "stateOverride": {
      "0x2222222222222222222222222222222222222222": {
        "balance": "0x1bc16d674ec80000",
        "nonce": "0x2a",
        "stateDiff": {
          "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
        }
      }
    }
  }
}
FieldDescription
slotSlot of the target block. Its timestamp is 1606824023 + 12 * slot. Can be missing, so treat it as optional.
blockNumberThe block this state is for: the next block.
timestampWhen 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.
  ↳ stateOverrideThe 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.