Open jiazechen opened 4 years ago
I find uniswap does not work at openethereum.
because jsonrpc api request params omit "jsonrpc": "2.0".
request:
{"method":"eth_call","params":[{"to":"0xeefba1e63905ef1d7acba5a8513c70307c1ce441","data":"0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000065770b5283117639760bea3f867b69b3697a91dd0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000000000000000000000000000eefba1e63905ef1d7acba5a8513c70307c1ce441000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000244d2301cc0000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000"},"latest"],"id":"335553604008694074530677"}
response: error
{ "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"}
reponse: ok
{ "jsonrpc": "2.0", "result": "0x0000000000000000000000000000000000000000000000000000000000a5e79e00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000", "id": "335553604008694074530677" }
This is node issue, not the uniswap issue.
I find uniswap does not work at openethereum.
because jsonrpc api request params omit "jsonrpc": "2.0".
request:
{"method":"eth_call","params":[{"to":"0xeefba1e63905ef1d7acba5a8513c70307c1ce441","data":"0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000065770b5283117639760bea3f867b69b3697a91dd0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000000000000000000000000000eefba1e63905ef1d7acba5a8513c70307c1ce441000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000244d2301cc0000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000"},"latest"],"id":"335553604008694074530677"}
response: error
{ "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"}
reponse: ok
{ "jsonrpc": "2.0", "result": "0x0000000000000000000000000000000000000000000000000000000000a5e79e00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000", "id": "335553604008694074530677" }