getTransaction method
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'],
);
}