Naar de inhoud
GET /v1/event

Decode a 32-byte event topic to its event signature

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/ethsignatures-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/ethsignatures-api/v1/event" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ethsignatures-api/v1/event", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ethsignatures-api/v1/event");
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/ethsignatures-api/v1/event",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "All event signatures whose keccak-256 hash equals this 32-byte topic. most_likely (lowest id) is the canonical one.",
        "count": 1,
        "source": "4byte.directory",
        "signatures": [
            {
                "id": 1,
                "most_likely": true,
                "text_signature": "Transfer(address,address,uint256)"
            }
        ],
        "most_likely": "Transfer(address,address,uint256)",
        "hex_signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:18.614Z",
        "request_id": "03940096-2010-4752-a182-6a4507fa9d94"
    },
    "status": "ok",
    "message": "Event signature decoded successfully",
    "success": true
}