...by Daniel Szego
quote
"On a long enough timeline we will all become Satoshi Nakamoto.."
Daniel Szego

Tuesday, May 1, 2018

Geth commands summarized to handling accounts

Some of the most important accounts are summarized to handle accounts or wallets:

- personal.listAccounts - listing existing accounts from the local wallet and local user
- web3.accounts - listing all the accounts
- personal.newAccount() - creating new account - generating private / public key and protecting with passphrase - stored under datadir/keystore
- eth.coinbase - coinbase account
- personal.lockAccount('account_name') - locking an account
- personal.unlockAccount('account_name', 'passphrase') - locking an account
- personal.importRawKey(keydata, passphrase) - importing a
- eth.getBalance(''account') - getting ethereum balance for the account