Retrieves event logs emitted by a specific transaction
curl --request GET \
--url 'https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash}/logs?apikey='{
"items": [
{
"transaction_hash": "0x1234567890123456789012345678901234567890123456789012345678901234",
"address": {
"hash": "0x1234567890123456789012345678901234567890",
"name": "<string>",
"is_contract": true,
"is_verified": true,
"is_scam": true,
"reputation": "ok",
"ens_domain_name": "<string>",
"proxy_type": "eip1167",
"implementations": [
{
"address": "0x1234567890123456789012345678901234567890",
"name": "<string>"
}
],
"metadata": {
"reputation": "<string>"
},
"public_tags": [
{
"display_name": "<string>",
"label": "<string>",
"address_hash": "0x1234567890123456789012345678901234567890"
}
],
"private_tags": [
{
"display_name": "<string>",
"label": "<string>",
"address_hash": "0x1234567890123456789012345678901234567890"
}
],
"watchlist_names": [
{
"display_name": "<string>",
"label": "<string>"
}
]
},
"topics": [
"0xabcdef"
],
"data": "0xabcdef",
"index": 123,
"decoded": {
"method_call": "<string>",
"method_id": "0xabcdef",
"parameters": [
{
"name": "<string>",
"type": "<string>",
"value": "<string>"
}
]
},
"smart_contract": {
"hash": "0x1234567890123456789012345678901234567890",
"name": "<string>",
"is_contract": true,
"is_verified": true,
"is_scam": true,
"reputation": "ok",
"ens_domain_name": "<string>",
"proxy_type": "eip1167",
"implementations": [
{
"address": "0x1234567890123456789012345678901234567890",
"name": "<string>"
}
],
"metadata": {
"reputation": "<string>"
},
"public_tags": [
{
"display_name": "<string>",
"label": "<string>",
"address_hash": "0x1234567890123456789012345678901234567890"
}
],
"private_tags": [
{
"display_name": "<string>",
"label": "<string>",
"address_hash": "0x1234567890123456789012345678901234567890"
}
],
"watchlist_names": [
{
"display_name": "<string>",
"label": "<string>"
}
]
},
"block_hash": "0x1234567890123456789012345678901234567890123456789012345678901234",
"block_number": 123,
"block_timestamp": "2024-01-15T10:30:00.000000Z"
}
]
}API key passed as query parameter (format proapi_xxxxxxxx)
Transaction hash to query Full hash with 0x prefix (64 hex characters)
"0x1234567890123456789012345678901234567890123456789012345678901234"
API key for rate limiting or for sensitive endpoints
"proapi_xxxxxxxx"
Secret key for getting access to restricted resources
Transaction logs retrieved successfully
Show child attributes
Was this page helpful?
curl --request GET \
--url 'https://api.blockscout.com/{chain_id}/api/v2/transactions/{transaction_hash}/logs?apikey='{
"items": [
{
"transaction_hash": "0x1234567890123456789012345678901234567890123456789012345678901234",
"address": {
"hash": "0x1234567890123456789012345678901234567890",
"name": "<string>",
"is_contract": true,
"is_verified": true,
"is_scam": true,
"reputation": "ok",
"ens_domain_name": "<string>",
"proxy_type": "eip1167",
"implementations": [
{
"address": "0x1234567890123456789012345678901234567890",
"name": "<string>"
}
],
"metadata": {
"reputation": "<string>"
},
"public_tags": [
{
"display_name": "<string>",
"label": "<string>",
"address_hash": "0x1234567890123456789012345678901234567890"
}
],
"private_tags": [
{
"display_name": "<string>",
"label": "<string>",
"address_hash": "0x1234567890123456789012345678901234567890"
}
],
"watchlist_names": [
{
"display_name": "<string>",
"label": "<string>"
}
]
},
"topics": [
"0xabcdef"
],
"data": "0xabcdef",
"index": 123,
"decoded": {
"method_call": "<string>",
"method_id": "0xabcdef",
"parameters": [
{
"name": "<string>",
"type": "<string>",
"value": "<string>"
}
]
},
"smart_contract": {
"hash": "0x1234567890123456789012345678901234567890",
"name": "<string>",
"is_contract": true,
"is_verified": true,
"is_scam": true,
"reputation": "ok",
"ens_domain_name": "<string>",
"proxy_type": "eip1167",
"implementations": [
{
"address": "0x1234567890123456789012345678901234567890",
"name": "<string>"
}
],
"metadata": {
"reputation": "<string>"
},
"public_tags": [
{
"display_name": "<string>",
"label": "<string>",
"address_hash": "0x1234567890123456789012345678901234567890"
}
],
"private_tags": [
{
"display_name": "<string>",
"label": "<string>",
"address_hash": "0x1234567890123456789012345678901234567890"
}
],
"watchlist_names": [
{
"display_name": "<string>",
"label": "<string>"
}
]
},
"block_hash": "0x1234567890123456789012345678901234567890123456789012345678901234",
"block_number": 123,
"block_timestamp": "2024-01-15T10:30:00.000000Z"
}
]
}