Nhảy tới nội dung

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

Does this article need to be translated?

Contribute to the Help Center

Submit translations, corrections, and suggestions on GitHub, or reach out on our Community forums.

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

MetaMask error

In this case, start by reinstalling MetaMask on your device.

Before you uninstall, make sure you have your Secret Recovery Phrase and seed phrases (or private keys for any imported accounts). You do not need to have your MetaMask password, as you'll have to choose a new one as part of the restore process anyway.

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