simulate

abstract suspend fun simulate(transaction: UnsignedTransaction, senderPublicKey: PublicKey, secondarySignerPublicKeys: List<PublicKey> = emptyList(), feePayerPublicKey: PublicKey? = null, options: SimulationOptions = SimulationOptions()): AptosResult<List<UserTransactionResponse>>

Simulates any non-encrypted transaction with optional gas-estimation flags.