Base contract event logs
Query validated eth_getLogs events from one Base mainnet contract using a required event signature and optional indexed topic filters across a bounded resolved block range.
Endpoint
https://apiacre.com/v1/crypto/base-event-logsSend the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.
Pay $0.003 USDC and run in your browserOfficial Coinbase agent path
Coinbase Agentic Wallet can satisfy this x402 request in one command. Running it may pay automatically, so --max-amount is fixed to $0.003 USDC in atomic units. Copying the command does not install, authenticate, sign, or pay; review the request and use a separate low-value wallet before running it.
npx --yes awal@latest x402 pay https://apiacre.com/v1/crypto/base-event-logs \
-X POST \
-d '{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"],"lookback_blocks":100,"limit":25,"block_tag":"safe"}' \
--max-amount 3000 \
--jsonCoinbase pay-for-service documentation · Buyer setup and wallet safety
Alternative third-party AgentCash commands
Run check first without payment. Its fetch command may automatically pay up to the exact listed price.
npx --yes agentcash@latest check https://apiacre.com/v1/crypto/base-event-logs
npx --yes agentcash@latest fetch https://apiacre.com/v1/crypto/base-event-logs \
--method POST \
--header 'content-type: application/json' \
--body '{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"],"lookback_blocks":100,"limit":25,"block_tag":"safe"}' \
--payment-protocol x402 \
--payment-network base \
--max-amount 0.003Input example
{
"contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
],
"lookback_blocks": 100,
"limit": 25,
"block_tag": "safe"
}Response shape
{
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "crypto.base-event-logs",
"version": "1",
"data": {
"network": "eip155:8453",
"filter": {
"contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
]
},
"blockRange": {
"requestedTag": "safe",
"fromBlock": 34567791,
"toBlock": 34567890,
"toBlockHash": "0x1111111111111111111111111111111111111111111111111111111111111111",
"toBlockTimestamp": "2026-08-10T16:00:00+00:00",
"requestedLookbackBlocks": 100,
"scannedBlocks": 100
},
"queriedLogCount": 1,
"detected": 1,
"returned": 1,
"truncated": false,
"duplicatesRemoved": 0,
"removedSkipped": 0,
"logs": [
{
"contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000002222222222222222222222222222222222222222",
"0x0000000000000000000000001111111111111111111111111111111111111111"
],
"data": {
"hex": "0x0000000000000000000000000000000000000000000000000000000000bebc20",
"bytes": 32,
"returnedBytes": 32,
"truncated": false,
"sha256": "1075ad1aeb25e2412faa67043b490dd6375967f6502d383f5a8a85b4e56e92d0"
},
"blockNumber": 34567800,
"blockHash": "0x2222222222222222222222222222222222222222222222222222222222222222",
"transactionHash": "0x3333333333333333333333333333333333333333333333333333333333333333",
"transactionIndex": 4,
"logIndex": 7,
"explorerUrl": "https://basescan.org/tx/0x3333333333333333333333333333333333333333333333333333333333333333"
}
],
"networkRequestsMade": 51,
"rpcCallsMade": 51,
"readOnly": true,
"transactionBroadcast": false,
"warnings": [],
"limitations": [
"Signature-only scans use newest-first 2-block chunks and may stop after the result limit; indexed-topic scans can cover up to 2,000 blocks in one query.",
"Covers only the resolved block range, not full contract history.",
"Payload is ABI-encoded; finality and freshness depend on the tag and RPC provider."
],
"contractExplorerUrl": "https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"source": "https://docs.base.org/base-chain/api-reference/ethereum-json-rpc-api/eth_getLogs",
"disclaimer": "Public logs do not prove identity, ownership, authorization, or state."
},
"meta": {
"duration_ms": 42,
"cached": false,
"sources": [],
"warnings": [],
"next_actions": []
}
}Try the payment challenge
curl -i -X POST 'https://apiacre.com/v1/crypto/base-event-logs' \
-H 'content-type: application/json' \
--data '{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"],"lookback_blocks":100,"limit":25,"block_tag":"safe"}'