What is block.number of solidity in casper chain(RUST)?
Thanks for your question. I will get an example compiled for you and follow up. To clarify, you’re looking to obtain the latest block from the chain on the casper network, correct?
@antko you know when you’ve had a long day and your brain doesn’t quite work? that’d be me today!
The casper-client uses rust and can obtain the current block with the following command:
casper-client get-block --node-address http://localhost:7777
You can see the source code for casper-client get-block on our github page.
@Kavma , How can you get the highest block on the network ? I would like to see the sync status of my node