Skip to content
Back to skills

Debank

ASecurity

Query DeBank OpenAPI for wallet portfolios, token holdings, DeFi positions, and transaction history.

  • 101 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 28, 2026
blockchaingoapisecurity

Works with

  • api

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add TermiX-official/cryptoclaw --skill debank --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debank?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debank
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/termix-official-debank/badge)](https://www.skillsdirectory.com/skills/termix-official-debank)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: debank
description: Query DeBank OpenAPI for wallet portfolios, token holdings, DeFi positions, and transaction history.
metadata:
  {
    "cryptoclaw":
      { "emoji": "🏦", "requires": { "env": ["DEBANK_API_KEY"] }, "primaryEnv": "DEBANK_API_KEY" },
  }
---

# DeBank OpenAPI

Query wallet portfolios, token balances, DeFi protocol positions, NFTs, and transaction history across 100+ EVM chains.

## Base URL

```
https://pro-openapi.debank.com/v1
```

Requires API key: set `DEBANK_API_KEY`. Paid plans at https://cloud.debank.com/open-api

Pass via header: `AccessKey: {key}`

## Endpoints

### Total Balance

```
GET /user/total_balance?id={address}
```

Returns total USD value across all chains.

### Chain Balances

```
GET /user/chain_list?id={address}
```

Returns per-chain balance breakdown with chain name, logo, and USD value.

### Token List

```
GET /user/all_token_list?id={address}&is_all=true
```

Returns all token holdings across all chains with:

- `chain` β€” chain identifier
- `name`, `symbol`, `decimals`
- `amount` β€” raw balance
- `price` β€” current USD price
- `logo_url`

Filter by chain: `GET /user/token_list?id={address}&chain_id={chain}`

Chain IDs: `bsc`, `eth`, `matic`, `arb`, `op`, `base`, `avax`, `ftm`

### DeFi Protocol Positions

```
GET /user/all_complex_protocol_list?id={address}
```

Returns all DeFi positions grouped by protocol:

- Lending (supply/borrow)
- Liquidity pools (LP positions)
- Farming (staked tokens + rewards)
- Vesting / locked tokens

Each position includes USD value, APY (when available), and health factor for lending.

Filter by chain: `GET /user/complex_protocol_list?id={address}&chain_id={chain}`

### NFT List

```
GET /user/all_nft_list?id={address}&is_all=true
```

Returns NFT holdings with collection name, floor price, and image.

### Transaction History

```
GET /user/history_list?id={address}&chain_id={chain}&page_count=20
```

Returns parsed transaction history with human-readable descriptions:

- Swap, Send, Receive, Approve, Contract Interaction
- Token amounts and counterparties
- Pagination via `start_time` parameter

### Token Info

```
GET /token?id={address}&chain_id={chain}
```

Returns token metadata: name, symbol, price, market cap, holders, logo.

### Protocol Info

```
GET /protocol?id={protocol_id}
```

Returns protocol details: TVL, chains, site URL, logo.

### Protocol List

```
GET /protocol/list
```

Returns all tracked protocols. **Large payload** β€” filter output.

## Usage Notes

- DeBank tracks 100+ EVM chains automatically β€” no need to query each chain separately when using `all_*` endpoints
- Always use `all_token_list` and `all_complex_protocol_list` for full portfolio overview
- For transaction history, `chain_id` is required β€” ask user which chain or iterate through their active chains
- DeFi positions include detailed breakdowns (supply vs borrow, LP composition) β€” present clearly
- Combine with `coingecko` for price charts and `security-check` for token risk assessment
- Rate limits depend on plan tier β€” avoid unnecessary repeated calls

## Example Interactions

User: "What's in my wallet?"
β†’ Call `all_token_list` for active wallet, present holdings sorted by USD value

User: "Show my DeFi positions"
β†’ Call `all_complex_protocol_list`, group by protocol, show value and APY

User: "What's the portfolio of 0x...?"
β†’ Call `total_balance` for overview, then `all_token_list` for details

User: "Show my recent transactions on BSC"
β†’ Call `history_list` with `chain_id=bsc`, present last 20 parsed transactions

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…