Transaction.v0 constructor

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

Creates a v0 transaction.

Implementation

factory Transaction.v0({
  final List<Uint8List>? signatures,
  required final Pubkey payer,
  required final List<TransactionInstruction> instructions,
  required final Blockhash recentBlockhash,
  final List<AddressLookupTableAccount>? addressLookupTableAccounts,
}) =>
    Transaction(
      signatures: signatures,
      message: Message.v0(
        payer: payer,
        instructions: instructions,
        recentBlockhash: recentBlockhash,
        addressLookupTableAccounts: addressLookupTableAccounts,
      ),
    );