Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In order to know last block hash in bitcoin I can just call
from command line.
Is there something like that in ethereum or I should use RPC and curl?
When your node is running, you can use:
geth --exec 'eth.getBlock(eth.blockNumber).hash' attach
If it is not running, then there is no way to be synchronized,
so you cannot get this information.
Required, but never shown