Analyze wallet holdings, transaction activity, PnL statistics, and net worth using the LiberFi CLI.
Supports two modes:
lfi wallet *): Query any wallet address. No authentication required.lfi me *): Query the authenticated user's own LiberFi TEE wallet without specifying an address. Requires authentication.See bootstrap.md for CLI installation and connectivity verification.
This skill's auth requirements:
| Command group | Requires Auth |
|---|---|
| --------------- | -------------- |
lfi wallet * | No (public API, uses on-chain data) |
lfi me * | Yes (JWT, uses TEE wallet) |
Authentication pre-flight for me commands:
lfi status --jsonlfi login key --role AGENT --jsonlfi login --json → lfi verify --json lfi whoami --json to confirm wallet addresses| If user asks about... | Route to |
|---|---|
| ----------------------- | ---------- |
| Token search, price, details, security | liberfi-token |
| Token holders, smart money traders | liberfi-token |
| Token K-line, candlestick chart | liberfi-token |
| Trending tokens, market rankings | liberfi-market |
| Newly listed tokens | liberfi-market |
| Swap, trade, buy, sell tokens | liberfi-swap |
| Transaction fees, gas estimation | liberfi-swap |
| Command | Description | Auth |
|---|---|---|
| --------- | ------------- | ------ |
lfi wallet holdings | Get all token holdings with values | No |
lfi wallet activity | Get transaction activity history | No |
lfi wallet stats | Get PnL statistics | No |
lfi wallet net-worth | Get total wallet net worth | No |
| Command | Description | Auth |
|---|---|---|
| --------- | ------------- | ------ |
lfi me holdings | Get holdings for the authenticated user's TEE wallet | Yes |
lfi me activity | Get transfer activity for the authenticated user's TEE wallet | Yes |
lfi me stats | Get PnL statistics for the authenticated user's TEE wallet | Yes |
lfi me net-worth | Get total net worth for the authenticated user's TEE wallet | Yes |
Activity options (apply to both wallet activity and me activity):
--type — Comma-separated transfer types to filter (e.g. buy,sell,transfer,add,remove)--token-address — Filter activity by specific token address--cursor — Pagination cursor--limit — Max results per page--direction — Cursor direction: next or prevStats options:
--resolution — Time window: 7d, 30d, or allwallet stats: allme stats: 7dsol, eth, bsc) and wallet address if not providedlfi wallet holdings --json lfi wallet activity --limit 20 --json lfi wallet activity --token-address --limit 20 --json all. Options: 7d, 30d, alllfi wallet stats --resolution --json lfi wallet net-worth --json lfi wallet net-worth --json → total valuelfi wallet holdings --json → token breakdownlfi wallet stats --json → PnL summaryUse when the user wants to check their own LiberFi account without knowing the wallet address.
Authentication pre-flight:
lfi status --json
# If not authenticated:
lfi login key --role AGENT --json # agent
# or: lfi login <email> --json → lfi verify <otpId> <code> --json
lfi whoami --json # confirm evmAddress / solAddress
sol for Solana, eth for Ethereum)```bash
lfi me net-worth
lfi me holdings
lfi me stats
```
lfi status --json; authenticate if neededlfi me activity --limit 20 --json > Full flow: portfolio → token → token
lfi wallet holdings --json — Get all holdingslfi token info --json — Get token detailslfi token security --json — Security audit> Full flow: portfolio → portfolio → token
lfi wallet activity --limit 10 --json — Recent activitylfi wallet holdings --json — Current holdingslfi token security --json > Full flow: portfolio → market
lfi wallet stats --resolution 30d --json — Monthly PnLlfi ranking trending 24h --limit 10 --json — Current trends> Full flow: auth → portfolio (me commands)
lfi status --json — Check session; if not authed → lfi login key --jsonlfi whoami --json — Confirm chain addresseslfi me holdings sol --json — Get Solana TEE wallet holdingslfi me stats sol --resolution 7d --json — 7d PnLlfi me net-worth sol --json — Total net worth> Full flow: swap (already done) → portfolio (me commands)
lfi status --json — Confirm session still validlfi me holdings --json — Updated holdings post-swaplfi me net-worth --json — Updated total value| Just completed | Suggest to user |
|---|---|
| ---------------- | ----------------- |
| Holdings view | "Want to check your PnL or transaction history?" / "需要查看盈亏或交易记录?" |
| Activity list | "Want to filter by token or check PnL stats?" / "需要按代币筛选或查看盈亏统计?" |
| PnL stats | "Want to see your current holdings?" / "需要查看当前持仓?" |
| Net worth | "Want to see the token breakdown?" / "需要查看各代币明细?" |
| Full overview | "Want to research any specific token or check trends?" / "需要研究某个代币或查看趋势?" |
| Me holdings | "Want to check your activity or PnL stats?" / "需要查看交易记录或盈亏统计?" |
| Me stats | "Want to see your full holdings breakdown?" / "需要查看完整持仓明细?" |
0x + 40 hex charssol chain (or vice versa) will fail; detect the address format and suggest the correct chainme command returns 401: Session expired; run lfi status --json, then re-authenticateme command used without auth: Do not call lfi me * without first verifying authentication via lfi status --jsonSee security-policy.md for global security rules.
Skill-specific rules:
wallet commands; me commands require no address at allme commands expose the authenticated user's TEE wallet data — only use after confirming the user intends to query their own account共 1 个版本