API Acre · Crypto Base Event Logs

by API Acre

POSTBaseSolana

$0.003

per call · USD Coin on Base

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

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

2

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/crypto/base-event-logs", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "block_tag": "safe",
    "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "limit": 25,
    "lookback_blocks": 100,
    "topics": [
      "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4..."
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/crypto/base-event-logs" \
  -H "Content-Type: application/json" \
  -d '{"block_tag":"safe","contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","limit":25,"lookback_blocks":100,"topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4..."]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "blockRange": {
      "fromBlock": 34567791,
      "requestedTag": "safe",
      "toBlock": 34567890,
      "toBlockHash": "0x1111111111111111111111111111111111111111111111111111111..."
    },
    "contractExplorerUrl": "https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4...",
    "detected": 1,
    "disclaimer": "Public logs do not prove identity, ownership, authorizati...",
    "duplicatesRemoved": 0,
    "filter": {
      "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "topics": [
        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4..."
      ]
    },
    "limitations": [
      "Signature-only scans use newest-first 2-block chunks and ...",
      "Covers only the resolved block range, not full contract h...",
      "Payload is ABI-encoded; finality and freshness depend on ..."
    ],
    "logs": [
      {
        "blockNumber": 34567800,
        "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "data": {
          "bytes": 32,
          "hex": "0x0000000000000000000000000000000000000000000000000000000...",
          "returnedBytes": 32,
          "truncated": false
        },
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4...",
          "0x0000000000000000000000002222222222222222222222222222222...",
          "0x0000000000000000000000001111111111111111111111111111111..."
        ]
      }
    ],
    "network": "eip155:8453",
    "networkRequestsMade": 51,
    "queriedLogCount": 1,
    "readOnly": true,
    "removedSkipped": 0,
    "returned": 1,
    "rpcCallsMade": 51,
    "source": "https://docs.base.org/base-chain/api-reference/ethereum-j...",
    "transactionBroadcast": false,
    "truncated": false,
    "warnings": []
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "crypto.base-event-logs",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from API Acre & similar services