serialize method

List<int> serialize({
  1. bool verifySignatures = false,
})

Serializes the transaction.

Implementation

List<int> serialize({bool verifySignatures = false}) {
  if (verifySignatures) {
    if (!areSignaturesReady()) {
      throw const MessageException(
          "Not all transaction signatures are ready.");
    }
  }
  return SolanaTransactionUtils.serializeTransaction(message, _signatures);
}