sendTransaction method

Future<String> sendTransaction(
  1. SignedTransaction transaction, {
  2. bool waitForConfirmation = false,
  3. int? timeout,
})

Broadcast a new (signed) transaction on the network.

Throws an AlgorandException if there is an HTTP error. Returns the id of the transaction.

Implementation

Future<String> sendTransaction(
  SignedTransaction transaction, {
  bool waitForConfirmation = false,
  int? timeout,
}) async {
  return _transactionRepository.sendTransaction(
    transaction,
    waitForConfirmation: waitForConfirmation,
    timeout: timeout ?? _options.timeout,
  );
}