Get Logs
get_logsSearch event logs by contract address and/or topics over a block range. Topics are 32-byte hex values; topic0 is usually the keccak256 event-signature hash. Adjacent-topic operators (and/or) combine multiple topic filters. Provide 'address' and/or at least one topic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based). | |
| offset | No | Records per page (max 1000). | |
| topic0 | No | Topic 0 — usually the keccak256 event-signature hash. | |
| topic1 | No | Topic 1 (first indexed argument). | |
| topic2 | No | Topic 2 (second indexed argument). | |
| topic3 | No | Topic 3 (third indexed argument). | |
| address | No | Contract address to filter by (optional if filtering by topics). | |
| chainid | No | Numeric chain id (e.g. 1=Ethereum, 56=BNB, 137=Polygon). Defaults to server config. | |
| toblock | No | End block number, or "latest". Default latest. | |
| fromblock | No | Start block number, or "latest". Default 0. | |
| topic0_1_opr | No | Combine topic0 and topic1: and | or. | |
| topic1_2_opr | No | Combine topic1 and topic2: and | or. | |
| topic2_3_opr | No | Combine topic2 and topic3: and | or. |