generateBCSRawTransaction static method

SignedTransaction generateBCSRawTransaction(
  1. AptosAccount accountFrom,
  2. RawTransaction rawTxn
)

Implementation

static SignedTransaction generateBCSRawTransaction(AptosAccount accountFrom, RawTransaction rawTxn) {
  final txnBuilder = TransactionBuilderEd25519(
    accountFrom.pubKey().toUint8Array(),
    (Uint8List signingMessage) => Ed25519Signature(accountFrom.signBuffer(signingMessage).toUint8Array())
  );

  return txnBuilder.rawToSigned(rawTxn);
}