Package com.algorand.algosdk.v2.client
Class Utils
- java.lang.Object
-
- com.algorand.algosdk.v2.client.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PendingTransactionResponsewaitForConfirmation(AlgodClient client, String txID, int waitRounds)Wait until a transaction has been confirmed or rejected by the network or wait until waitRound fully elapsed
-
-
-
Method Detail
-
waitForConfirmation
public static PendingTransactionResponse waitForConfirmation(AlgodClient client, String txID, int waitRounds) throws Exception
Wait until a transaction has been confirmed or rejected by the network or wait until waitRound fully elapsed- Parameters:
client- an Algod v2 clienttxID- the transaction ID that we are waitingwaitRounds- The maximum number of rounds to wait for.- Returns:
- TransactionResponse of the confirmed transaction
- Throws:
Exception- if transaction is rejected or the transaction is not confirmed before wait round
-
-