sendTrxRaw method

dynamic sendTrxRaw({
  1. required Map<String, dynamic> transaction,
})

Implementation

sendTrxRaw({required Map<String, dynamic> transaction}) async {
  try {
    await connector.sendTransaction(transaction);
    broadcastMessage(TonPaymentStatus.Transaction_prepaired);
  } catch (e) {
    if (e is UserRejectsError) {
      broadcastMessage(TonPaymentStatus.Transaction_error_or_rejected);
      logger.d(
          'You rejected the transaction. Please confirm it to send to the blockchain');
    } else {
      logger.d('Unknown error happened $e');
    }
  }
}