Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON RPC request fails #112

Open
rstormsf opened this issue May 3, 2019 · 2 comments
Open

JSON RPC request fails #112

rstormsf opened this issue May 3, 2019 · 2 comments

Comments

@rstormsf
Copy link

rstormsf commented May 3, 2019

Nifty or Metamask

window.ethereum.sendAsync(
        {
          method: 'eth_sendRawTransaction',
          params: ["0xf86c80843b9aca00825208940039f22efb07a647557c7c5d17854cfd6d489ef38806d09918fdd148008081bda0afd64714f9de9131c87ac39cd81dea24e0bb5a3b513fa6a2b7d22ab425f16e9ba0068a1b2eddf2a29109c2f81ff6a44f106a1ac6abec5a676c0ccfed8174d83490"],
          jsonrpc: '2.0',
          from: "0xb036A9d5201f48c110692E8048EE784b988F6192"
        }

request fails because it doesn't like from field, while all other EVM networks are fine with this parameter

TO fix I had to omit the from field

window.ethereum.sendAsync(
        {
          method: 'eth_sendRawTransaction',
          params: ["0xf86c80843b9aca00825208940039f22efb07a647557c7c5d17854cfd6d489ef38806d09918fdd148008081bda0afd64714f9de9131c87ac39cd81dea24e0bb5a3b513fa6a2b7d22ab425f16e9ba0068a1b2eddf2a29109c2f81ff6a44f106a1ac6abec5a676c0ccfed8174d83490"],
          jsonrpc: '2.0'
        }

I think POA, SPOA, xDAI RPC endpoints should be compatible in terms of JSON RPC API

@maxaleks
Copy link

Hi @rstormsf
On which network did you find this bug?
I've tested Kovan and Sokol and I haven't reproduced this.
Could you re-check please? Maybe the bug is already fixed

@rstormsf
Copy link
Author

could be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants