payAllSui method

Future<SuiExecuteTransactionResponse> payAllSui(
  1. PayAllSuiTransaction transaction, {
  2. SuiTransactionBlockResponseOptions? options,
  3. ExecuteTransaction requestType = ExecuteTransaction.WaitForLocalExecution,
})

Implementation

Future<SuiExecuteTransactionResponse> payAllSui(
  PayAllSuiTransaction transaction, {
  SuiTransactionBlockResponseOptions? options,
  ExecuteTransaction requestType = ExecuteTransaction.WaitForLocalExecution
}) async {
  final signerAddress = getAddress();
  final txBytes = await serializer.newPayAllSui(
    signerAddress,
    transaction
  );
  return await signAndExecuteTransaction(
    transaction: txBytes,
    options: options,
    requestType: requestType
  );
}