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

1 Answer 1


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 and acknowledge you have read our privacy policy.

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