the method eth_chainId does not exist #59

Closed
opened 2021-04-19 12:38:48 +00:00 by ramilexe · 3 comments
ramilexe commented 2021-04-19 12:38:48 +00:00 (Migrated from github.com)

Geth:

> curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0", "method": "eth_chainId", "params": [], "id": 1}' localhost:8545
{"jsonrpc":"2.0","id":1,"result":"0x4"}

ipld-eth-server:

> curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0", "method": "eth_chainId", "params": [], "id": 1}' localhost:8081
{"jsonrpc":"2.0","id":1,"error":{"code":-32601,"message":"the method eth_chainId does not exist/is not available"}}
Geth: ``` > curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0", "method": "eth_chainId", "params": [], "id": 1}' localhost:8545 {"jsonrpc":"2.0","id":1,"result":"0x4"} ``` ipld-eth-server: ``` > curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0", "method": "eth_chainId", "params": [], "id": 1}' localhost:8081 {"jsonrpc":"2.0","id":1,"error":{"code":-32601,"message":"the method eth_chainId does not exist/is not available"}} ```
Member

Whoops, missed this one because its not listed in https://eth.wiki/json-rpc/API

But it is here: https://github.com/vulcanize/go-ethereum/blob/master/internal/ethapi/api.go#L533 we just need to copy that.

Whoops, missed this one because its not listed in https://eth.wiki/json-rpc/API But it is here: https://github.com/vulcanize/go-ethereum/blob/master/internal/ethapi/api.go#L533 we just need to copy that.
ramilexe commented 2021-04-19 21:53:26 +00:00 (Migrated from github.com)

fixed in f8b9d9475e

fixed in https://github.com/vulcanize/ipld-eth-server/pull/53/commits/f8b9d9475e46a897c362f758aeeb5c780547be27
ramilexe commented 2021-04-29 13:36:18 +00:00 (Migrated from github.com)
fixed in PR https://github.com/vulcanize/ipld-eth-server/pull/53
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-server#59
No description provided.