EnglishDeutsch日本語中文EspañolFrançaisՀայերենNederlandsРусскийItalianoPortuguêsTürkçe포트폴리오 추적기스왑암호화폐가격통합뉴스획득블로그NFT위젯DeFi 포트폴리오 추적기오픈 API24시간 보고서홍보 자료API 문서

Geth account management through console

상승세:

0

하락세:

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]
상승세:

0

하락세:

0

공유
한 곳에서 모든 암호화폐, NFT 및 DeFi 를 관리하세요

시작하는 데 사용하는 포트폴리오를 안전하게 연결하세요.