getBlockHash method

Future<String> getBlockHash(
  1. int blockNumber
)

Implementation

Future<String> getBlockHash(int blockNumber) async {
  return (await Durt.i.polkadart.send('chain_getBlockHash', [
    blockNumber,
  ])).result.replaceAll('0x', '');
}