Fetch transaction details by hash
GET/:network/transaction
Fetch transaction details by hash
Request
Path Parameters
Blockchain network name or chain id
Query Parameters
The unique idendifier of the transaction (transaction hash). Must be a 32 byte hex string starting with 0x
The currency used for the conversion.
The id of your project. Can be found in your Histori dashboard.
Responses
- 200
- 400
- 404
Transaction details fetched successfully.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The blockchain network name (e.g., eth-mainnet).
The ID of the blockchain network (e.g., Ethereum mainnet is 1).
transaction
object
required
The ISO timestamp when the block was signed.
The height (number) of the block.
The hash of the block that contains the transaction.
The transaction hash (unique identifier for the transaction).
The index of the transaction within the block.
Indicates whether the transaction was successful (true/false).
The address that initiated the transaction.
The address of the miner who mined the block (optional field).
The recipient address of the transaction. It can be null for contract creation transactions.
The value transferred in the transaction, denominated in Ether.
The amount of gas offered by the sender for the transaction.
The amount of gas actually spent in the transaction.
The price of gas for the transaction, denominated in gwei.
The total transaction fees paid, denominated in Ether.
The raw transaction data in hexadecimal format (optional field).
The input data sent with the transaction, typically used for contract interactions.
log_events
object[]
The list of log events emitted during the transaction.
The index of the log event within the transaction.
The list of topics (event signatures) in the log event.
The address of the contract that emitted the log event.
The raw data contained in the log event.
A URL to view the transaction on a block explorer (e.g., Etherscan).
The transaction cost in traditional currency (e.g., USD).
{
"network_name": "eth-mainnet",
"chain_id": 1,
"transaction": {
"block_signed_at": "2024-10-22T15:04:23.000Z",
"block_height": 21021896,
"block_hash": "0x064ea929af4b3a7077cefc68d0ced4f6ed59575581cc48effab64ac5feef1ce0",
"tx_hash": "0xf85e0f37296608a3a23ffd8b2349c4cb25e9174d357c32d4416d3eb1d214080e",
"tx_index": 144,
"successful": true,
"from": "0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5",
"miner": "0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5",
"to": "0x4675C7e5BaAFBFFbca748158bEcBA61ef3b0a263",
"value": "0.064970294810854029",
"gas_offered": "21000",
"gas_spent": "21000",
"gas_price": "13.499486147",
"fees_paid": "0.000283489209087",
"transaction_raw": "0xf86a808504a817c800830f4240944675c7e5baafbffca748158becba61ef3b0a26380b844a9059cbb0000000000000000000000004675c7e5baafbffca748158becba61ef3b0a263",
"input_data": "0x",
"log_events": [
{
"log_index": 1,
"raw_log_topics": [
"0xddf252ad",
"0x000000000000000000000000abcd1234",
"0x000000000000000000000000ef567890"
],
"sender_address": "0x1234567890abcdef1234567890abcdef12345678",
"raw_log_data": "0xabcdef..."
}
],
"explorer_url": "https://etherscan.io/tx/0xf85e0f37296608a3a23ffd8b2349c4cb25e9174d357c32d4416d3eb1d214080e",
"transaction_cost": "$0.3"
}
}
Invalid network name or transaction hash.
Transaction not found.