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 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
| 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. |
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:
"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..."
}
}| 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.