2

I use web3dart and when I send a transaction I get such error:

error: {code: -32000, message: invalid sender}};

I changed the chainId, but it did not help, can someone come across this? despite this mistake I can get a balance.

TylerH
  • 20,799
  • 66
  • 75
  • 101
Vladimir
  • 21
  • 1

2 Answers2

0

@Vladimir, I think in your project security settings, there configured "Required project secret for all requests"

If that is true then you need to pass your project-secret with : in your RPC request url like below

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

TejaDroid
  • 6,561
  • 4
  • 31
  • 38
-1
fetchChainIdFromNetworkId: true
John Conde
  • 217,595
  • 99
  • 455
  • 496
nima nima
  • 44
  • 1
  • 7