getTransaction method
Returns the TransactionResponse with hash
or null if the transaction is unknown.
If a transaction has not been mined, this method will search the transaction pool.
Various backends may have more restrictive transaction pool access (e.g. if the gas price is too low or the transaction was only recently sent and not yet indexed) in which case this method may also return null.
Implementation
Future<TransactionResponse?> getTransaction(String hash) =>
call<TransactionResponse?>('getTransaction', [hash]);