getTransaction method

  1. @override
Future<TransactionResponse> getTransaction(
  1. String transactionHash
)
override

Returns the information about a transaction requested by transaction hash transactionHash.

Implementation

@override
Future<TransactionResponse> getTransaction(String transactionHash) async {
  final responseMap = await _makeRPCCall<Map<String, dynamic>>(
    'eth_getTransactionByHash',
    [transactionHash],
  );
  return TransactionResponse(
    hash: responseMap['hash'],
    confirmations: responseMap['confirmations'],
    from: responseMap['from'],
  );
}