{
blockNumber: "0xb",
txs: ["0xraw_tx_1", "0xraw_tx_2"],
revertingTxHasher: ["0xtx_2_hash"]
}
{
version: "v0.1",
inclusion: { block: "0xb" },
body: [{ tx: "0xraw_tx_1" }, { tx: "0xraw_tx_2", canRevert: true }],
}
To send send 80% of profit made by "0xraw_tx_backrun" to the origin of tx "0xraw_tx_target"
{
blockNumber: "0xb",
txs: ["0xraw_tx_target", "0xraw_tx_backrun"],
refundPercent: 80,
}
{
version: "v0.1",
inclusion: { block: "0xb" },
body: [{ tx: "0xraw_tx_1" }, { tx: "0xraw_tx_2" }],
validity: { refund: [{ bodyIdx: 0, percent: 80 }] },
}
{
blockNumber: "0xb",
txs: ["0xraw_tx_target", "0xraw_tx_backrun"],
refundPercent: 80,
refundRecipient: "0xrefund_rec",
}
const innerBundle = {
version: "v0.1",
inclusion: { block: "0xb" },
body: [{ tx: "0xraw_tx_1" }],
validity: { refundConfig: [{ address: "0xrefund_rec", percent: 100}] }
}
{
version: "v0.1",
inclusion: { block: "0xb" },
body: [{ bundle: innerBundle }, { tx: "0xraw_tx_2" }],
validity: { refund: [{ bodyIdx: 0, percent: 80 }] },
}
backrun tx (or bundle) with hash "0xtarget_hash" using tx "0xraw_tx_backrun"
{
version: "v0.1",
inclusion: { block: "0xb" },
body: [{ hash: "0xtarget_hash" }, { tx: "0xraw_tx_backrun" }],
}