402.bot
Recipe
live $0.0100 premium Bankr Ops

Bankr Wallet Trade Digest

Combine wallet context, market context, a live quote, and Bankr output into a compact trade digest.

$0.0100price
6steps
11sources
9ktokens saved
4tool calls compressed
median latency
BankrZapperMessariUniswapGeminiZapper Token BalancesZapper Token PriceMessari News FeedUniswap Swap QuoteBankr Paid PromptGoogle Gemini Flash Structured

Endpoint: /v1/recipes/bankr-wallet-trade-digest/run
Capabilities: trading, bankr, trade-digest, wallet-handoff

Why pay for this?

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

Combines wallet context, market context, a live quote, and Bankr output into a compact trade digest.

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 balances

fetch_transform

Source: Zapper Token Balances
Step id: balances

Stage 2

Load token price

fetch_transform

Source: Zapper Token Price
Step id: price

Stage 3

Load recent asset news

fetch_transform

Source: Messari News Feed
Step id: news

Stage 4

Quote the trade

fetch_transform

Source: Uniswap Swap Quote
Step id: quote

Stage 5

Ask Bankr for a trade digest

fetch_transform

Source: Bankr Paid Prompt
Step id: bankr

Stage 6

Build Bankr wallet trade digest

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 balances

{
  "id": "balances",
  "kind": "fetch_transform",
  "title": "Load wallet balances",
  "request": {
    "params": {
      "first": 10,
      "chainIds": [
        "{{ $.input.chainId }}"
      ],
      "addresses": [
        "{{ $.input.walletAddress }}"
      ]
    },
    "sourceId": "zapper_token_balances",
    "deliveryFormat": "json"
  }
}

Load token price

{
  "id": "price",
  "kind": "fetch_transform",
  "title": "Load token price",
  "request": {
    "params": {
      "address": "{{ $.input.tokenAddress }}",
      "chainId": "{{ $.input.chainId }}",
      "currency": "USD"
    },
    "sourceId": "zapper_token_price",
    "deliveryFormat": "json"
  }
}

Load recent asset news

{
  "id": "news",
  "kind": "fetch_transform",
  "title": "Load recent asset news",
  "request": {
    "params": {
      "limit": 5,
      "assetKeys": [
        "{{ $.input.assetSlug }}"
      ]
    },
    "sourceId": "messari_news_feed",
    "deliveryFormat": "json"
  }
}

Quote the trade

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

Ask Bankr for a trade digest

{
  "id": "bankr",
  "kind": "fetch_transform",
  "title": "Ask Bankr for a trade digest",
  "request": {
    "params": {
      "xmtp": "{{ $.input.xmtp }}",
      "prompt": "Trade intent: {{ $.input.tradeIntent }}\nWallet: {{ $.stepsById.balances.output }}\nQuote: {{ $.stepsById.quote.output }}",
      "walletAddress": "{{ $.input.walletAddress }}"
    },
    "sourceId": "bankr_paid_prompt",
    "deliveryFormat": "json"
  }
}

Build Bankr wallet trade digest

{
  "id": "summarize",
  "kind": "fetch_transform",
  "title": "Build Bankr wallet trade digest",
  "request": {
    "params": {
      "input": {
        "news": "{{ $.stepsById.news.output }}",
        "bankr": "{{ $.stepsById.bankr.output }}",
        "price": "{{ $.stepsById.price.output }}",
        "quote": "{{ $.stepsById.quote.output }}",
        "chainId": "{{ $.input.chainId }}",
        "balances": "{{ $.stepsById.balances.output }}",
        "amountUsd": "{{ $.input.amountUsd }}",
        "assetSlug": "{{ $.input.assetSlug }}",
        "tradeIntent": "{{ $.input.tradeIntent }}",
        "tokenAddress": "{{ $.input.tokenAddress }}",
        "walletAddress": "{{ $.input.walletAddress }}"
      },
      "prompt": "Build a Bankr wallet trade digest. Focus on the wallet context, the quote, the Bankr result, the main risk flags, and the next actions.",
      "responseSchema": {
        "type": "object",
        "required": [
          "walletAddress",
          "chainId",
          "tokenAddress",
          "assetSlug",
          "summary",
          "walletContext",
          "quote",
          "bankrExecution",
          "riskFlags",
          "nextActions"
        ],
        "properties": {
          "quote": {
            "type": "object",
            "required": [
              "tokenInSymbol",
              "tokenOutSymbol",
              "amountIn",
              "amountOut",
              "priceImpactBps",
              "routeHops"
            ],
            "properties": {
              "amountIn": {
                "type": "string"
              },
              "amountOut": {
                "type": "string"
              },
              "routeHops": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "tokenInSymbol": {
                "type": "string"
              },
              "priceImpactBps": {
                "type": "number"
              },
              "tokenOutSymbol": {
                "type": "string"
              }
            },
            "description": "Reference quote summary.",
            "additionalProperties": false
          },
          "chainId": {
            "type": "integer"
          },
          "summary": {
            "type": "string"
          },
          "assetSlug": {
            "type": "string"
          },
          "riskFlags": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "priority",
                "note"
              ],
              "properties": {
                "note": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "priority": {
                  "enum": [
                    "high",
                    "medium",
                    "low"
                  ],
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "description": "Primary trade risks."
          },
          "nextActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Suggested next actions."
          },
          "tokenAddress": {
            "type": "string"
          },
          "walletAddress": {
            "type": "string"
          },
          "walletContext": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "section",
                "detail"
              ],
              "properties": {
                "detail": {
                  "type": "string"
                },
                "section": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "description": "Wallet and market context to keep in the handoff."
          },
          "bankrExecution": {
            "type": "object",
            "required": [
              "prompt",
              "walletAddress",
              "responseText",
              "transactionHints"
            ],
            "properties": {
              "prompt": {
                "type": "string"
              },
              "responseText": {
                "type": "string"
              },
              "walletAddress": {
                "type": "string"
              },
              "transactionHints": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "description": "Bankr execution result.",
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "You are compressing a Bankr trade handoff into a bounded packet. Stay grounded in the supplied wallet, market, quote, and Bankr response context."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}