getTransaction method
Get single transaction by its id. Return Transaction if found or throw error
Implementation
@override
Future<Transaction?> getTransaction(String hash) async {
if (_disposed) throw TransportCallAfterDisposeError();
return mutex.protectRead(() async {
final res = await transport.getTransaction(hash: hash);
return res == null ? null : Transaction.fromJson(jsonDecode(res));
});
}