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

flashbotsProvider.signBundle

Open nikaluka opened this issue 3 years ago • 3 comments

I got this error flashbotsProvider.signBundle is not a function


`const ethers = require('ethers')
const { FlashbotsBundleProvider} = require('@flashbots/ethers-provider-bundle')
const ethNetwork = "https://goerli.infura.io/v3/711844c77f41457c55c3da7";
var provider = new ethers.providers.JsonRpcProvider({ url: ethNetwork })

const mykey='008438c*********9fef2a5d32e36ba'; 
const authSigner = new ethers.Wallet(mykey)
var moi_akkaunt=authSigner.address;
var to03 = "0x00aB86e5d07e7595C0EF4E3cBd0d8808Fa3900";
			
const flashbotsProvider =  FlashbotsBundleProvider.create(
provider, 
moi_akkaunt,
"https://relay-goerli.flashbots.net",
"goerli");

 var signedTransactions=  {
       to: to03,
	   nonce: 55,
	   gasLimit:21000,
       gasPrice:5,
	   chainId:5,
       value:5005,  
    }
	
  
 
const signedBundle =  flashbotsProvider.signBundle ([
            {
                signer: authSigner,
                transaction: signedTransactions
            }
        ])`

nikaluka avatar Sep 12 '21 22:09 nikaluka

Try creating the flashbots provider like this

const flashbotsProvider =  FlashbotsBundleProvider.create(
provider, 
authSigner,
"https://relay-goerli.flashbots.net",
"goerli")

nullbitx8 avatar Oct 13 '21 02:10 nullbitx8

Try creating the flashbots provider like this

const flashbotsProvider =  FlashbotsBundleProvider.create(
provider, 
authSigner,
"https://relay-goerli.flashbots.net",
"goerli")

It did not help. I got the same error

nikaluka avatar Oct 13 '21 19:10 nikaluka

Exact error and syntax of example is unclear, closing.

zeroXbrock avatar Mar 24 '23 18:03 zeroXbrock