# MoneyTools Contract Event Logs (Decoded)

> MoneyTools Contract Event Logs (Decoded) is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-05).

Fetches and decodes recent on-chain event logs for a smart contract (up to 5000 blocks back), using a provided event signature or the Sourcify signature database for automatic decoding.

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/logs?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-contract-event-logs-decoded-9dab438a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0Sev_gffjrnK3KBfdScqk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability moneytools-contract-event-logs-decoded-9dab438a
```

Example prompt: Can you fetch the last 500 blocks of Transfer events for the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base, using the signature Transfer(address indexed from, address indexed to, uint256 value), and return up to 20 logs?

## When to prefer this

Choose this endpoint when you need decoded (human-readable) on-chain event logs for a specific smart contract across major EVM chains, especially when you don't have the full ABI but want automatic signature resolution via Sourcify. It supports a pay-per-call model via x402 on Base with USDC, making it ideal for agents that need occasional on-chain log queries without a subscription. Prefer it over raw RPC calls when you want structured, decoded output without setting up your own node or indexer.

## Known failure modes

- Invalid or unrecognized contract address returns an error
- Chain not supported returns a validation error
- Block range exceeds 5000 blocks results in a capped or error response
- Event signature not found in Sourcify DB and none provided returns undecodable raw logs
- Free tier exhausted (10/day) with no payment method results in HTTP 402
- Network/RPC node unavailability causes retrieval failure
- Contract has no events in the requested block range returns empty logs array

## How this service works

Contract event logs (decoded): Recent events of a contract (≤5000 blocks), decoded with your event signature or automatically via the open Sourcify signature DB. Free tier 10/day; then $0.002 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.002 USDC per call via x402 on Base. Run by MoneyTools.

## Output

A JSON object containing an array of decoded event logs for the specified contract and block range, each log including decoded parameter values (e.g. from/to addresses, amounts), plus metadata about the payment (whether a charge was applied, the transaction hash, and the amount in USD), and optional plan/partner hints under _moneytools.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain",
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "examples": [
        "base"
       ],
       "description": "chain: base, ethereum, arbitrum, optimism, polygon, bsc, avalanche"
      },
      "event": {
       "type": "string",
       "examples": [
        "Transfer(address indexed from, address indexed to, uint256 value)"
       ],
       "description": "event signature"
      },
      "limit": {
       "type": "number",
       "examples": [
        "20"
       ],
       "description": "max logs 1-100"
      },
      "blocks": {
       "type": "number",
       "examples": [
        "10"
       ],
       "description": "look-back blocks (default 1000, max 5000)"
      },
      "address": {
       "type": "string",
       "examples": [
        "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
       ],
       "description": "contract"
      },
      "toBlock": {
       "type": "string",
       "description": "end block"
      },
      "fromBlock": {
       "type": "string",
       "description": "start block"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-contract-event-logs-decoded-9dab438a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
