This repository was archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Nonce too low: transaction on C-Chain failing #17
Copy link
Copy link
Open
Description
While trying to fund my Metamask address on the local C-Chain I get this error:
Error: Returned error: nonce too low
at Object.ErrorResponse (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/web3-core-helpers/src/errors.js:29:16)
at /usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/web3-core-requestmanager/src/index.js:170:36
at XMLHttpRequest.request.onreadystatechange (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1221:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
which makes the transaction failed altogether. Tried a couple of things and saw the nonce is actually 0 when doing web3.eth.getTransactionCount(myAddress)
, but I am not sure is this is the nonce from Ethereum mainnet? Actually, it should be 0 too on the local C-Chain since I didn't make any transaction from that address.
Then it worked once when restarting the faucet (npm run serve
) but I didn't do anything special 🤷 Strange
Metadata
Metadata
Assignees
Labels
No labels