sendSignedTransaction method

Future<String> sendSignedTransaction(
  1. TransactionReceipt transaction
)

Sends a signed transaction.

To obtain a transaction in a signed form, use signTransaction.

Returns a hash of the messageToSign of the transaction which, after the transaction has been included in a forged block, can be used to obtain detailed information about the transaction.

Implementation

Future<String> sendSignedTransaction(TransactionReceipt transaction) async {
  return _makeRPCCall('topl_broadcastTx', params: [
    {'tx': transaction.toBroadcastJson()}
  ]).then((value) => value['txId'] as String);
}