x402_eth_reads_v1__eth_mainnet_eth_getlogs
Ethereum mainnet on-chain read: a contract's event logs, filtered by topic and block range. Ethereum mainnet contract event logs via eth_getLogs. Query parameters: address (contract, 0x + 40 hex), topic0 (optional event signature hash, 0x + 64 hex), blocks (optional, last N blocks, 1-100, default 10).
GET https://api.arysphere.com/v1/ventures/x402_eth_reads_v1/eth_mainnet_eth_getlogs. Same payment terms as that HTTP route. Call once with no payment. The result is the payment terms. Retry the same call with the signed payment at _meta["x402/payment"]. Measured output: {"chain": "ethereum", "method": "eth_getLogs", "ok": true, "result": {"count": 1394, "from_block": 26210345, "logs": [{"address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "blockHash": "0xf88c7d6da7b73bdf869dac8661602de3f98f208d7eb052a1073edd6e5041a363", "blockNumber": "0x18ff029", "blockTimestamp": "0x6ad30f1b", "data": "0x0000000000000000000000000000000000000000000000000000000011000a58", "logIndex": "0x17", "removed": false, "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x000000000000000000000000bdb3ba9ffe392549e1f8658dd2630c141fdf47b6"], "transactionHash": "0x4c1a6d22ae7677c3c500e5ad82827193dbc4aaf488a6af3c3e7c8ce5e04334a0", "transactionIndex": "0x2"}, {"address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "blockHash": "0xf88c7d6da7b73bdf869dac8661602de3f98f208d7eb052a1073edd6e5041a363", "blockNumber": "0x18ff029", "blockTimestamp": "0x6ad30f1b", "data": "0x0000000000000000000000000000000000000000000000000000000002faf080", "logIndex": "0x39", "removed": false, "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x000000000000000000000000924e1b33b1fc3041351b2082ddd11d5c8bcca370"], "transactionHash": "0x6cb83f77e12d2b4be5980a47bcfd0f3a24a3743cbc49775a323172f539610a5f", "transactionIndex": "0x8"}], "to_block": 26210354, "truncated": true}, "service": "x402_eth_reads_v1.eth_mainnet_eth_getlogs"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | No | optional, last N blocks, 1-100 (default 10) | |
| topic0 | No | optional event signature hash, 0x + 64 hex | |
| address | Yes | contract, 0x + 40 hex |