lookupTransaction - Algorand

Lookup a single transaction.

Endpoint

httpGET /v2/transactions/{txid}

Path Parameters

ParameterTypeRequiredDescription
txidstringYes—

Example

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

curl "${ALGO_INDEXER}v2/transactions/REPLACE_TXID"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
current-roundintegerRound at which the results were computed.
transactionobjectContains all fields common to all transactions and serves as an envelope to all transactions type. Represents both regular and inner transactions.

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