Zum Inhalt springen
GET /v1/logs

Query event logs by address, topics and block range

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/eventlogs-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/eventlogs-api/v1/logs" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/eventlogs-api/v1/logs", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/eventlogs-api/v1/logs");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/eventlogs-api/v1/logs",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "logs": [
            {
                "data": "0x0000000000000000000000000000000000000000000000000000000001312d00",
                "topic0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                "topics": [
                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                    "0x000000000000000000000000e07dd0f7be387d93626277294e45eb7d740d4f15",
                    "0x000000000000000000000000ceaae54c5df4872415be60899d719bcef9ac7dea"
                ],
                "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "removed": false,
                "log_index": 16,
                "block_number": 25314410,
                "transaction_hash": "0xc0ffd3829585cc7a1e7fdb31dc01e55859eede3d6c78cdaceb3a515c8e1613b0"
            },
            {
                "data": "0x000000000000000000000000000000000000000000000000000000000478d464",
                "topic0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                "topics": [
                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                    "0x000000000000000000000000ee7ae85f2fe2239e27d9c1e23fffe168d63b4055",
                    "0x000000000000000000000000cb0996508ece1b8aef6a8fa73d446c12059a252d"
                ],
                "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "removed": false,
                "log_index": 17,
                "block_number": 25314410,
                "transaction_hash": "0x0d28185deb3abbf0e439c24f11fd86a0b18102f00cfebf2d7f605bd79abebd60"
            },
            {
                "data": "0x0000000000000000000000000000000000000000000000000000000006623760",
                "topic0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                "topics": [
                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                    "0x000000000000000000000000c3fb00546e97ece80022c35c64ddac7c3d09c6a7",
                    "0x000000000000000000000000dd3d72c53ff982ff59853da71158bf1538b3ceee"
                ],
                "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "removed": false,
                "log_index": 27,
                "block_number": 25314410,
                "transaction_hash": "0xcfbf75c9ffbca1505ac0e846a66fdbc09b1d67a9d5522462e56f4d93b5a36115"
            },
            {
                "data": "0x0000000000000000000000000000000000000000000000000000000001fa2717",
                "topic0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                "topics": [
                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                    "0x000000000000000000000000c4738a98f836e7c98c2ef61b908d40d9d5f992af",
                    "0x00000000000000000000000033a0e642595d50493e0611b18e8b57785537225a"
…