getExecutedTxData method

Future<Map<String, dynamic>> getExecutedTxData({
  1. required String txHash,
  2. bool testNetwork = true,
})

Implementation

Future<Map<String, dynamic>> getExecutedTxData(
    {required String txHash, bool testNetwork = true}) async {
  final res = await networkClient.getRequest(
      "https://blockstream.info${testNetwork ? '/testnet' : ''}/api/tx/$txHash");
  if (res.isSuccess) {
    return res.data;
  } else {
    throw Exception(res.data);
  }
}