ethers-provider-flashbots-bundle icon indicating copy to clipboard operation
ethers-provider-flashbots-bundle copied to clipboard

sending raw bundle to MEX-Relay is not working,bundle are not including in blocks

Open SevenbitsMayur opened this issue 3 years ago • 1 comments

I have created a smart contract to pay a miner tip via a smart contract call to block.coinbase.transfer() I have followed all required steps to send the bundle to MEV-Relay but still, it is not working. I am following the below approach to make the transaction

populate contract transaction which contain block.coinbase.transfer(). sign the bundle transaction using populated const signedBundle = await flashbotsProvider.sign bundle([ { signer: wallet, // ethers signer transaction: transaction // ethers populated transaction object } ]); send the raw bundle in a loop for (var i = 1; i <= 10; i++) { // const minTimestamp = (await provider.getBlock(blockNumber + i)).timestamp const maxTimestamp = minTimestamp + 120 const bundleReceipt = await flashbotsProvider.sendRawBundle( signedBundle, // bundle we signed above blockNumber + i, // block number at which this bundle is valid { minTimestamp, // optional minimum timestamp at which this bundle is valid (inclusive) maxTimestamp, // optional maximum timestamp at which this bundle is valid (inclusive) } );

SevenbitsMayur avatar Jun 18 '21 05:06 SevenbitsMayur

Facing same issue. Have you resolved this ?

kr-manav avatar Jul 12 '23 06:07 kr-manav