Unable to decode bundle

Open
#119 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
api

Research direction

Start by comparing the successful bundle simulation with the sendRawBundle call shown in the issue, focusing on FlashbotsBundleProvider.create and the signedBundle passed to sendRawBundle. Reproduce the submission error and trace where the bundle becomes undecodable; done means identifying the cause and confirming a working submission path.

Written by the indexing model from the issue text.

Description

Hey,

When simulating a bundle, everything works just fine, however, when submitting it using:

    const bundleReceipt = await flashbotsProvider.sendRawBundle(
      signedBundle,
      targetBlockNumber
    );

Then I get the following error message:

{ error: { message: 'unable to decode bundle', code: -32000 } }

I instantiate my flashbotsProvider as follows:

    const flashbotsProvider = await FlashbotsBundleProvider.create(
      await alchemy.config.getProvider(),
      new Wallet(process.env.SIGNER_PRIVATE_KEY, alchemy)
    );

Any thoughts?

Dominant language
No language data
Stars
2.6k
Forks
291
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flashbots/pm

All issues in flashbots/pm

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.