[Ethereum] Error: etherbase address must be explicitly specified


When I make a RPC to geth running remotely, I cannot get the account list / balance of the account. It also says that the coinbase is not set. But as far as I know, isnt the coinbase supposed to be the first account created if coinbase is explicitly not defined ? If I use geth command line in the remote machine, the two accounts that I have created show up, while the RPC returns 0 accounts. What could be the issue?

Best Answer

Try starting geth with explicit rpcapi flag

geth --rpc --rpcapi="db,eth,net,web3,personal,web3"