getTransaction method

Future<TransactionBlock> getTransaction(
  1. String id, {
  2. int? blockNumHint,
})

Get AMAX transaction

Implementation

Future<TransactionBlock> getTransaction(String id,
    {int? blockNumHint}) async {
  return this._post('/history/get_transaction',
      {'id': id, 'block_num_hint': blockNumHint}).then((transaction) {
    return TransactionBlock.fromJson(transaction);
  });
}