Event Topic

Compute the keccak256 topic hash for any Solidity event signature. The result is deterministic — same signature always produces the same topic hash across all EVM chains.

About this tool

The Event Topic calculator generates the Keccak-256 topic hashes Solidity uses to identify indexed event parameters. Given a signature such as Transfer(address,address,uint256), it outputs the exact topic0 and topicN hashes required to filter event logs over JSON-RPC.

Why topics matter

When a contract emits an event, indexed parameters are stored as 32-byte topics. Wallets and indexers query logs by matching these topics rather than the raw data. To subscribe to a specific Transfer, Approval, or OracleUpdated event, you need the correct topic hash — this tool produces it reliably.

Using the result

The generated topics plug straight into eth_getLogs or your indexer filter, letting you pull exactly the events you care about without decoding every log in a block.

What you get

  • topic0: The anonymous/named event signature hash.
  • topic1..4: Hashes for each indexed parameter, in declaration order.

Frequently asked questions

What is the difference between topic0 and other topics?

topic0 is the event signature hash, while indexed parameter values occupy the remaining topic slots.

Can it handle anonymous events?

Anonymous events have no signature topic; this tool still computes the indexed-parameter topics for filtering.