0

This question already has an answer here:

I have setup a geth client in windows. By using below command I am able to run geth.

geth --rinkeby --verbosity "0" console

I created an account then pasted my public key on twitter to get funded by Faucet of Rinkeby, it was success, I can see my balance on Rinkeby web ui.

But when I send query about my balance from geth win cli, it is still 0. getTransactionCount() is also 0.

when I do eth.syncing this is the output:

{
  currentBlock: 791043,
  highestBlock: 1772520,
  knownStates: 1607660,
  pulledStates: 1599109,
  startingBlock: 35346
}

According to Rinkeby web ui my transaction is in 1772468 th block

So why I can't see my balance, what does currentBlock mean in syncing function? Does that means my node hasn't synced with the blocks between current and highest block and behaves according to state at current block?

Confused.

Thanks

marked as duplicate by Ismael, Richard Horrocks, flygoing, manuhalo, Community Feb 16 '18 at 2:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Until it has finished syncing geth will not return meaningful data. – Ismael Feb 15 '18 at 6:19
  • What if our transactions are out of the interval between starting block and highest block of local node? How can we see the balance in that case? – Sinan Sari Feb 16 '18 at 3:20
  • You will have to wait until it has finished syncing. If you can't wait you can try using a node from infura.io or check by hand in a explorer like rinkeby.etherscan.io – Ismael Feb 16 '18 at 3:38
  • Highest node increasing faster than current block and there are 65 blocks difference, with this speed It will never be sync'd with most recent block. Is it normal? – Sinan Sari Feb 16 '18 at 3:39
  • Do you have a SSD? How much RAM do you have? Are you using linux, windows or macos? What version of geth are you using? I'd recommend a SSD with over 50Gb free, 8 Gb of RAM. – Ismael Feb 16 '18 at 3:56
0

currentBlock indicates how far geth has sync'd so far. So you see a zero balance because that's what the balance for that account was at block 791043. To use geth to check the current balance, you'll have to wait until you've sync'd up to the most recent block.

0

When ever you face any issue, verbosity will help you to identify what was issue. You provided verbosity value is 0 that means it will show any logs.

To modify verbosity

$> geth attach <>

geth> debug.verbosity(4)

If you run above command you can able to know what's going on in your geth client. Verbosity value will start from 0 to 6. By default its 3.

I guess geth client is not completed sync with rinkeby network. So that a reason its not showing balance.

Not the answer you're looking for? Browse other questions tagged or ask your own question.