Skip to main content

v1/{chainName}/transaction_v2/{txHash}/ REST API Endpoint

Commonly used to fetch and render a single transaction including its decoded log events.

Updated on
Jan 09, 2025

v1/{chainName}/transaction_v2/{txHash}/ REST API Endpoint

Path Parameters

chainName
string
REQUIRED
The chain name eg: eth-mainnet
txHash
string
REQUIRED
The transaction hash

Query Parameters

quote-currency
string
The currency to convert. Supports USD, CAD, EUR, SGD, INR, JPY, VND, CNY, KRW, RUB, TRY, NGN, ARS, AUD, CHF, and GBP
no-logs
boolean
It omit log events

Returns

data
object
The response data containing following fields:
updated_at
string
The timestamp when the data was last updated
chain_id
integer
The ID of the blockchain network
chain_name
string
The name of the blockchain network
items
array
An array of transaction items
block_signed_at
string
The timestamp when the block was signed
block_height
integer
The height of the block in the blockchain
block_hash
string
The hash of the block containing the transaction
tx_hash
string
The hash of the transaction
tx_offset
integer
The offset of the transaction in the block
successful
boolean
Indicates if the transaction was successful
from_address
string
The address of the sender of the transaction
miner_address
string
The address of the miner who mined the block
from_address_label
string
A label for the sender's address
to_address
string
The address of the recipient of the transaction
to_address_label
string
A label for the recipient's address
value
string
The value transferred in the transaction
value_quote
integer
The value of the transaction in the quoted currency
pretty_value_quote
string
The value of the transaction in quoted currency, formatted as a readable string
gas_metadata
object
Metadata related to gas usage
contract_decimals
integer
The number of decimals in the contract
contract_name
string
The name of the contract
contract_ticker_symbol
string
The ticker symbol of the contract
contract_address
string
The address of the contract
supports_erc
array
A list of ERC standards supported by the contract
logo_url
string
The URL of the contract's logo
gas_offered
integer
The gas offered for the transaction
gas_spent
integer
The gas spent in the transaction
gas_price
integer
The gas price for the transaction
fees_paid
string
The total gas fees paid in the transaction
gas_quote
integer
The gas fees in quoted currency
pretty_gas_quote
string
The gas fees in quoted currency, formatted as a readable string
gas_quote_rate
integer
The gas rate in quoted currency
explorers
array
An array of explorer links
label
string
The label for the explorer link
url
string
The URL of the explorer link
log_events
array
An array of log events associated with the transaction
block_signed_at
string
The timestamp when the block containing the log was signed
block_height
integer
The height of the block containing the log
tx_offset
integer
The offset of the transaction in the block
log_offset
integer
The offset of the log in the transaction
tx_hash
string
The hash of the transaction containing the log
raw_log_topics
array
A list of topics associated with the log
decoded
object
The decoded log data
name
string
The name of the event
signature
string
The signature of the event
params
array
The parameters of the event
name
string
The name of the parameter
type
string
The data type of the parameter
value
string
The value of the parameter
safe_details
array
Details of safe transactions
owner_address
string
The address of the safe owner
signature
string
The signature used in the safe transaction
signature_type
string
The type of the signature
pagination
object
(Optional) Pagination details of the response
has_more
boolean
Indicates if there are more pages available
page_number
integer
The current page number
page_size
integer
The number of items per page
total_count
integer
The total number of items, if available
error
boolean
Indicates whether an error occurred
error_message
string
The error message if an error occurred, or null otherwise
error_code
string
The error code if an error occurred, or null otherwise
Request
1
curl --location 'https://api.covalenthq.com/v1/eth-mainnet/transaction_v2/0x1ceddb98c10d99a4a989b2ce0a9b1f398b26b29a0a1a7c370720c0eb2c953365/' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: Bearer YOUR_API_KEY'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free