avalanchego icon indicating copy to clipboard operation
avalanchego copied to clipboard

how do I see the block number it's on while I'm syncing?

Open chaonaa opened this issue 2 years ago • 1 comments

Hi, how do I see the block number it's on while I'm syncing?

Thank you. Chaona

chaonaa avatar Oct 03 '22 08:10 chaonaa

eth_blockNumber should work, manually you can do something like curl -s --header "content-type: application/json" --data '{"method":"eth_blockNumber","params":[],"id":93,"jsonrpc":"2.0"}' http://localhost:8545/ext/bc/C/rpc

AaronKutch avatar Oct 15 '22 03:10 AaronKutch

We can't. The RPC is not available until the sync is finished.

kcy1019 avatar Nov 14 '22 11:11 kcy1019

Hello @chaonaa, I have a pretty late comment, but hopefully still usefull. We have just added some documentation explaining the bootstrap process here. As @kcy1019 mentioned, RPCs are not available during sync. See this section for a technical explaination and pointer to the code which enforces this. I am going ahead and closing down this issue. You are welcome to open another one, here or in our docs repo should there be more questions.

abi87 avatar Feb 21 '23 22:02 abi87