Error: [number-to-bn] while converting number "0xNaN" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported

The following error message can occur when performing a transaction in MetaMask:




In this case, start by reinstalling MetaMask on your device. Make sure you have all the keys to your accounts backed up: your Secret Recovery Phrase, private keys (imported accounts), and passwords before you uninstall.


For details of how to restore your account after reinstalling MetaMask, please refer to this article.

To better communicate the importance of never sharing your seed phrase, we've changed the name of the phrase to "secret recovery phrase". Learn more here

Was this article helpful?
13 out of 44 found this helpful

Articles in this section

See more
MetaMask Support on Twitter
Beware of scam Twitter accounts. Never give anyone your Secret Recovery Phrase!
MetaMask YouTube
Fow how-to and support videos please visit our channel