Generates a transaction based on the provided arguments. This function can create both simple and multi-agent transactions, allowing for flexible transaction handling.
The input arguments for generating the transaction.
An instance of a transaction, which may include secondary signer addresses and a fee payer address.
Generates a transaction based on the provided arguments
Note: we can start with one function to support all different payload/transaction types, and if to complex to use, we could have function for each type
Param: args.aptosConfig
AptosConfig
Param: args.sender
The transaction's sender account address as a hex input
Param: args.payload
The transaction payload - can create by using generateTransactionPayload()
Param: args.options
optional. Transaction options object
Param: args.secondarySignerAddresses
optional. For when want to create a multi signers transaction
Param: args.feePayerAddress
optional. For when want to create a fee payer (aka sponsored) transaction
Returns
An instance of a RawTransaction, plus optional secondary/fee payer addresses