I would like to get something similar to solidity
block.number - 1
using Nethereum
BlockParameter.CreateLatest()
Is latest here mean the Last BlockNumber been mined? Or do I need to minus 1?
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 communityvar latestBlockNumber = await web3.Eth.Blocks.GetBlockNumber.SendRequestAsync();
See the bottom example located here: https://nethereum.readthedocs.io/en/latest/Nethereum.Workbooks/docs/nethereum-gettingstarted-infura/
Which I posted above ^.