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.
Combine wallet context, market context, a live quote, and Bankr output into a compact trade digest.
Endpoint: /v1/recipes/bankr-wallet-trade-digest/run
Capabilities: trading, bankr, trade-digest, wallet-handoff
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.
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
Success 30d: 0%
Refund 30d: 0%
Paid runs: 0
Creator recipes: 1
Last run: No recent runs
Source: Zapper Token Balances
Step id: balances
Source: Zapper Token Price
Step id: price
Source: Messari News Feed
Step id: news
Source: Uniswap Swap Quote
Step id: quote
Source: Bankr Paid Prompt
Step id: bankr
Source: Google Gemini Flash Structured
Step id: summarize
| Run | Status | Trigger | Queued |
|---|---|---|---|
| No recent runs recorded yet. Runs appear here after the first paid execution. | |||
{
"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"
}
}
{
"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"
}
}
{
"id": "news",
"kind": "fetch_transform",
"title": "Load recent asset news",
"request": {
"params": {
"limit": 5,
"assetKeys": [
"{{ $.input.assetSlug }}"
]
},
"sourceId": "messari_news_feed",
"deliveryFormat": "json"
}
}
{
"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"
}
}
{
"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"
}
}
{
"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"
}
}