Message.compile constructor

Message.compile({
  1. required List<TransactionInstruction> transactionInstructions,
  2. required SolAddress payer,
  3. required SolAddress recentBlockhash,
})

Compiles a legacy message from provided parameters.

Implementation

factory Message.compile({
  required List<TransactionInstruction> transactionInstructions,
  required SolAddress payer,
  required SolAddress recentBlockhash,
}) {
  return SolanaTransactionUtils.compileLegacy(
    transactionInstructions: transactionInstructions,
    payer: payer,
    recentBlockhash: recentBlockhash,
  );
}