Bundle API
Last updated
{
"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
}
]
}{
"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"
}
}