Bundle API
Our Anti-MEV RPC on BSC supports the method eth_sendBundle
to send multiple private transactions in a bundle.
RPC Endpoint: https://bsc.rpc.blocksec.com
eth_sendBundle
POST
/
Send private transactions in a bundle
Request Parameters
Parameter
Mandatory
Format
Example
Description
txs
Mandatory
array[hex]
["0x…35", "0x…4e"]
List of signed raw transactions.
maxBlockNumber
Optional
uint64
47793530
Maximum block number for the bundle's validity. Default is current block number + 100.
revertingTxHashes
Optional
array[hash]
["0x…2c", "0x…3d"]
List of transaction hashes allowed for revert.
Request Example
curl https://bsc.rpc.blocksec.com \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "1",
"method": "eth_sendBundle",
"params": {
...
}
}'
One example of the detailed request.
{
"jsonrpc": "2.0",
"id": "1",
"method": "eth_sendBundle",
"params": [
{
"txs":["0x…3e", "0x…1f"], // List of signed raw transactions
"maxBlockNumber":47793594, // The maximum block number for the bundle to be valid, with the default set to the current block number + 100
"revertingTxHashes":[
"07c956724f0fd00a9fb1ea71e111d87dc8dae099c914b8b4859f1e6e667d4ea8"
], // List of transaction hashes allowed for revert
}
]
}
Response Example
{
"jsonrpc":"2.0",
"id":"1",
"result":"0x1e5e……fbd1" //bundle hash
}
{
"jsonrpc":"2.0",
"id":"1",
"error":{
"code":-38000,
"message":"the maxBlockNumber should not be smaller than currentBlockNum"
}
}
Last updated