Help us improve
Share bugs, ideas, or general feedback.
From onchainos-skills
Looks up wallet portfolio value, token balances, and DeFi positions across 20+ chains including XLayer, Solana, Ethereum, and Base. Requires an explicit public address.
npx claudepluginhub okx/onchainos-skills --plugin onchainos-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/onchainos-skills:okx-wallet-portfolioThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
4 commands for supported chains, wallet total value, all token balances, and specific token balances.
Checks wallet balances and portfolio breakdown across multiple chains (Solana, Ethereum, Base, etc.). Use for token balances, allocation percentages, and USD values.
Queries token balances and aggregates portfolio across Base, Polygon, Ethereum, Unichain, Solana chains with USD valuations and real-time prices.
Queries DeFi positions and holdings across multiple chains for a wallet address. Provides overview and per-protocol detail views for staking, lending, and portfolio tracking.
Share bugs, ideas, or general feedback.
4 commands for supported chains, wallet total value, all token balances, and specific token balances.
Read
../okx-agentic-wallet/_shared/preflight.md. If that file does not exist, read_shared/preflight.mdinstead.
okx-dex-marketokx-dex-marketokx-dex-tokenokx-dex-signalokx-dex-trenchesokx-dex-swapokx-onchain-gatewayFull chain list:
../okx-agentic-wallet/_shared/chain-support.md. If that file does not exist, read_shared/chain-support.mdinstead.
The CLI accepts human-readable chain names and resolves them automatically (name or numeric chainIndex).
Address format note: EVM addresses (0x...) work across Ethereum/BSC/Polygon/Arbitrum/Base etc. Solana addresses (Base58) and Bitcoin addresses (UTXO) have different formats. Do NOT mix formats across chain types.
| # | Command | Description |
|---|---|---|
| 1 | onchainos portfolio chains | Get supported chains for balance queries |
| 2 | onchainos portfolio total-value --address <address> --chains <chains> | Get total asset value for a wallet (both params required) |
| 3 | onchainos portfolio all-balances --address <address> --chains <chains> | Get all token balances for a wallet (both params required) |
| 4 | onchainos portfolio token-balances --address ... --tokens ... | Get specific token balances |
onchainos portfolio total-valueonchainos portfolio all-balancesonchainos portfolio token-balancesonchainos portfolio chains firstokx-dex-market (onchainos market portfolio-overview/portfolio-dex-history/portfolio-recent-pnl/portfolio-token-pnl)--chains xlayer, low gas, fast confirmation) as the default, then ask which chain the user prefers. Common set: "xlayer,solana,ethereum,base,bsc"--exclude-risk 0 (only works on ETH/BSC/SOL/BASE)0x1234...abcd — use tokenContractAddress from the response). Always include the contract address so the user can verify the token identity.x, w, st, r, m) may have incorrect symbol or price metadata from the balance API. After displaying balances, add a note:
⚠️ Token metadata (symbol and price) is sourced from the OKX balance API and may be inaccurate for wrapped or bridged tokens. Always verify the contract address and cross-check prices for high-value holdings.
After displaying results, suggest 2-3 relevant follow-up actions:
| Just completed | Suggest |
|---|---|
portfolio total-value | 1. View token-level breakdown → onchainos portfolio all-balances (this skill) 2. Check price trend for top holdings → okx-dex-market |
portfolio all-balances | 1. View detailed analytics for a token → okx-dex-token 2. Swap a token → okx-dex-swap 3. View PnL analysis → okx-dex-market (onchainos market portfolio-overview) |
portfolio token-balances | 1. View full portfolio across all tokens → onchainos portfolio all-balances (this skill) 2. Swap this token → okx-dex-swap |
Present conversationally, e.g.: "Would you like to see the price chart for your top holding, or swap any of these tokens?" — never expose skill names or endpoint paths to the user.
For detailed parameter tables, return field schemas, and usage examples for all 4 commands, consult:
references/cli-reference.md — Full CLI command reference with params, return fields, and examplesTo search for specific command details: grep -n "onchainos portfolio <command>" references/cli-reference.md
$0.00, not an erroronchainos portfolio chains first to confirm--exclude-risk not working: only supported on ETH/BSC/SOL/BASE--asset-type 2 to query DeFi holdings separately0x…) and Solana/UTXO addresses have incompatible formats. Passing an EVM address with a Solana chain (or vice versa) causes the entire request to fail with an API error — no partial results are returned. Always make separate requests: one call for EVM chains using the EVM address, a separate call for Solana using the Solana address⚠️ Service is not available in your region. Please switch to a supported region and try again.1.5 ETH), never base units (1500000000000000000)$1.2M)0x1234...abcd). For native tokens with empty tokenContractAddress, display (native).x, w, st, r, or m (common wrapped/bridged prefixes) or if the token name contains "BTC" / "ETH" but the reported price is far below BTC/ETH market price, add an inline ⚠️ price unverified flag next to the USD value and suggest running onchainos token price-info for that token.--chains supports up to 50 chain IDs (comma-separated, names or numeric)--asset-type: 0=all 1=tokens only 2=DeFi only (only for total-value)--exclude-risk only works on ETH(1)/BSC(56)/SOL(501)/BASE(8453)token-balances supports max 20 token entriesethereum → 1, solana → 501)