{"slug":"api-onesource-io-api-chain-events-f6bf35","title":"Query Ethereum contract event logs via eth_getLogs","host":"api.onesource.io","method":"GET","resource":"https://api.onesource.io/api/chain/events","category":"market","description":"Query Ethereum contract event logs via eth_getLogs - filter by contract, topic, and block range","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":788,"reported_calls_30d":423,"reported_payers_30d":422,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"contract":"0xdac17f958d2ee523a2206206994597c13d831ec7","network":"ethereum"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"properties":{"contract":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"from_block":{"oneOf":[{"minimum":0,"type":"integer"},{"enum":["latest","pending","earliest","safe","finalized"],"type":"string"},{"pattern":"^0[xX][a-fA-F0-9]+$","type":"string"}]},"network":{"default":"ethereum","enum":["ethereum","sepolia","robinhood"],"type":"string"},"to_block":{"oneOf":[{"minimum":0,"type":"integer"},{"enum":["latest","pending","earliest","safe","finalized"],"type":"string"},{"pattern":"^0[xX][a-fA-F0-9]+$","type":"string"}]},"topic":{"pattern":"^0x[a-fA-F0-9]{64}$","type":"string"}},"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"data":{"description":"Endpoint-specific response payload","properties":{"count":{"type":"integer"},"from_block":{"type":"string"},"logs":{"items":{"properties":{"address":{"type":"string"},"blockNumber":{"type":"string"},"data":{"type":"string"},"logIndex":{"type":"string"},"topics":{"items":{"type":"string"},"type":"array"},"transactionHash":{"type":"string"}},"type":"object"},"type":"array"},"to_block":{"type":"string"}},"type":"object"},"error":{"properties":{"code":{"type":"integer"},"message":{"type":"string"}},"type":["object","null"]},"meta":{"properties":{"cost_usdc":{"type":"string"},"endpoint":{"type":"string"},"payment_chain":{"type":"string"},"payment_token":{"type":"string"},"request_id":{"type":"string"}},"required":["endpoint","request_id"],"type":"object"}},"required":["data","meta"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":788,"error":null}],"description_full":"Query Ethereum contract event logs via eth_getLogs - filter by contract, topic, and block range","last_updated":"2026-09-24T15:50:11.953Z","schemes":["batch-settlement","exact"]}