402.bot
Recipe
live $0.0075 medium General Research

Liquid Staking Scorecard

Blend Lido protocol status with DefiLlama liquid-staking yields into a compact operator scorecard.

$0.0075price
4steps
6sources
188ktokens saved
13tool calls compressed
median latency
LidoDefiLlamaLido Steth StatusDefillama Yield ScanGoogle Gemini Flash StructuredTransform

Endpoint: /v1/recipes/liquid-staking-scorecard/run
Capabilities: staking, liquid-staking, lst, lido, research

Why pay for this?

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

Lido status + DefiLlama LST yields -> staking scorecard

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 Lido status

fetch_transform

Source: Lido Steth Status
Step id: lido_status

Stage 2

Load liquid staking yields

fetch_transform

Source: Defillama Yield Scan
Step id: yield_scan

Stage 3

Write staking scorecard

fetch_transform

Source: Google Gemini Flash Structured
Step id: brief

Stage 4

Attach staking snapshot

transform

Source: Transform
Step id: finalize

Recent runs

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

Load Lido status

{
  "id": "lido_status",
  "kind": "fetch_transform",
  "title": "Load Lido status",
  "request": {
    "params": {
      "historyPoints": 7
    },
    "sourceId": "lido_steth_status",
    "deliveryFormat": "json"
  }
}

Load liquid staking yields

{
  "id": "yield_scan",
  "kind": "fetch_transform",
  "title": "Load liquid staking yields",
  "request": {
    "params": {
      "limit": "{{ $.input.limit }}",
      "sortBy": "tvlUsd",
      "projects": "{{ $.input.protocols }}",
      "minTvlUsd": "{{ $.input.minTvlUsd }}"
    },
    "sourceId": "defillama_yield_scan",
    "deliveryFormat": "json"
  }
}

Write staking scorecard

{
  "id": "brief",
  "kind": "fetch_transform",
  "title": "Write staking scorecard",
  "request": {
    "params": {
      "input": {
        "goal": "{{ $.input.goal }}",
        "yieldScan": "{{ $.stepsById.yield_scan.output }}",
        "lidoStatus": "{{ $.stepsById.lido_status.output }}"
      },
      "prompt": "Build a liquid staking scorecard from the supplied Lido status and DefiLlama liquid-staking yields. Compare yield quality, TVL depth, and which protocols look most appropriate for the user's goal.",
      "responseSchema": {
        "type": "object",
        "required": [
          "summary",
          "protocols",
          "watchItems"
        ],
        "properties": {
          "summary": {
            "type": "string"
          },
          "protocols": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "project",
                "takeaway"
              ],
              "properties": {
                "apy": {
                  "type": "number"
                },
                "chain": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string"
                },
                "tvlUsd": {
                  "type": "number"
                },
                "apyBase": {
                  "type": "number"
                },
                "project": {
                  "type": "string"
                },
                "takeaway": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "watchItems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Liquid staking follow-up checks."
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "Use only the supplied staking data. Do not invent APRs, TVL, or protocol comparisons beyond the snapshot."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}

Attach staking snapshot

{
  "id": "finalize",
  "kind": "transform",
  "title": "Attach staking snapshot",
  "request": {
    "mode": "clean_json",
    "source": {
      "kind": "json",
      "value": {
        "goal": "{{ $.input.goal }}",
        "lido": {
          "smaApr": "{{ $.stepsById.lido_status.output.smaApr }}",
          "totalStaked": "{{ $.stepsById.lido_status.output.totalStaked }}",
          "marketCapUsd": "{{ $.stepsById.lido_status.output.marketCapUsd }}",
          "uniqueHolders": "{{ $.stepsById.lido_status.output.uniqueHolders }}"
        },
        "summary": "{{ $.stepsById.brief.output.output.summary }}",
        "protocols": "{{ $.stepsById.brief.output.output.protocols }}",
        "watchItems": "{{ $.stepsById.brief.output.output.watchItems }}",
        "generatedAt": "{{ $.run.startedAt }}",
        "stakingSnapshot": {
          "lido": "{{ $.stepsById.lido_status.output }}",
          "yields": "{{ $.stepsById.yield_scan.output }}"
        }
      }
    }
  }
}