sendSignedTransactionsRaw method

Future<List<JsonRpcResponse<TransactionSignature?>>> sendSignedTransactionsRaw(
  1. List<String> signedTransactions, {
  2. SendTransactionConfig? config,
  3. bool? eagerError,
})

Sends the signed Transactions to the cluster for processing (default base-64 encoding).

If eagerError is true the method will return a list of JsonRpcSuccessResponses or a Future.error with the first error found in the response.

Implementation

Future<List<JsonRpcResponse<TransactionSignature?>>>
sendSignedTransactionsRaw(
  final List<String> signedTransactions, {
  final SendTransactionConfig? config,
  final bool? eagerError,
}) async {
  final defaultConfig =
      config ?? SendTransactionConfig(preflightCommitment: commitment);
  final methods = signedTransactions.map(
    (tx) => SendTransaction(tx, config: defaultConfig),
  );
  return sendAll(
    JsonRpcMethodBuilder(methods.toList(growable: false)),
    eagerError: eagerError,
  );
}