Function buildTransaction

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

AptosConfig

The transaction's sender account address as a hex input

The transaction payload - can create by using generateTransactionPayload()

optional. Transaction options object

optional. For when want to create a multi signers transaction

optional. For when want to create a fee payer (aka sponsored) transaction

An instance of a RawTransaction, plus optional secondary/fee payer addresses

{
rawTransaction: RawTransaction,
secondarySignerAddresses?: Array<AccountAddress>,
feePayerAddress?: AccountAddress
}