PendingTransactionInformation - Algorand

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.

Endpoint

httpGET /v2/transactions/pending/{txid}

Path Parameters

ParameterTypeRequiredDescription
txidstringYesA transaction ID

Query Parameters

ParameterTypeRequiredDescription
formatstringOptionalConfigures whether the response object is JSON or MessagePack encoded. If not provided, defaults to JSON.

Example

bashexport ALGO_ALGOD=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${ALGO_ALGOD}v2/transactions/pending/REPLACE_TXID"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
application-indexintegerThe application index if the transaction was found and it created an application.
asset-closing-amountintegerThe number of the asset's unit that were transferred to the close-to address.
asset-indexintegerThe asset index if the transaction was found and it created an asset.
close-rewardsintegerRewards in microalgos applied to the close remainder to account.
closing-amountintegerClosing amount for the transaction.
confirmed-roundintegerThe round where this transaction was confirmed, if present.
global-state-deltaarrayApplication state delta.
inner-txnsarrayInner transactions produced by application execution.
local-state-deltaarrayLocal state key/value changes for the application being executed by this transaction.
logsarrayLogs for the application being executed by this transaction.
pool-errorstringIndicates that the transaction was kicked out of this node's transaction pool (and specifies why that happened). An empty string indicates the transaction wasn
receiver-rewardsintegerRewards in microalgos applied to the receiver account.
sender-rewardsintegerRewards in microalgos applied to the sender account.
txnobjectThe raw signed transaction.

Error Handling

ErrorMessageDescription
400Bad requestA parameter was missing or malformed
404Not foundThe requested resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect