A few years ago I used to access my ethereum account in ~/.ethereum/keystore
though geth console as follows:
eth.accounts[0]
(returned ethereum account)
personal.unlockAccount(eth.accounts[0])
(unlock account in order to send ether)
web3.fromWei(eth.getBalance(eth.accounts[0]), "ether")
(get balance)
etc.
But now when I log into the geth console:
geth attach http://127.0.0.1:8545
then eth.accounts
or web3.eth.accounts
return an empty array, and eth.account
returns "undefined".
How can I now access my ethereum account in keystore?
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments