Open jiazechen opened 3 years ago
OpenEthereum version**: 3.0.1 OS: Linux
I find when omit "jsonrpc":"2.0" in params, node returned me:
{ "error": { "code": -32600, "message": "Unsupported JSON-RPC protocol version" }, "id": "335553604008694074530677" }
but , at geth it's ok , and with "jsonrpc":"2.0" in params at openethereum , it's ok too.
request:
{"method":"eth_call","params":[{"to":"0xeefba1e63905ef1d7acba5a8513c70307c1ce441","data":"0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000065770b5283117639760bea3f867b69b3697a91dd0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000000000000000000000000000eefba1e63905ef1d7acba5a8513c70307c1ce441000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000244d2301cc0000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000"},"latest"],"id":"335553604008694074530677"}
response:
{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0xeefba1e63905ef1d7acba5a8513c70307c1ce441","data":"0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000065770b5283117639760bea3f867b69b3697a91dd0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000000000000000000000000000eefba1e63905ef1d7acba5a8513c70307c1ce441000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000244d2301cc0000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000"},"latest"],"id":"335553604008694074530677"}
response
{ "jsonrpc": "2.0", "id": "335553604008694074530677", "result": "0x0000000000000000000000000000000000000000000000000000000000a5e77000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000" }
test website:
https://app.uniswap.org/
This is part of API, nothing to be done.
OpenEthereum version**: 3.0.1 OS: Linux
I find when omit "jsonrpc":"2.0" in params, node returned me:
{ "error": { "code": -32600, "message": "Unsupported JSON-RPC protocol version" }, "id": "335553604008694074530677" }
but , at geth it's ok , and with "jsonrpc":"2.0" in params at openethereum , it's ok too.
request:
{"method":"eth_call","params":[{"to":"0xeefba1e63905ef1d7acba5a8513c70307c1ce441","data":"0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000065770b5283117639760bea3f867b69b3697a91dd0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000000000000000000000000000eefba1e63905ef1d7acba5a8513c70307c1ce441000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000244d2301cc0000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000"},"latest"],"id":"335553604008694074530677"}
response:
{ "error": { "code": -32600, "message": "Unsupported JSON-RPC protocol version" }, "id": "335553604008694074530677" }
request:
{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0xeefba1e63905ef1d7acba5a8513c70307c1ce441","data":"0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000065770b5283117639760bea3f867b69b3697a91dd0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000000000000000000000000000eefba1e63905ef1d7acba5a8513c70307c1ce441000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000244d2301cc0000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000"},"latest"],"id":"335553604008694074530677"}
response
{ "jsonrpc": "2.0", "id": "335553604008694074530677", "result": "0x0000000000000000000000000000000000000000000000000000000000a5e77000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000" }
test website:
https://app.uniswap.org/