402.bot
Recipe
live $0.0075 medium Wallet Intelligence

Wallet Allowance Cleanup Plan

Turn wallet approvals and current Base gas context into a compact cleanup checklist.

$0.0075price
3steps
6sources
6ktokens saved
3tool calls compressed
median latency
Base RPCAlliumGeminiWallet Approval SurfaceBase Gas WindowGoogle Gemini Flash Structured

Endpoint: /v1/recipes/wallet-allowance-cleanup-plan/run
Capabilities: wallet-approvals, cleanup-plan, wallet-ops

Why pay for this?

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

Loads wallet approvals and current Base gas, then returns a compact cleanup checklist with the riskiest spenders first.

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: 21

Usage and trust

Success 30d: 0%
Refund 30d: 0%
Paid runs: 0
Creator recipes: 1
Last run: No recent runs

Pipeline

Stage 1

Load wallet approvals

fetch_transform

Source: Wallet Approval Surface
Step id: approvals

Stage 2

Load Base gas window

fetch_transform

Source: Base Gas Window
Step id: gas

Stage 3

Build wallet allowance cleanup plan

fetch_transform

Source: Google Gemini Flash Structured
Step id: summarize

Recent runs

RunStatusTriggerQueued
No recent runs recorded yet. Runs appear here after the first paid execution.
View raw step spec

Load wallet approvals

{
  "id": "approvals",
  "kind": "fetch_transform",
  "title": "Load wallet approvals",
  "request": {
    "params": {
      "tokenAddress": "{{ $.input.tokenAddress }}",
      "walletAddress": "{{ $.input.walletAddress }}",
      "lookbackBlocks": 50000
    },
    "sourceId": "wallet_approval_surface",
    "deliveryFormat": "json"
  }
}

Load Base gas window

{
  "id": "gas",
  "kind": "fetch_transform",
  "title": "Load Base gas window",
  "request": {
    "params": {
      "windowBlocks": 12
    },
    "sourceId": "base_gas_window",
    "deliveryFormat": "json"
  }
}

Build wallet allowance cleanup plan

{
  "id": "summarize",
  "kind": "fetch_transform",
  "title": "Build wallet allowance cleanup plan",
  "request": {
    "params": {
      "input": {
        "gas": "{{ $.stepsById.gas.output }}",
        "approvals": "{{ $.stepsById.approvals.output }}",
        "tokenAddress": "{{ $.input.tokenAddress }}",
        "walletAddress": "{{ $.input.walletAddress }}"
      },
      "prompt": "Build a wallet allowance cleanup plan. Focus on the cleanup checklist, the riskiest spenders, and the next actions while considering the current gas context.",
      "responseSchema": {
        "type": "object",
        "required": [
          "walletAddress",
          "riskLevel",
          "summary",
          "cleanupChecklist",
          "riskySpenders",
          "nextActions"
        ],
        "properties": {
          "summary": {
            "type": "string"
          },
          "riskLevel": {
            "enum": [
              "medium",
              "low",
              "high"
            ],
            "type": "string"
          },
          "nextActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Suggested next actions."
          },
          "riskySpenders": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "tokenSymbol",
                "spenderAddress",
                "riskLevel"
              ],
              "properties": {
                "riskLevel": {
                  "type": "string"
                },
                "tokenSymbol": {
                  "type": "string"
                },
                "spenderAddress": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "walletAddress": {
            "type": "string"
          },
          "cleanupChecklist": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "status",
                "reason"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "do_now",
                    "watch",
                    "skip"
                  ],
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "description": "Allowance cleanup checklist items."
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "You are compressing allowance review into a short operator checklist. Stay grounded in the supplied approvals and gas context only."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}