isPendingTransaction

open suspend override fun isPendingTransaction(transactionHash: HexInput): Boolean

Checks if a transaction is currently in a pending state.

Usage

val hash = HexInput.fromString("0x...")
val isPending = aptos.isPendingTransaction(hash)
println("Is the transaction pending? $isPending")

Return

true if the transaction is pending, false otherwise.

Parameters

transactionHash

The hash of the transaction.