81trust / 100
Event Logs
by Contract event logs in Onchain & crypto
x402 APIPassing, checked 2 h ago
Fetch contract event logs (eth_getLogs) on Ethereum, Base, Polygon, Arbitrum, or Optimism - bounded so it always answers: block range capped at 2000 blocks (default: the last 100, auto-narrowed for busy contracts), at most 200 logs returned (truncated flag set if more matched). Filter by contract address and optional topic0 (event signature hash). Keyless multi-endpoint failover.
POST https://agent402.tools/api/event-logs
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 190 ms typical, 190 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/event-logs" \
-H "content-type: application/json" \
-d '{"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"base","topic0":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fevent-logs
const res = await pay("https://agent402.tools/api/event-logs", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"base","topic0":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"}),
});
console.log(await res.json());Example input
{
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "base",
"topic0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
}Example output
{
"address": "0x8335…",
"count": 87,
"fromBlock": 26999500,
"logs": [
{
"blockNumber": 26999512,
"data": "0x…",
"topics": [
"0xddf2…"
],
"txHash": "0x…"
}
],
"network": "base",
"toBlock": 27000000,
"truncated": false
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 190 ms | $0.003 |
| 7 h ago | Passed | 402 | 193 ms | $0.003 |