Skip to content

Instantly share code, notes, and snippets.

@tzhenghao
Last active January 21, 2018 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzhenghao/ecf00b2bf7f5ffeaa68a210e66c52841 to your computer and use it in GitHub Desktop.
Save tzhenghao/ecf00b2bf7f5ffeaa68a210e66c52841 to your computer and use it in GitHub Desktop.
How to list all account(s) via Geth
# List all account(s)
geth account list
# List all account(s) that are under the Ropsten test network
geth --testnet account list
# List all account(s) that are under the Rinkeby test network
geth --rinkeby account list
# sample output 1:
# Account #0: {<account address>} keystore:<SOME PATH HERE>
# Account #1: {<account address>} keystore:<SOME PATH HERE>
# ...
# sample output 2:
# WARN [01-21|13:42:04] No etherbase set and no accounts found as default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment