10

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?

1

Try starting geth with explicit rpcapi flag

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

1

Create an account.

$ geth account new
Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase:
Repeat Passphrase:
Address: {168bc315a2ee09042d83d7c5811b533620531f67}

Or

Creates a new account and prints the address.

On the console, use:

personal.NewAccount() ... you will be prompted for a password ...

or

personal.newAccount("passphrase")

https://github.com/ethereum/go-ethereum/wiki/Managing-your-accounts

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.