简体   繁体   English

web3dart 中的发件人无效

[英]Invalid Sender in web3dart

I use web3dart and when I send a transaction I get such error:我使用web3dart ,当我发送交易时出现这样的错误:

error: {code: -32000, message: invalid sender}};错误:{代码:-32000,消息:发件人无效}};

I changed the chainId , but it did not help, can someone come across this?我更改了chainId ,但没有帮助,有人能遇到这个吗? despite this mistake I can get a balance.尽管有这个错误,我仍然可以取得平衡。

@Vladimir, I think in your project security settings, there configured " Required project secret for all requests " @Vladimir,我认为在您的项目安全设置中,配置了“所有请求所需的项目机密

If that is true then you need to pass your project-secret with : in your RPC request url like below如果这是真的,那么您需要在您的 RPC 请求 url 中使用:传递您的项目机密,如下所示

https://:YOUR-PROJECT-SECRET@.infura.io/v3/YOUR-PROJECT-ID https://:YOUR-PROJECT-SECRET@.infura.io/v3/YOUR-PROJECT-ID

fetchChainIdFromNetworkId: true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM