Get transaction by hash
Get transaction by hash
Path Parameters
transaction_hash string required
Transaction hash
Example: 0x3d6122660cc824376f11ee842f83addc3525e2dd6756b9bcf0affa6aa88cf741
Responses
- 200
Successful
application/json
Schema
Example (from schema)
Schema
hash string required
The hash of the transaction
transaction_index number required
The transaction index
from string required
The sender
to string required
The recipient
receipt_contract_address string required
receiptContractAddress
receipt_cumulative_gas_used number required
cumulativeGasUsed
receipt_gas_used number required
receiptGasUsed
input string required
The input
output string required
The output
value string required
The value that was transferred (in wei)
nonce number required
The nonce
gas_price string required
The gas price
gas string required
he gas of the transaction
timestamp number required
The block timestamp
block_time number required
The block time
block_hash string required
blockHash
block_number number required
blockNumber
receipt_root string required
receiptRoot
tx_index number required
tx_index
status boolean required
status
effective_gas_price string required
effectiveGasPrice
logs_bloom string required
logsBloom
logs object[] required
internal_transactions object[] required
{
"hash": "0x8c7a005d0c03b6c696d46ebc8a6ea1a4ebf7593154ccc30e98b7388eb7a443a8",
"transaction_index": 1,
"from": "0x35552c16704d214347f29fa77f77da6d75d7c752",
"to": "0x0000000000000000000000000000000000001003",
"receipt_contract_address": null,
"receipt_cumulative_gas_used": 901693,
"receipt_gas_used": 901693,
"input": "string",
"output": "",
"value": "0",
"nonce": 1,
"gas_price": "string",
"gas": "209665",
"timestamp": 0,
"block_time": 0,
"block_hash": "0xd0bc67b50915467ada963c35ee00950f664788e47da8139d8c178653171034f1",
"block_number": 1,
"receipt_root": "string",
"tx_index": 52,
"status": true,
"effective_gas_price": 0,
"logs_bloom": "0x08000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000",
"logs": [
{
"removed": false,
"address": "0x0000000000000000000000000000000000001003",
"data": "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000",
"topic0": "0x5ac9b37d571677b80957ca05693f371526c602fd08042b416a29fdab7efefa49",
"topic1": "0x5ac9b37d571677b80957ca05693f371526c602fd08042b416a29fdab7efefa49",
"topic2": "0x5ac9b37d571677b80957ca05693f371526c602fd08042b416a29fdab7efefa49",
"topic3": "0x5ac9b37d571677b80957ca05693f371526c602fd08042b416a29fdab7efefa49",
"log_index": 0,
"transaction_index": 2,
"transaction_hash": "0x8c7a005d0c03b6c696d46ebc8a6ea1a4ebf7593154ccc30e98b7388eb7a443a8",
"block_hash": "0xd0bc67b50915467ada963c35ee00950f664788e47da8139d8c178653171034f1",
"block_number": 1,
"block_timestamp": 0
}
],
"internal_transactions": [
{
"hash": "0x8c7a005d0c03b6c696d46ebc8a6ea1a4ebf7593154ccc30e98b7388eb7a443a8",
"from": "0x35552c16704d214347f29fa77f77da6d75d7c752",
"to": "0x0000000000000000000000000000000000001003",
"input": "string",
"output": "",
"value": "0",
"gas": "209665",
"timestamp": 0,
"block_time": 0,
"block_hash": "0xd0bc67b50915467ada963c35ee00950f664788e47da8139d8c178653171034f1",
"block_number": 1,
"type": "STATICCALL",
"parent_tx_hash": "0x8c7a005d0c03b6c696d46ebc8a6ea1a4ebf7593154ccc30e98b7388eb7a443a8",
"gas_used": 901693,
"status": true,
"trace_id": "0_1_1",
"error": 901693
}
]
}
GET /v1/transactions/tx/:transaction_hash
Authorization
name: x-api-keytype: apiKeyin: header
Request
Request
curl / cURL
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/transactions/tx/:transaction_hash' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
python / requests
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/transactions/tx/:transaction_hash' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
go / native
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/transactions/tx/:transaction_hash' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
nodejs / axios
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/transactions/tx/:transaction_hash' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/transactions/tx/:transaction_hash' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
csharp / httpclient
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/transactions/tx/:transaction_hash' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
php / cURL
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/transactions/tx/:transaction_hash' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
java / unirest
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/transactions/tx/:transaction_hash' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/transactions/tx/:transaction_hash' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'