Using Nethereum, I would like to get the block hash given a block number (i.e. block height).


This works

    blockHash = (await _web3.Eth.Blocks.GetBlockWithTransactionsByNumber.SendRequestAsync(
        new HexBigInteger(relevantBlockNumber))).BlockHash;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.