Debank logo

Debank

Organization
Starchild-ai-agent
debank

Multi-chain wallet portfolios: token balances, tx history, DeFi positions, NFTs. Use when inspecting any EVM address (e.g. show vitalik.eth balances, decode this tx, what DeFi protocols does 0x... use).

Overview

PublisherStarchild-ai-agent
Repositoryofficial-skills
Skill namedebank
Stars
32
Forks
13
Bundled files
11
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Starchild-ai-agent on GitHub. Read the source before you install it.

Installation

Install the Debank AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Starchild-ai-agent/official-skills/tree/main/debank
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Starchild-ai-agent/official-skills.git /tmp/official-skills
mkdir -p .claude/skills
cp -r /tmp/official-skills/debank .claude/skills/debank
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Debank in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Debank on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Debank is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Script Usage

Script-mode skill — read this file, then invoke from a bash block:

bash
python3 - <<'EOF'
import sys, json
sys.path.insert(0, "/data/workspace/skills/debank")
from exports import db_chain_list, db_user_total_balance, db_user_all_token_list

print(db_chain_list()[:3])
print(db_user_total_balance(user_addr="0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"))
EOF

Read exports.py for the full list of db_* functions and exact signatures. Common ones: db_chain_list, db_chain, db_token, db_user_total_balance, db_user_all_token_list, db_user_all_simple_protocol_list, db_user_all_complex_protocol_list, db_user_history_list, db_protocol, db_pre_exec_tx, db_explain_tx.

DeBank

DeBank provides comprehensive blockchain data including wallet portfolios, token balances, transaction history, DeFi protocol positions, NFTs, and transaction simulation.

Function Reference (signatures)

All functions are in exports.py. chain_id uses DeBank's lowercase codes: eth, bsc, arb, op, base, matic, avax, sol, era, scrl, linea, mnt, blast, etc. — use db_chain_list() to enumerate. user_addr is the wallet address (lowercase). protocol_id from db_protocol_list().

Chain & Token reference

FunctionDescription
db_chain_list()List all supported chains.
db_chain(chain_id)One chain's metadata.
db_gas_market(chain_id)Gas prices for a chain.
db_token(chain_id, token_id)Token detail. token_id = contract address (or eth, bnb for native).
db_token_list_by_ids(chain_id, token_ids)Batch token lookup.
db_token_history_price(chain_id, token_id, start_time, end_time=None)Historical prices (unix timestamps).
db_token_top_holders(chain_id, token_id, start=0)Top holders.

User portfolio (single-chain)

FunctionDescription
db_user_chain_balance(user_addr, chain_id)USD value on one chain.
db_user_token_list(user_addr, chain_id, is_all=None)Tokens on one chain.
db_user_token(user_addr, chain_id, token_id)One token balance.
db_user_simple_protocol_list(user_addr, chain_id)DeFi positions (light) on one chain.
db_user_complex_protocol_list(user_addr, chain_id)DeFi positions (detailed) on one chain.
db_user_nft_list(user_addr, chain_id, is_all=None)NFTs on one chain.
db_user_history_list(user_addr, chain_id, start_time=None, page_count=None)Tx history on one chain.
db_user_chain_net_curve(user_addr, chain_id)Net worth curve on one chain.
db_user_token_authorized_list(user_addr, chain_id)Token approvals (security audit).
db_user_nft_authorized_list(user_addr, chain_id)NFT approvals.

User portfolio (all-chain — heavier calls)

FunctionDescription
db_user_total_balance(user_addr)Total USD across all chains + breakdown.
db_user_total_net_curve(user_addr)Net worth curve across all chains.
db_user_used_chain_list(user_addr)Which chains the address has used.
db_user_all_token_list(user_addr, is_all=None)All tokens across all chains.
db_user_all_simple_protocol_list(user_addr)All DeFi positions (light).
db_user_all_complex_protocol_list(user_addr)All DeFi positions (detailed).
db_user_all_nft_list(user_addr, is_all=None)All NFTs.
db_user_all_history_list(user_addr, start_time=None, page_count=None)All tx history.
db_user_complex_app_list(user_addr)All app-level positions (more granular).

Protocol reference

FunctionDescription
db_protocol(protocol_id)Protocol detail.
db_protocol_list(chain_id)Protocols on one chain.
db_protocol_all_list()All protocols across chains.
db_app_protocol_list()App-level protocols (groups).
db_user_protocol(user_addr, protocol_id)User's position in one protocol.
db_pool(protocol_id, chain_id, pool_id)One pool's detail.

Tx simulation

FunctionDescription
db_pre_exec_tx(user_addr, chain_id, tx)Simulate tx before sending. tx = standard tx dict.
db_explain_tx(user_addr, chain_id, tx)Human-readable explanation of a tx.

DeBank uses snake_case (total_usd_value, chain_id, usd_value). USD values are floats. Token amounts are floats (already adjusted for decimals — no need to divide by 10**decimals).

When to Use DeBank

Use DeBank for:

  • User Portfolio - Total balance, token holdings, NFTs across all chains
  • Transaction History - Historical transactions on single or all chains
  • DeFi Positions - Protocol balances and complex portfolio positions
  • Token Data - Token details, prices, and top holders
  • Transaction Simulation - Pre-execute and explain transactions before submission
  • Authorization Tracking - View token and NFT approvals
  • Analytics - 24-hour net worth curves and portfolio tracking

Common Workflows

Get User Portfolio

db_user_total_balance(user_addr="0x...")  # Total balance across all chains
db_user_all_token_list(user_addr="0x...")  # All token holdings
db_user_all_nft_list(user_addr="0x...")  # All NFT collections

Check Token Balances on Specific Chain

db_user_token_list(user_addr="0x...", chain_id="eth")  # Ethereum tokens
db_user_token_list(user_addr="0x...", chain_id="bsc")  # BSC tokens

Get Transaction History

db_user_history_list(user_addr="0x...", chain_id="eth")  # Eth transactions
db_user_all_history_list(user_addr="0x...")  # All chain transactions

Check DeFi Protocol Positions

db_user_simple_protocol_list(user_addr="0x...", chain_id="eth")  # Simple balances
db_user_complex_protocol_list(user_addr="0x...", chain_id="eth")  # Detailed positions
db_user_all_complex_protocol_list(user_addr="0x...")  # All chains

Token Information

db_token(chain_id="eth", token_id="0x...")  # Token details
db_token_history_price(chain_id="eth", token_id="0x...", start_time=1234567890, end_time=1234567990)
db_token_top_holders(chain_id="eth", token_id="0x...")  # Top 100 holders

Transaction Simulation

db_pre_exec_tx(user_addr="0x...", chain_id="eth", tx={...})  # Enhanced pre-execution
db_explain_tx(user_addr="0x...", chain_id="eth", tx={...})  # Explain transaction

Protocol Data

db_protocol(protocol_id="uniswap")  # Protocol details
db_protocol_list(chain_id="eth")  # All protocols on chain
db_protocol_all_list()  # All protocols across chains

Chain Information

db_chain_list()  # All supported chains
db_chain(chain_id="eth")  # Specific chain details
db_gas_market(chain_id="eth")  # Gas prices

Important Notes

  • API Key: Requires DEBANK_API_KEY environment variable (DeBank Cloud API)
  • User Address: Most endpoints require a valid blockchain address (0x... format)
  • Chain IDs: Use DeBank chain identifiers (eth, bsc, polygon, arbitrum, optimism, etc.)
  • Rate Limits: Be mindful of API rate limits and unit costs
  • Unit Costs: Different endpoints have different unit costs (see API documentation)

Chain ID Reference

Common chain identifiers:

  • eth → Ethereum Mainnet
  • bsc → BNB Smart Chain
  • polygon → Polygon
  • arbitrum → Arbitrum One
  • optimism → Optimism
  • avax → Avalanche C-Chain
  • ftm → Fantom
  • op → Optimism
  • base → Base

Important: Use db_chain_list() to get the complete list of supported chains and their identifiers.

Address Format

All user addresses should be in Ethereum format (0x followed by 40 hexadecimal characters):

  • Valid: 0x1234567890abcdef1234567890abcdef12345678
  • Invalid: 1234567890abcdef1234567890abcdef12345678 (missing 0x prefix)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Debank AI skill do?

Multi-chain wallet portfolios: token balances, tx history, DeFi positions, NFTs. Use when inspecting any EVM address (e.g. show vitalik.eth balances, decode this tx, what DeFi protocols does 0x... use).

Why use Debank on TypingMind?

Because you install it once and use it with any model. Debank is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Debank in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Starchild-ai-agent/official-skills/tree/main/debank. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Debank?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Debank?

As many as you like. As long as a model supports skills, you can use Debank with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Debank AI skill free?

It is published on GitHub by Starchild-ai-agent. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇