Class PendingTransactionInformation
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.algod.PendingTransactionInformation
-
public class PendingTransactionInformation extends Query
Given a transaction ID of a recently submitted transaction, it returns information about it. There are several cases when this might succeed: - transaction committed (committed round > 0) - transaction still in the pool (committed round = 0, pool error = "") - transaction removed from pool due to error (committed round = 0, pool error != "") Or the transaction may have happened sufficiently long ago that the node no longer remembers it, and this will return an error. /v2/transactions/pending/{txid}
-
-
Constructor Summary
Constructors Constructor Description PendingTransactionInformation(Client client, String txid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<PendingTransactionResponse>
execute()
Execute the query.Response<PendingTransactionResponse>
execute(String[] headers, String[] values)
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.protected QueryData
getRequestString()
-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Method Detail
-
execute
public Response<PendingTransactionResponse> execute() throws Exception
Execute the query.
-
execute
public Response<PendingTransactionResponse> execute(String[] headers, String[] values) throws Exception
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.
-
getRequestString
protected QueryData getRequestString()
- Specified by:
getRequestString
in classQuery
-
-