Links

eth_sendBundle

Get the hash of the bundle.
Through eth_sendBundle, you can fetch the hash of the bundle, txsHex is necessary. You only need to send transaction bundle without dealing with flashbots, reducing technical costs.
Supported on Ethereum.

Parameters

Object - An object with the following fields (required):
  • txsHex(array of string, required) - array or string that contains raw transactions hash.
  • blockNumber(integer number, optional, default latest) - the blockNumber that the bundle should be included.

Returns

Object - An object with the following fields:
  • id(integer number) - json-rpc id.
  • jsonrpc(string) - json-rpc version.
  • result(object) - an object with the following fields:
    • bundleHash(hex string) - the hash value of the bundle.

Example

Request

curl
TypeScript
curl --location --request POST 'https://apis.blockvision.org/v1/<api key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_sendBundle",
"params": {
"txsHex": [
"0xf868820154820428825208944592d8f8d7b001e72cb26a73e4fa1806a51ac79d85e8d4a51000802da03412f32337c2b1218fd76f6d953efb487a184d2c80ce0e3d7ceb5a130f25fc91a036031b6e93392eda68b5154b01b67ba68ababe32b8c93cdcf47c66d1bb2edff1",
"0xf868820155820428825208944592d8f8d7b001e72cb26a73e4fa1806a51ac79d85e8d4a51000802da0b0f88f3b49b63aef6148a316dbf6acb534731245b16c25110ec54f954fcef481a026fc384eaa960bed026e39e9f65ae1712ba5afb7250f7513299d896aeb384af1"
],
"blockNumber": 7626710
},
"id": 1
}'
import { BlockVisionProvider, BvNetwork } from 'blockvision.js'
// Optional parameters, but default to eth-mainnet and default api-key.
const bv = new BlockVisionProvider(BvNetwork.ETH_GOERLI)
// Access the BlockVision Mempool API
bv.getSendBundle({
txsHex: [
'0x02f874058085012a05f2008504a817c80082520894ba849911c809f6c922bc4767328a01db30c331e588058d15e17628000080c001a04cf959d89535bc942c3ac3ced842989d8f8452757bba5bba2815ac4afa67c073a005dd3ee1ffd916ec5f3003a94f2c58961f5e1ef04dcfc074be1a18069fe923df'
]
}).then(console.log)

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"bundleHash": "0x161a90b226ba43b0e283d9fda02e801a3685fd4f550f55226016e5c4a8ab3428"
}
}