Send Bundle

接口說明

本接口用於接收用戶提交的bundle,方法名為eth_sendBundle。 BlockRazor MEV服務的區塊構建算法傾向於向BlockRazor Builder EOA轉賬原生代幣(BNB)數量更多的bundle,當前BlockRazor Builder EOA地址為0x1266C6bE60392A8Ff346E8d5ECCd3E69dD9c5F20。 bundle中交易的gas price需不小於BSC Validator要求的最低標準(當前為1 gwei)。對於Tier 1用戶,可以在bundle中包含0 gwei的交易,但bundle中交易(public mempool中的交易除外)的平均gasPrice(需要滿足Validator的平均gasPrice要求 )仍需不小於1 gwei。

流控說明

Tier3Tier2Tier1

BPS

10 bundles / 1s

30 bundles / 1s

不限

每區塊可接受bundle數

30 bundles / block

90 bundles / block

不限

每bundle包含交易數

3 Txs / bundle

15 Txs / bundle

50 Txs / bundle

bundle包含0 gwei交易

-

-

支持

請求參數

參數必選格式示例描述

txs

array[hex]

["0x…4b", "0x…5c"]

經過簽名的raw transaction列表

maxBlockNumber

uint64

39177941

該bundle有效的最大區塊號,默認為當前區塊號+100

minTimestamp

uint64

1710229370

期望bundle有效的最小Unix秒級時間戳

maxTimestamp

uint64

1710829390

期望bundle有效的最大Unix秒級時間戳

revertingTxHashes

array[hash]

["0x…c7", "0x…b7"]

允許丟棄的交易哈希列表

請求示例

{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "eth_sendBundle",
  "params": [
    {
      "txs":["0x…4b", "0x…5c"],    // 經過簽名的raw transaction列表
      "maxBlockNumber":39177941,   // 該bundle有效的最大區塊號,默認為當前區塊號+100
      "minTimestamp":1710229370,   // 期望bundle有效的最小Unix秒級時間戳
      "maxTimestamp":1710829390,   // 期望bundle有效的最大Unix秒級時間戳
      "revertingTxHashes":[
        "0x44b89abe860142d3c3bda789cf955b69ba00b71882cd968ec407a70f4719ff06", 
        "0x7d7652c685e9fda4fe2e41bad017519cffeed8ba03d59aa6401284be2ec4244c"
        ]                         // 允許丟棄的交易哈希列表
    }
  ]
}‍

返回示例

{
 "jsonrpc":"2.0",
 "id":"1",
 "result":"0xa06b……f7e8ec" //bundle哈希
}‍
{
  "jsonrpc":"2.0",
  "id":"1",
  "error":{
    "code":-38000,
    "message":"the maxBlockNumber should not be smaller than currentBlockNum"
    }
}

Last updated