flashbots / pm

Everything there is to know about Flashbots
2.54k stars 277 forks source link

Unable to decode bundle #119

Open aress31 opened 1 year ago

aress31 commented 1 year ago

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?

bhakiyakalimuthu commented 1 year ago

Hey apologies for the late reply. Are you still getting this issue.If so please dm in Discord @Euler6.