Mev Zone
  • Welcome
  • Getting Started
    • Introduction
    • New To Mev?
    • Sending Bundles
  • Mev Zone Block Builder
    • Overview
    • Send Bundle
    • Call Bundle
    • Send Private Transaction
  • Mev Zone Protect
    • Overview
  • Mev Zone Validators
    • What is the MEV Client
    • Run the MEV Client
Powered by GitBook
On this page
  • Request Example
  • Response Example
  1. Mev Zone Block Builder

Send Bundle

This API is used to receive bundles, with the method name eth_sendBundle.

The block construction algorithm of MEV Zone favors bundles that transfer more native tokens (AVAX) to MEV Zone contract.

Request Example

{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "eth_sendBundle",
  "params": [
    {
      "txs":["0x…2b", "0x…1c"],    // List of signed raw transactions
      "maxBlockNumber":123456789,  // The maximum block number for the bundle to be valid, with the default set to the current block number + 100
      "minTimestamp":123456789,    // Expected minimum Unix timestamp (in seconds) for the bundle to be valid
      "maxTimestamp":1234567898,   // Expected maximum Unix timestamp (in seconds) for the bundle to be valid
      "revertingTxHashes":[
        "0x1234", 
        "0x1234"
        ]                         // List of transaction hashes allowed for revert
    }
  ]
}‍

Response Example

// Success
{
 "jsonrpc":"2.0",
 "id":"1",
 "result":"0x1234"  //bundle hash
}‍
// Error
{
  "jsonrpc":"2.0",
  "id":"1",
  "error":{
    "code":-1234,
    "message":"error
    }
}
PreviousOverviewNextCall Bundle

Last updated 4 months ago