跳轉至

項目方

RPC端點

{% hint style="info" %} 項目方可發送至項目專屬RPC端點 {% endhint %}

https://bsc.blockrazor.xyz

請求參數

{% hint style="info" %} 在BSC中,eth_sendMevBundle允許在bundle中包含0 gwei的交易,但bundle中交易(public mempool中的交易除外)的平均gasPrice仍需不小於0.05 gwei。 {% endhint %}

參數必選格式示例備註
txs[]bytes[ "0xf84a……e54284" ]raw txs,最多允許設置50筆
revertingTxHashes[]hash["0x1f23……0abb1e"]允許revert的交易哈希,是txs的子集
maxBlockNumberuint6439177941該bundle有效的最大區塊號,默認為當前區塊號+100

請求示例

curl -X POST -H "Content-Type: application/json" --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_sendMevBundle",
  "params": [{
    "Txs": [
"0xf8668203988405f5e100825208942ee393c739036a7660ec11bf2101d537eb52f3ac80808193a06836d5f4052376dc3114794da5fedd7a5b8090ddae0ec45dfa66c234fcabb6efa07cf17dad992c33e8e3e4d82355cfe12d3be2560fc2b0873c36dce398088d8e4f"
    ],
    "revertingTxHashes":[],
    "maxBlockNumber":62934913
  }]
}' https://bsc.blockrazor.xyz

返回示例

正常

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x11111111..."
}

異常

{
  "jsonrpc": "2.0",
  "id": 1,
  "jsonerror": {
      "code": -38000,
      "message": "nonce too low: address 0x9Abae1b279A4Be25AEaE49a33e807cDd3cCFFa0C, tx: 0 state: 45"
  }
}