LogoLogo
  • Getting Started
  • API
    • eth_sendBundle
    • mev_sendBundle
  • eth_cancelBundle
  • eth_sendRawTransaction
  • eth_sendEndOfBlockBundle
  • Builder Public Keys
Powered by GitBook
On this page
  1. API

mev_sendBundle

/*
    NOTE: optional fields are marked with a ?
    example: {
        privacy?: { ... } // privacy is optional
    }
 */
{
    jsonrpc: "2.0",
    id: string | number,
    method: "mev_sendBundle",
    params: [{ /* MevSendBundleParams */
        version: "v0.1",
        inclusion: {
            block: string,     // hex-encoded number
            maxBlock?: string, // hex-encoded number
        },
        body: Array<
            { tx: string, canRevert: boolean } |
            { bundle: MevSendBundleParams }
        >,
        validity?: {
            refund?: Array<{
                bodyIdx: number,
                percent: number,
            }>,
            refundConfig?: Array<{
                address: string,
                percent: number,
            }>
        },
        metadata?: {
            signer?: string,
            replacementNonce?: number, // Replace the bundle if higher
            cancelled: bool // Used for canceling
        },
        replacementUuid?: string
    }]
}

Example request:

{
  "params": [
    {
      "version": "v0.1",
      "inclusion": {
        "block": "0x8b8da8",
        "maxBlock": "0x8b8dab"
      },
      "bundle": {
        "version": "v0.1",
        "inclusion": {
        "block": "0x8b8dab"
        },
        "body": [
          {
            "tx": "0x02f8730180843b9aca00852ecc889a008288b894c10000000000000000000000000000000000000088016345785d8a000080c001a07c8890151fed9a826f241d5a37c84062ebc55ca7f5caef4683dcda6ac99dbffba069108de72e4051a764f69c51a6b718afeff4299107963a5d84d5207b2d6932a4",
            "revertMode": "drop"
          },
          {
            "tx": "0x02f880058201d685e9103fda0085e9103fda368255f0940000c335bc9d5d1af0402cad63fa7f258363d71a8092696d206261636b72756e6e69696969696e67c080a0c5058ccf5759e29d4ad28e038f632a9b6269bbb0644c61447e0f14d56c453d73a048e877ee621c4b6be1234a8ad84379e80d45b288a7271e2b1aede7a04f06fd98",
            "canRevert": false
          }
        }
      ],
      "validity": {
        "refund": [],
        "refundConfig": []
      }
    }
  ],
  "method": "mev_sendBundle",
  "id": 1,
  "jsonrpc": "2.0"
}

Previouseth_sendBundleNexteth_cancelBundle

Last updated 1 month ago