flashbots / flashbots/ethers-provider-flashbots-bundle

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

Open
#35 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
566
Forks
211
PR merge metrics
No merged PRs in 30d

Description

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)
}
);

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the transaction-signing and sendRawBundle loop described in the issue, checking the target blocks and timestamp bounds used for each submission. Done means the reason the bundle is not included in blocks is identified and the issue has a reproducible correction or clarified usage guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design, blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.