RawTransaction constructor

RawTransaction(
  1. AccountAddress sender,
  2. BigInt sequenceNumber,
  3. TransactionPayload payload,
  4. BigInt maxGasAmount,
  5. BigInt gasUnitPrice,
  6. BigInt expirationTimestampSecs,
  7. ChainId chainId,
)

RawTransactions contain the metadata and payloads that can be submitted to Aptos chain for execution. RawTransactions must be signed before Aptos chain can execute them.

sender Account address of the sender. sequenceNumber Sequence number of this transaction. This must match the sequence number stored in the sender's account at the time the transaction executes. payload Instructions for the Aptos Blockchain, including publishing a module, execute a entry function or execute a script payload. maxGasAmount Maximum total gas to spend for this transaction. The account must have more than this gas or the transaction will be discarded during validation. gasUnitPrice Price to be paid per gas unit. expirationTimestampSecs The blockchain timestamp at which the blockchain would discard this transaction. chainId The chain ID of the blockchain that this transaction is intended to be run on.

Implementation

RawTransaction(
  this.sender,
  this.sequenceNumber,
  this.payload,
  this.maxGasAmount,
  this.gasUnitPrice,
  this.expirationTimestampSecs,
  this.chainId);