Skip to main content
GET
/
transactions
/
{transaction_hash}
/
logs
Get transaction logs
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"
    }
  ]
}

Authorizations

apikey
string
query
required

API key passed as query parameter (format proapi_xxxxxxxx)

Path Parameters

transaction_hash
string
required

Transaction hash to query Full hash with 0x prefix (64 hex characters)

Example:

"0x1234567890123456789012345678901234567890123456789012345678901234"

Query Parameters

apikey
string

API key for rate limiting or for sensitive endpoints

Example:

"proapi_xxxxxxxx"

key
string

Secret key for getting access to restricted resources

Response

Transaction logs retrieved successfully

items
object[]
required