crypto · crypto · evm · base · ethereum · rpc · contract · event · logs · topics · indexed · onchain · read-only

Base contract event logs

Query validated logs from one Base mainnet contract using a required event signature and at least one indexed topic value across a bounded resolved block range.

$0.003 USDCBasex402 v2POST
Pay $0.003 USDC and run in your browserView free result sample

Endpoint

https://apiacre.com/v1/crypto/base-event-logs

Send 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 browser

Official 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",null,"0x0000000000000000000000001111111111111111111111111111111111111111"],"lookback_blocks":2000,"limit":25,"block_tag":"safe"}' \
  --max-amount 3000 \
  --json

Coinbase 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",null,"0x0000000000000000000000001111111111111111111111111111111111111111"],"lookback_blocks":2000,"limit":25,"block_tag":"safe"}' \
  --payment-protocol x402 \
  --payment-network base \
  --max-amount 0.003

AgentCash CLI documentation

Input example

{
  "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "topics": [
    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
    null,
    "0x0000000000000000000000001111111111111111111111111111111111111111"
  ],
  "lookback_blocks": 2000,
  "limit": 25,
  "block_tag": "safe"
}

Response shape

View free static sample JSON

{
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "crypto.base-event-logs",
  "version": "1",
  "data": {
    "network": "eip155:8453",
    "filter": {
      "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "topics": [
        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
        null,
        "0x0000000000000000000000001111111111111111111111111111111111111111"
      ]
    },
    "blockRange": {
      "requestedTag": "safe",
      "fromBlock": 34565891,
      "toBlock": 34567890,
      "toBlockHash": "0x1111111111111111111111111111111111111111111111111111111111111111",
      "toBlockTimestamp": "2026-08-10T16:00:00+00:00",
      "requestedLookbackBlocks": 2000,
      "scannedBlocks": 2000
    },
    "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": 2,
    "rpcCallsMade": 2,
    "readOnly": true,
    "transactionBroadcast": false,
    "warnings": [],
    "limitations": [
      "Requires topic zero plus at least one indexed topic value.",
      "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",null,"0x0000000000000000000000001111111111111111111111111111111111111111"],"lookback_blocks":2000,"limit":25,"block_tag":"safe"}'