Bundle API

eth_sendBundleCrossRollup

Send bundles to builders.

Request:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_sendBundleCrossRollup",
  "params": [
    {
      txs,               // HashMap[String, String], This contains a mapping of signed transactions alonside their corresponding chainIds which we want to execute in an atomic bundle.
      blockNumbers,       // HashMap[String, String], This contains a mapping of chainIds alongside the corresponding hex encoded block number which this bundle will be valid on.  
      minTimestamp,      // (Optional) Number, the minimum timestamp for which this bundle is valid, in seconds since the unix epoch
      maxTimestamp,      // (Optional) Number, the maximum timestamp for which this bundle is valid, in seconds since the unix epoch
      revertingTxHashes, // (Optional) Array[String], A list of tx hashes that are allowed to revert
      replacementUuid,   // (Optional) String, UUID that can be used to cancel/replace this bundle
    }
  ]
}

Response:

{
  "jsonrpc": "2.0",
  "id": "123",
  "result": {
    "bundleHash": "0x2228f5d8954ce31dc1601a8ba264dbd401bf1428388ce88238932815c5d6f23f"
  }
}

eth_callBundleCrossRollup

Test a bundle’s validity across multiple rollups for specific block numbers on the given rollups.

Request:

Response:

eth_cancelBundleCrossRollup

Prevents a submitted bundle from being included in a chunk that is sent to Baton and included on-chain.

Request:

NodeKit is backwards compatible with most Flashbots MEV APIs like eth_callBundle, eth_sendBundle, and eth_cancelBundle. To submit to these bundles you must specify which chainId you wish to use the bundle method on using the request header.

Example Request:

Last updated