MessageV0.compile constructor

MessageV0.compile({
  1. required List<TransactionInstruction> transactionInstructions,
  2. required SolAddress payer,
  3. required SolAddress recentBlockhash,
  4. List<AddressLookupTableAccount> lookupTableAccounts = const [],
})

Compiles a version 0 message from provided parameters.

Implementation

factory MessageV0.compile({
  required List<TransactionInstruction> transactionInstructions,
  required SolAddress payer,
  required SolAddress recentBlockhash,
  List<AddressLookupTableAccount> lookupTableAccounts = const [],
}) {
  return SolanaTransactionUtils.compileV0(
    transactionInstructions: transactionInstructions,
    payer: payer,
    recentBlockhash: recentBlockhash,
    lookupTableAccounts: lookupTableAccounts,
  );
}