402.bot
Recipe
live $0.0100 premium Market & Prediction

Base Swap Execution Sanity Check

Combine live Base quote, liquidity, wallet activity, and bounded surface context into a compact execution sanity check.

$0.0100price
5steps
9sources
12ktokens saved
5tool calls compressed
median latency
UniswapAlliumStableEnrichGeminiAllium Wallet Transactions RawUniswap Token LiquidityUniswap Swap QuoteStableenrich Exa SearchGoogle Gemini Flash Structured

Endpoint: /v1/recipes/base-swap-execution-sanity-check/run
Capabilities: base-execution, swap-sanity, route-check

Why pay for this?

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

Combines a live Base quote, visible liquidity, wallet activity, and public surface context into one execution sanity packet.

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

Materialize wallet activity

materialize

Source: Allium Wallet Transactions Raw
Step id: activity

Stage 2

Inspect token liquidity

fetch_transform

Source: Uniswap Token Liquidity
Step id: liquidity

Stage 3

Quote sample Base swap

fetch_transform

Source: Uniswap Swap Quote
Step id: quote

Stage 4

Search execution surface context

fetch_transform

Source: Stableenrich Exa Search
Step id: search

Stage 5

Build Base swap execution sanity check

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

Materialize wallet activity

{
  "id": "activity",
  "kind": "materialize",
  "title": "Materialize wallet activity",
  "request": {
    "scope": {
      "window": "7d",
      "walletAddress": "{{ $.input.walletAddress }}"
    },
    "network": "eip155:8453",
    "templateId": "allium_wallet_transactions_raw",
    "deliveryFormat": "json"
  }
}

Inspect token liquidity

{
  "id": "liquidity",
  "kind": "fetch_transform",
  "title": "Inspect token liquidity",
  "request": {
    "params": {
      "chainId": "{{ $.input.chainId }}",
      "topPools": 3,
      "tokenAddresses": [
        "{{ $.input.tokenAddress }}"
      ]
    },
    "sourceId": "uniswap_token_liquidity",
    "deliveryFormat": "json"
  }
}

Quote sample Base swap

{
  "id": "quote",
  "kind": "fetch_transform",
  "title": "Quote sample Base swap",
  "request": {
    "params": {
      "amount": "{{ $.input.amountUsd }}",
      "chainId": "{{ $.input.chainId }}",
      "exactSide": "input",
      "slippageBps": "{{ $.input.slippageBps }}",
      "tokenInAddress": "0x833589fCD6EDB6E08f4c7C32D4f71b54bdA02913",
      "tokenOutAddress": "{{ $.input.tokenAddress }}"
    },
    "sourceId": "uniswap_swap_quote",
    "deliveryFormat": "json"
  }
}

Search execution surface context

{
  "id": "search",
  "kind": "fetch_transform",
  "title": "Search execution surface context",
  "request": {
    "params": {
      "count": 5,
      "query": "{{ $.input.surfaceName }} Base swap execution {{ $.input.operatorGoal }}"
    },
    "sourceId": "stableenrich_exa_search",
    "deliveryFormat": "json"
  }
}

Build Base swap execution sanity check

{
  "id": "summarize",
  "kind": "fetch_transform",
  "title": "Build Base swap execution sanity check",
  "request": {
    "params": {
      "input": {
        "quote": "{{ $.stepsById.quote.output }}",
        "activity": "{{ $.stepsById.activity.output.response.result }}",
        "liquidity": "{{ $.stepsById.liquidity.output }}",
        "surfaceName": "{{ $.input.surfaceName }}",
        "operatorGoal": "{{ $.input.operatorGoal }}",
        "searchContext": "{{ $.stepsById.search.output }}"
      },
      "prompt": "Build a Base swap execution sanity check. Focus on whether the named surface looks credible, the quote route sanity, the liquidity and wallet-activity signals, and the next actions.",
      "responseSchema": {
        "type": "object",
        "required": [
          "surfaceName",
          "executionVerdict",
          "summary",
          "routeSanity",
          "liquiditySignals",
          "activitySignals",
          "nextActions"
        ],
        "properties": {
          "summary": {
            "type": "string",
            "maxLength": 280
          },
          "nextActions": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "maxItems": 4,
            "description": "Next actions."
          },
          "routeSanity": {
            "type": "object",
            "required": [
              "priceImpactBps",
              "routeHops"
            ],
            "properties": {
              "routeHops": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 80
                },
                "maxItems": 4,
                "description": "Visible route hops."
              },
              "priceImpactBps": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "surfaceName": {
            "type": "string"
          },
          "activitySignals": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "maxItems": 4,
            "description": "Wallet-activity signals."
          },
          "executionVerdict": {
            "enum": [
              "credible",
              "watch",
              "weak"
            ],
            "type": "string"
          },
          "liquiditySignals": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "maxItems": 4,
            "description": "Liquidity signals."
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "You are compressing Base execution review into a bounded operator packet. Stay grounded in the supplied quote, liquidity, wallet-activity, and public surface context only."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}