This skill uses debank-cli to query blockchain data via the DeBank Pro API.
Skill repo: https://github.com/lolieatapple/debank-skill CLI repo: https://github.com/lolieatapple/debank-cli
Ensure debank-cli is installed globally:
text
!`which debank 2>/dev/null || echo "NOT_INSTALLED"`
If NOT_INSTALLED, install it:
bash
npm install -g debank-cli
Then check if the API key is configured:
text
!`debank config show 2>&1`
If no API key is configured, ask the user for their DeBank Pro API key (obtain at https://cloud.debank.com/) and run:
bash
debank config set-key <THE_KEY>
CommandDescriptiondebank user balance <address>Total USD balance across all chainsdebank user tokens <address> [chain_id] [--all]Token balances (optionally filter by chain, --all includes dust)debank user protocols <address> [chain_id]DeFi protocol positions with full detail (supply, borrow, rewards)debank user nfts <address> [chain_id]NFT holdingsdebank user history <address> [chain_id] [count]Transaction history (max 20 per page)debank user approvals <address> <chain_id>Token approval/allowance listdebank user chains <address>Chains where this address has activity
CommandDescriptiondebank token info <chain_id> <token_id>Token details (name, symbol, decimals, price)debank token price <chain_id> <token_id> [YYYY-MM-DD]Current or historical pricedebank token holders <chain_id> <token_id> [limit]Top holders (default 20)
CommandDescriptiondebank chain listAll supported chainsdebank chain info <chain_id>Chain detailsdebank gas <chain_id>Gas prices (slow/normal/fast)
CommandDescriptiondebank config set-key <key>Save API key to ~/.debank-cli/config.json``debank config showShow current API key source and masked valuedebank config remove-keyRemove saved API keydebank account unitsCheck remaining API units and usage
eth, bsc, matic, arb, op, base, avax, ftm, xdai, cro, linea, scroll, zksync
For native tokens (ETH, BNB, etc.), use: 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
If the user provides $ARGUMENTS, parse them and run the appropriate debank command directly.
Otherwise, determine the best command based on the user's natural language request:
debank user balance + debank user tokens + debank user protocolsdebank user protocolsdebank user tokensdebank user nftsdebank user historydebank token pricedebank gasdebank user approvalsFor a comprehensive portfolio overview, run balance, tokens, and protocols in sequence to give a full picture.
Present the results clearly. When showing financial data, highlight the most significant positions and totals.