avalanchego
avalanchego copied to clipboard
how do I see the block number it's on while I'm syncing?
Hi, how do I see the block number it's on while I'm syncing?
Thank you. Chaona
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
We can't. The RPC is not available until the sync is finished.
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.