🚨 JUST IN: Crypto AI Agent is here!!! Watch the video 🎥

EnglishDeutsch한국어日本語中文EspañolFrançaisՀայերենРусскийItalianoPortuguêsTürkçePortfolio-trackerOmruilenCryptovalutaPrijzenOpen APIIntegratiesNieuwsVerdienenBlogNFTWidgetsDeFi Portefeuille TrackerCrypto Gaming24u-rapportagePersmapAPI Documenten
CoinStats

Geth account management through console

4j geleden
bullish:

0

bearish:

0

img

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 https://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?

submitted by /u/bomberb17
[link] [comments]
4j geleden
bullish:

0

bearish:

0

Beheer al jouw cryptovaluta, NFT en DeFi vanaf één plek

Verbind de portfolio die je gebruikt veilig om te beginnen.