360 Secure SkillHub
360 安全技能中心

nansen-defi-positions

该技能通过 Nansen CLI 查询钱包的 DeFi 暴露,按协议和链展示资产、债务、奖励及涉及代币,也可按链查询现货余额。典型场景:分析某地址在借贷、LP、质押等协议中的持仓和整体链上资产。输入为钱包地址,可选链;输出为协议名称、链、总价值、资产/债务/奖励金额及代币列表。适合尽调、持仓追踪。需配置 NANSEN_API_KEY。

nansen-devops
nansen-devops
热度 59.73
最近更新 2026-09-29 11:12:41
分类:数据依赖:代码执行 / 第三方 API应用场景:财务 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nansen-defi-positions
Metadata
name
nansen-defi-positions
description
What DeFi positions does a wallet hold? Protocol-by-protocol breakdown of assets, debts, and rewards across chains.
metadata
{"openclaw":{"requires":{"bins":["nansen"]},"primaryEnv":"NANSEN_API_KEY","install":[{"kind":"node","package":"nansen-cli","bins":["nansen"]}]}}
allowed-tools
Bash(nansen:*)

Authentication

Nansen account API calls accept a selected nansen:api browser session or conventional API key with the same permissions. NANSEN_API_KEY takes precedence; optional primaryEnv preserves configured-key injection. Run nansen auth status for offline selection. Cached access expiry alone permits automatic renewal during an authorized task. Stop on anonymous selection, invalid state, blocked/uncertain renewal or actual auth failure; never drop a credential or fall back to anonymous x402 payment. Browser login does not grant wallet signing, privileged service identity or a persistent MCP integration key. Preserve all confirmation, signing, sanctions and geographic checks below. Browser login is available in CLI 2.0.0 within the macOS arm64 preview scope.

DeFi Exposure

Answers: "What DeFi positions does this wallet have across protocols?"

ADDR=<address>

nansen research portfolio defi --wallet $ADDR
# → protocol_name, chain, total_value_usd, total_assets_usd, total_debts_usd, total_rewards_usd, tokens

nansen research profiler balance --address $ADDR --chain ethereum
# → token_symbol, token_name, token_amount, value_usd per holding

nansen research profiler balance --address $ADDR --chain base

Combine DeFi positions (lending, LPs, staking) with spot balances for a complete picture of on-chain exposure.

Note: portfolio defi may return empty for wallets with no tracked DeFi positions.