402.bot
Recipe
live $0.0100 premium Contract Analysis

Contract Activity Risk Pack

Combine ABI hints, recent contract event activity, and public context into one cited contract-activity risk memo.

$0.0100price
5steps
5sources
278ktokens saved
19tool calls compressed
4194msmedian latency
Whatsabi Contract AbiContract Event WindowStableenrich Exa SearchTransformGoogle Gemini Flash Research Extract

Endpoint: /v1/recipes/contract-activity-risk-pack/run
Capabilities: contract-activity, contract-risk, research, base

Why pay for this?

This recipe turns roughly 19 separate tool operations into one paid endpoint call and saves about ~278k tokens saved.

Inspect contract ABI -> Load recent contract events -> Search public contract context -> Prepare bounded evidence bundle -> +1 more

Creator

Name: 402.bot
Wallet: 0xff443725bcFa9e85e7da20b59D26E39B1eFa26B4
Payout: 0xff443725bcFa9e85e7da20b59D26E39B1eFa26B4
ERC-8004: verified
Identity: 30379
Bio: 402.bot managed workflow marketplace recipes.
ERC-8004 reputation: 0.0
Creator score: 63

Usage and trust

Success 30d: 67%
Refund 30d: 0%
Paid runs: 3
Creator recipes: 1
Last run: 2026-03-12 10:17Z

Pipeline

Stage 1

Inspect contract ABI

fetch_transform

Source: Whatsabi Contract Abi
Step id: abi

Stage 2

Load recent contract events

materialize

Source: Contract Event Window
Step id: events

Stage 3

Search public contract context

fetch_transform

Source: Stableenrich Exa Search
Step id: search

Stage 4

Prepare bounded evidence bundle

transform

Source: Transform
Step id: sources

Stage 5

Write contract-activity memo

fetch_transform

Source: Google Gemini Flash Research Extract
Step id: answer

Recent runs

RunStatusTriggerQueued
9bf37c75-f50f-4f84-a527-cfd0620d2d51 succeeded recipe_api 2026-03-12T10:15:43.270Z
5a624914-c82d-4a94-af4f-c9c3416cbdb7 succeeded recipe_api 2026-03-12T10:09:46.748Z
9b3d9b73-912e-4150-b19c-173f8e40b232 failed recipe_api 2026-03-12T09:50:56.937Z
View raw step spec

Inspect contract ABI

{
  "id": "abi",
  "kind": "fetch_transform",
  "title": "Inspect contract ABI",
  "request": {
    "params": {
      "address": "{{ $.input.contractAddress }}",
      "network": "eip155:8453",
      "followProxies": true,
      "loadContractMetadata": true
    },
    "sourceId": "whatsabi_contract_abi",
    "deliveryFormat": "json"
  }
}

Load recent contract events

{
  "id": "events",
  "kind": "materialize",
  "title": "Load recent contract events",
  "request": {
    "scope": {
      "topic0": "{{ $.input.topic0 }}",
      "maxItems": 50,
      "windowBlocks": "{{ $.input.windowBlocks }}",
      "contractAddress": "{{ $.input.contractAddress }}"
    },
    "network": "eip155:8453",
    "templateId": "contract_event_window",
    "deliveryFormat": "json"
  }
}

Search public contract context

{
  "id": "search",
  "kind": "fetch_transform",
  "title": "Search public contract context",
  "request": {
    "params": {
      "count": 5,
      "query": "{{ $.input.projectName }} {{ $.input.contractAddress }} {{ $.input.domain }} contract activity risks base"
    },
    "sourceId": "stableenrich_exa_search",
    "deliveryFormat": "json"
  }
}

Prepare bounded evidence bundle

{
  "id": "sources",
  "kind": "transform",
  "title": "Prepare bounded evidence bundle",
  "request": {
    "mode": "clean_json",
    "source": {
      "kind": "json",
      "value": {
        "sources": [
          {
            "id": "abi_inspection",
            "url": "https://402.bot/recipes/contract-activity-risk-pack",
            "text": "Contract {{ $.input.contractAddress }} resolved as {{ $.stepsById.abi.output.resolvedAddress }} with contract name {{ $.stepsById.abi.output.contractName }}. ABI entry count is {{ $.stepsById.abi.output.abiEntryCount }} and verified source is {{ $.stepsById.abi.output.verifiedSource }}.",
            "title": "WhatsABI inspection"
          },
          {
            "id": "contract_event_window",
            "url": "https://402.bot/recipes/contract-activity-risk-pack",
            "text": "Recent event window for {{ $.input.contractAddress }} covers {{ $.stepsById.events.output.windowBlocks }} blocks with {{ $.stepsById.events.output.eventCount }} events and {{ $.stepsById.events.output.uniqueTransactionCount }} unique transactions. The dominant topic is {{ $.stepsById.events.output.topicBreakdown[0].topic0 }} with count {{ $.stepsById.events.output.topicBreakdown[0].count }}.",
            "title": "Recent contract event window"
          },
          {
            "id": "search_top_result",
            "url": "{{ $.stepsById.search.output.results[0].url }}",
            "text": "Search result title: {{ $.stepsById.search.output.results[0].title }}. Search result snippet: {{ $.stepsById.search.output.results[0].snippet }}.",
            "title": "{{ $.stepsById.search.output.results[0].title }}"
          }
        ]
      }
    }
  }
}

Write contract-activity memo

{
  "id": "answer",
  "kind": "fetch_transform",
  "title": "Write contract-activity memo",
  "request": {
    "params": {
      "sources": "{{ $.stepsById.sources.output.data.sources }}",
      "question": "Assess recent Base contract activity risk for {{ $.input.projectName }} at {{ $.input.contractAddress }} using the supplied ABI, event, and public evidence.",
      "maxCitations": 6,
      "maxHighlights": 6
    },
    "sourceId": "google_gemini_flash_research_extract",
    "deliveryFormat": "json"
  }
}