Message.v0 constructor

Message.v0({
  1. required Pubkey payer,
  2. required List<TransactionInstruction> instructions,
  3. required Blockhash recentBlockhash,
  4. List<AddressLookupTableAccount>? addressLookupTableAccounts,
})

Creates a v0 message.

Implementation

factory Message.v0({
  required final Pubkey payer,
  required final List<TransactionInstruction> instructions,
  required final Blockhash recentBlockhash,
  final List<AddressLookupTableAccount>? addressLookupTableAccounts,
}) =>
    Message.compile(
      version: 0,
      payer: payer,
      instructions: instructions,
      recentBlockhash: recentBlockhash,
      addressLookupTableAccounts: addressLookupTableAccounts,
    );