Message.legacy constructor

Message.legacy({
  1. required Pubkey payer,
  2. required List<TransactionInstruction> instructions,
  3. required Blockhash recentBlockhash,
})

Creates a legacy message.

Implementation

factory Message.legacy({
  required final Pubkey payer,
  required final List<TransactionInstruction> instructions,
  required final Blockhash recentBlockhash,
}) =>
    Message.compile(
      version: null,
      payer: payer,
      instructions: instructions,
      recentBlockhash: recentBlockhash,
    );