GET /v1/{chainName}/transaction_v2/{txHash}/
Changed onFetches a single transaction, including its decoded event logs. For foundational chains, can also retrieve internal transactions, state changes and method ID where available.
Request
- Base URLhttps://api.covalenthq.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The chain name eg: eth-mainnet.
The transaction hash.
Query parameters
The currency to convert. Supports USD, CAD, EUR, SGD, INR, JPY, VND, CNY, KRW, RUB, TRY, NGN, ARS, AUD, CHF, and GBP.
Omit log events.
Whether to include internal transfers/transactions.
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.
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.
The address to classify the transaction for, when with-classification=true. If omitted, the transaction's from_address is used.
Response
Successful response
Changes
- info
added the new optional
queryrequest parameteraccount-address - info
added the new optional
queryrequest parameterwith-classification - info
added the optional property
//to the response with the status
- info
- info
added the new optional
queryrequest parameterwith-input-data - info
added the optional property
//to the response with the status
- info