SolanaTransaction.v0 constructor

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

Creates a v0 transaction.

Implementation

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