signTransaction method

Uint8List signTransaction(
  1. AptosAccount accountFrom,
  2. RawTransaction rawTransaction
)

Converts a transaction request produced by generateTransaction into a properly signed transaction, which can then be submitted to the blockchain.

Implementation

Uint8List signTransaction(
  AptosAccount accountFrom,
  RawTransaction rawTransaction
) {
  return AptosClient.generateBCSTransaction(accountFrom, rawTransaction);
}