getDstTransaction method

  1. @override
Future<RawTransaction?> getDstTransaction(
  1. String messageHash
)
override

Call get_dst_transaction of nekoton's transport and return option RawTransaction or throw error

Implementation

@override
Future<RawTransaction?> getDstTransaction(String messageHash) async {
  if (_disposed) throw TransportCallAfterDisposeError();

  final res = await transport.getDstTransaction(messageHash: messageHash);

  return res == null ? null : RawTransaction.fromJson(jsonDecode(res));
}