getTransactionReceipt method

Future<TransactionReceipt> getTransactionReceipt(
  1. String txHash
)

Implementation

Future<TransactionReceipt> getTransactionReceipt(String txHash) async {
  final result = await rpc
      .send<Map<String, dynamic>>('eth_getTransactionReceipt', [txHash]);
  // ignore: unnecessary_null_comparison
  if (result == null) {
    throw Exception('Transaction receipt not found for $txHash');
  }
  return TransactionReceipt.fromMap(result);
}