generateSignSubmitTransaction method
Future<String>
generateSignSubmitTransaction(
- AptosAccount sender,
- TransactionPayload payload, {
- BigInt? maxGasAmount,
- BigInt? gasUnitPrice,
- BigInt? expireTimestamp,
Implementation
Future<String> generateSignSubmitTransaction(
AptosAccount sender,
TransactionPayload payload,{
BigInt? maxGasAmount,
BigInt? gasUnitPrice,
BigInt? expireTimestamp
}) async {
final rawTransaction = await generateRawTransaction(
sender.address,
payload,
maxGasAmount: maxGasAmount,
gasUnitPrice: gasUnitPrice,
expireTimestamp: expireTimestamp
);
final bcsTxn = AptosClient.generateBCSTransaction(sender, rawTransaction);
final pendingTransaction = await submitSignedBCSTransaction(bcsTxn);
return pendingTransaction["hash"];
}