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

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

https://rpc.bombora.buildClick to copy

See Getting Started for regional endpoints.

Request

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

ParameterRequiredDescription
txsYesArray of signed transactions to execute in order (RLP-encoded hex). Must be non-empty.
targetPoolsYesPool contract addresses this bundle targets. The bundle is only included if at least one of these pools was modified earlier in the block.
targetSlotsNoStorage 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.
blockNumberNoTarget block number (hex). Defaults to the next block.
revertingTxHashesNoTransaction hashes that are allowed to revert or be discarded without invalidating the bundle.
replacementUuidNoA UUID used to replace or cancel this bundle. Submitting a new bundle with the same UUID replaces the previous one.
replacementSeqNumberNoMonotonically 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:

"targetPools": [
  "0x<pool address>",
  "0x<singleton contract address>"
],
"targetSlots": [
  [],
  ["0x<storage slot of the pool's state>"]
]

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: resubmit with the same replacementUuid to replace, or cancel by UUID with eth_cancelBundle.

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "bundleHash": "0x..."
  }
}
FieldDescription
bundleHash32-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.