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?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
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.