How to import and use NonceManager? #1570
Answered
by
zemse
jimmyranson229
asked this question in
Q&A
Replies: 1 comment
-
const { NonceManager } = require('ethers')
// this NonceManager is likely undefined, that's maybe why you get the not a constructor error
const { NonceManager } = require('@ethersproject/experimental') // you will need to install this package, its not included in `ethers`. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ricmoo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there,
I've imported like this
const { NonceManager } = require('ethers')
is it correct? and i've used it like this
const wallet = ethers.Wallet.fromMnemonic(mnemonic);
const acct = wallet.connect(provider);
const account = new NonceManager(acct);
but it is throwing me NonceManager is not a constructor error
Please help me with some example code. docs don't have any example and it is confuse for my level of understanding
i just want to send continuous transactions. can someone please give me some example code?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions