wait For Transaction
abstract suspend fun waitForTransaction(hash: String, options: WaitForTransactionOptions = WaitForTransactionOptions()): AptosResult<TransactionResponse>
Waits until hash commits or the configured wait policy terminates.
open suspend fun waitForTransaction(transaction: PendingTransactionResponse, options: WaitForTransactionOptions = WaitForTransactionOptions()): AptosResult<TransactionResponse>
Waits for a pending response without requiring callers to extract its hash.