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 groupRequires Authlfi 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 <email> --json → lfi verify <otpId> <code> --jsonlfi whoami --json to confirm wallet addressesIf user asks about...Route toToken search, price, details, securityliberfi-tokenToken holders, smart money tradersliberfi-tokenToken K-line, candlestick chartliberfi-tokenTrending tokens, market rankingsliberfi-marketNewly listed tokensliberfi-marketSwap, trade, buy, sell tokensliberfi-swapTransaction fees, gas estimationliberfi-swap
CommandDescriptionAuthlfi wallet holdings <chain> <address>Get all token holdings with valuesNolfi wallet activity <chain> <address>Get transaction activity historyNolfi wallet stats <chain> <address> [--resolution <window>]Get PnL statisticsNolfi wallet net-worth <chain> <address>Get total wallet net worthNo
CommandDescriptionAuthlfi me holdings <chain>Get holdings for the authenticated user's TEE walletYeslfi me activity <chain>Get transfer activity for the authenticated user's TEE walletYeslfi me stats <chain> [--resolution <window>]Get PnL statistics for the authenticated user's TEE walletYeslfi me net-worth <chain>Get total net worth for the authenticated user's TEE walletYes
Activity options (apply to both wallet activity and me activity):
--type <type> — Comma-separated transfer types to filter (e.g. buy,sell,transfer,add,remove)--token-address <address> — Filter activity by specific token address--cursor <cursor> — Pagination cursor--limit <limit> — Max results per page--direction <direction> — Cursor direction: next or prevStats options:
--resolution <resolution> — Time window: 7d, 30d, or all
wallet stats: allme stats: 7dsol, eth, bsc) and wallet address if not providedlfi wallet holdings <chain> <address> --jsonlfi wallet activity <chain> <address> --limit 20 --jsonlfi wallet activity <chain> <address> --token-address <tokenAddress> --limit 20 --jsonall. Options: 7d, 30d, alllfi wallet stats <chain> <address> --resolution <window> --jsonlfi wallet net-worth <chain> <address> --jsonlfi wallet net-worth <chain> <address> --json → total valuelfi wallet holdings <chain> <address> --json → token breakdownlfi wallet stats <chain> <address> --json → PnL summaryUse when the user wants to check their own LiberFi account without knowing the wallet address.
Authentication pre-flight:
bash
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
Ask for chain: Which chain to check (e.g. sol for Solana, eth for Ethereum)
Run all four in sequence: bash
lfi me net-worth <chain> --json
lfi me holdings <chain> --json
lfi me stats <chain> --resolution 7d --json
Present: Consolidated report — total value, top holdings, and 7d PnL summary
Suggest next step: "Want to check trends or research any specific token?"
lfi status --json; authenticate if neededlfi me activity <chain> --limit 20 --jsonFull flow: portfolio → token → token
lfi wallet holdings <chain> <address> --json — Get all holdingslfi token info <chain> <tokenAddress> --json — Get token detailslfi token security <chain> <tokenAddress> --json — Security auditFull flow: portfolio → portfolio → token
lfi wallet activity <chain> <address> --limit 10 --json — Recent activitylfi wallet holdings <chain> <address> --json — Current holdingslfi token security <chain> <tokenAddress> --jsonFull flow: portfolio → market
lfi wallet stats <chain> <address> --resolution 30d --json — Monthly PnLlfi ranking trending <chain> 24h --limit 10 --json — Current trendsFull 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 worthFull flow: swap (already done) → portfolio (me commands)
lfi status --json — Confirm session still validlfi me holdings <chain> --json — Updated holdings post-swaplfi me net-worth <chain> --json — Updated total valueJust completedSuggest to userHoldings 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