get-a-transaction

GET /v1/{chainName}/transaction_v2/{txHash}/

Changed on

Fetches a single transaction, including its decoded event logs. For foundational chains, can also retrieve internal transactions, state changes and method ID where available.

Request

Path parameters

chainNamestring required

The chain name eg: eth-mainnet.

txHashstring required

The transaction hash.

Query parameters

quote-currencystring

The currency to convert. Supports USD, CAD, EUR, SGD, INR, JPY, VND, CNY, KRW, RUB, TRY, NGN, ARS, AUD, CHF, and GBP.

no-logsboolean

Omit log events.

with-internalboolean

Whether to include internal transfers/transactions.

with-input-databoolean

Whether to include the transaction's input data, which is returned as input_data.method_id. Supported on a narrower set of chains than with-internal; returns a 501 where unsupported. Costs an extra 0.05 credits/item.

with-classificationboolean

Whether to include a human-readable classification of the transaction, such as a swap or a token transfer. Supported on the same chains as with-internal. Costs an extra 0.05 credits/item.

account-addressstring

The address to classify the transaction for, when with-classification=true. If omitted, the transaction's from_address is used.

Response

Successful response

updated_atstring date-time

The timestamp when the response was generated. Useful to show data staleness to users.

chain_idinteger

The requested chain ID eg: 1.

chain_namestring

The requested chain name eg: eth-mainnet.

chain_tip_heightinteger

The latest block height of the blockchain at the time this response was provided.

chain_tip_signed_atstring date-time

The timestamp of the latest signed block at the time this response was provided.

Changes

    • info

      added the new optional query request parameter account-address

    • info

      added the new optional query request parameter with-classification

    • info

      added the optional property // to the response with the status

    • info

      added the new optional query request parameter with-input-data

    • info

      added the optional property // to the response with the status