ethers-provider-flashbots-bundle
ethers-provider-flashbots-bundle copied to clipboard
flashbotsProvider.signBundle
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
}
])`
Try creating the flashbots provider like this
const flashbotsProvider = FlashbotsBundleProvider.create(
provider,
authSigner,
"https://relay-goerli.flashbots.net",
"goerli")
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
Exact error and syntax of example is unclear, closing.