ProviderError:孟买测试网上的交易定价过低
我正在 Polygon 网络上建立一个 NFT 市场。
我能够在本地主机上部署我的代码,一切正常。
但是当我尝试使用命令将其部署到孟买测试网时 npxhardhat runscripts/deploy.js --network mumbai
我遇到了这个错误。 ProviderError:交易定价过低
I am building an NFT Market on the Polygon network.
I am able to deploy my code on localhost and everything works fine.
But when I try to it deploy to the mumbai testnet using the command
npx hardhat run scripts/deploy.js --network mumbai
I run into this error.
ProviderError: transaction underpriced
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
实际上我早上也遇到了这个错误。不知怎的,我相信默认的gasPrice没有被采纳。所以我只是用以下内容更新了我的安全帽配置文件:-
早些时候我没有明确使用gasPrice。当我赋予它一些价值时,它起作用了。
Actually I too got this error in morning. Somehow I believe default gasPrice is not picked up. So I just updated my hardhat config file with following :-
Earlier I was not using gasPrice explicitly. When I put some value it, it worked.
就我而言,我使用了错误的 RPC 节点,共享以防万一有人犯了与我相同的错误
我如何修复它?
In my case, I was using the wrong RPC node, sharing just in case someone made the same mistake as I did
How did I fix it?
UNDERPICED [REPLACMENT_UNDERPICED]
官方文档:https://docs.ethers.org/v5/troubleshooting/errors/#help-REPLACMENT_UNDERPICED
总结:与交易中的 3 个问题有关:
解决方案:
官方文档:https://docs.ethers.org/v5/troubleshooting/errors/#help-REPLACMENT_UNDERPICED
UNDERPRICED [REPLACEMENT_UNDERPRICED]
Official doc: https://docs.ethers.org/v5/troubleshooting/errors/#help-REPLACEMENT_UNDERPRICED
Summary: is related to 3 issues on a transaction:
Solutions:
Official documentation: https://docs.ethers.org/v5/troubleshooting/errors/#help-REPLACEMENT_UNDERPRICED