I have Geth running locally, and for whatever reason the JSON-RPC api is not working. Web3.js is working fine.
I've tried to start the console several ways:
geth --rpc --rpcapi "eth,net,admin,web3" --verbosity 0 --unlock 0 console
I've also included the port and other combinations, such as starting RPC from within the console using admin.startRPC(addr,host)
.
Each time I make an RPC call, for example:
curl -X POST --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}'
I get a variation of the following output:
(anonymous): Line 1:9 Unexpected identifier (and 1 more errors)
I've also tried RPC calls omitting -X POST
or specifying rpcaddr:rpchost
at the end.
I don't have any other connections, or other geth-attached windows.