getBlockByHash method

Future getBlockByHash (String hash, { bool json: false })

Implementation

Future<dynamic> getBlockByHash(String hash, {bool json = false}) async {
  var data = {
    'Action': 'getblockbyhash',
    'Version': '1.0.0',
    'Hash': hash,
    'Raw': json ? '0' : '1'
  };
  return send(data);
}