I have installed ethereum and geth (1.9). It is running and

geth --version

the result is:

> Geth
>     Version: 1.9.5-stable
>     Git Commit: a1c09b93871dd3770adffb177086abda1b2ff3af
>     Git Commit Date: 20190920
>     Architecture: amd64
>     Protocol Versions: [63]
>     Network Id: 1
>     Go Version: go1.13
>     Operating System: darwin
>     GOPATH=
>     GOROOT=/Users/travis/.gimme/versions/go1.13.darwin.amd64

I also see the size of the chaindata growing (under ~/Library/Ethereum).

However, opening a console (by geth attach) and asking:

> eth.accounts

i'm getting: []

Is there a way the extract data from the mainnet like accounts, blocks, transactions etc. directly by using geth (no 3rd party tools)?

  • 1
    The command eth.accounts show the local accounts you have created. It is possible to use geth to extract blockchain data eth.getBlock(0) will show genesis block. To extract data it has to be full synced eth.syncing and at the most recent block eth.blockNumber. If you only want to extract data perhaps a block explorer is easier github.com/poanetwork/blockscout. – Ismael Oct 1 '19 at 1:22
  • Thank you Ismael. – aaron Oct 1 '19 at 16:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.