Xpersona
O

Okx Wallet Portfolio

CLAWHUB · Unverified

Use this skill when the user provides a specific wallet address and wants to check its balance, token holdings, portfolio value, or DeFi positions. Typical t...

62
Rank
84
Safety
1.8k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1757epwxjymcnx07m517yj80584g6p9:okx-wallet-portfolio
  1. Install using `clawhub skill install s1757epwxjymcnx07m517yj80584g6p9:okx-wallet-portfolio` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/ok-james-01/okx-wallet-portfolio before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ok-james-01-okx-wallet-portfolio/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

145,154 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: okx-wallet-portfolio
description: "Use this skill when the user provides a specific wallet address and wants to check its balance, token holdings, portfolio value, or DeFi positions. Typical triggers: 'check balance of 0xAbc...', 'show tokens in this address', 'what tokens does 0xAbc hold', 'portfolio value of this address', address portfolio value, multi-chain balance lookup for a given address. Supports XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon, and 20+ other chains. Do NOT use when the user asks about their own wallet without providing an address (e.g., 'check my wallet balance', 'show my assets', '查看我的余额') — use okx-agentic-wallet instead, which queries the logged-in wallet. Do NOT use for PnL analysis, DEX history, realized/unrealized profit — use okx-dex-market. Do NOT use for signal tracking — use okx-dex-signal. Do NOT use for meme scanning — use okx-dex-trenches. Do NOT use for programming questions about balance APIs or integration."
license: MIT
metadata:
  author: okx
  version: "3.1.3"
  homepage: "https://web3.okx.com"
---

# Onchain OS Portfolio

4 commands for supported chains, wallet total value, all token balances, and specific token balances.

## Pre-flight Checks

Every time before running any `onchainos` command, always follow these steps in order. Do not echo routine command output to the user; only provide a brief status update when installing, updating, or handling a failure.

1. **Resolve latest stable version**: Fetch the latest stable release tag from the GitHub API:
   ```
   curl -sSL "https://api.github.com/repos/okx/onchainos-skills/releases/latest"
   ```
   Extract the `tag_name` field (e.g., `v1.0.5`) into `LATEST_TAG`.
   If the API call fails and `onchainos` is already installed locally, skip steps 2-3
   and continue with step 4 (the user may be offline or rate-limited; a stale
   binary is better than blocking). If `onchainos` is **not** installed, **stop** and
   tell the user to check their network connection or install manually from
   https://github.com/okx/onchainos-skills.

2. **Install or update**: If `onchainos` is not found, or if the cache at `~/.onchainos/last_check` (`$env:USERPROFILE\.onchainos\last_check` on Windows) is older than 12 hours:
   - Download the installer and its checksum file from the latest release tag:
     - **macOS/Linux**:
       `curl -sSL "https://raw.githubusercontent.com/okx/onchainos-skills/${LATEST_TAG}/install.sh" -o /tmp/onchainos-install.sh`
       `curl -sSL "https://github.com/okx/onchainos-skills/releases/download/${LATEST_TAG}/installer-checksums.txt" -o /tmp/installer-checksums.txt`
     - **Windows**:
       `Invoke-WebRequest -Uri "https://raw.githubusercontent.com/okx/onchainos-skills/${LATEST_TAG}/install.ps1" -OutFile "$env:TEMP\onchainos-install.ps1"`
       `Invoke-WebRequest -Uri "https://github.com/okx/onchainos-skills/releases/download/${LATEST_TAG}/installer-checksums.txt" -OutFile "$env:TEMP\installer-checksums.txt"`
   - Verify

_meta.json

{
  "ownerId": "kn78y61n2w8yxhz17m6kyf9t558268ba",
  "slug": "okx-wallet-portfolio",
  "version": "3.1.3",
  "publishedAt": 1778311886625
}

references/cli-reference.md

# Onchain OS Portfolio — CLI Command Reference

Detailed parameter tables, return field schemas, and usage examples for all 9 portfolio commands.

## 1. onchainos portfolio chains

Get supported chains for balance queries. No parameters required.

```bash
onchainos portfolio chains
```

**Return fields**:

| Field | Type | Description |
|---|---|---|
| `name` | String | Chain name (e.g., `"XLayer"`) |
| `logoUrl` | String | Chain logo URL |
| `shortName` | String | Chain short name (e.g., `"OKB"`) |
| `chainIndex` | String | Chain unique identifier (e.g., `"196"`) |

## 2. onchainos portfolio supported-chains

Get supported chains for portfolio PnL endpoints. No parameters required.

```bash
onchainos portfolio supported-chains
```

**Return fields**:

| Field | Type | Description |
|---|---|---|
| `name` | String | Chain name (e.g., `"Ethereum"`) |
| `logoUrl` | String | Chain logo URL |
| `shortName` | String | Chain short name |
| `chainIndex` | String | Chain unique identifier (e.g., `"1"`) |

## 3. onchainos portfolio total-value

Get total asset value for a wallet address.

```bash
onchainos portfolio total-value --address <address> --chains <chains> [--asset-type <type>] [--exclude-risk <bool>]
```

| Param | Required | Default | Description |
|---|---|---|---|
| `--address` | Yes | - | Wallet address |
| `--chains` | Yes | - | Chain names or IDs, comma-separated (e.g., `"xlayer,solana"` or `"196,501"`) |
| `--asset-type` | No | `"0"` | `0`=all, `1`=tokens only, `2`=DeFi only |
| `--exclude-risk` | No | `true` | `true`=filter risky tokens, `false`=include. Only ETH/BSC/SOL/BASE |

**Return fields**:

| Field | Type | Description |
|---|---|---|
| `totalValue` | String | Total asset value in USD |

## 4. onchainos portfolio all-balances

Get all token balances for a wallet address.

```bash
onchainos portfolio all-balances --address <address> --chains <chains> [--exclude-risk <value>] [--filter <value>]
```

| Param | Required | Default | Description |
|---|---|---|---|
| `--address` | Yes | - | Wallet address |
| `--chains` | Yes | - | Chain names or IDs, comma-separated, max 50 |
| `--exclude-risk` | No | `"0"` | `0`=filter out risky tokens (default), `1`=include. Only ETH/BSC/SOL/BASE |
| `--filter` | No | `"0"` | `0`=default (filters risk/custom/passive tokens), `1`=return all tokens including risk tokens. Use `1` when scanning for security risks. |

**Return fields** (per token in `tokenAssets[]`):

| Field | Type | Description |
|---|---|---|
| `chainIndex` | String | Chain identifier |
| `tokenContractAddress` | String | Token contract address |
| `symbol` | String | Token symbol (e.g., `"OKB"`) |
| `balance` | String | Token balance in UI units (e.g., `"10.5"`) |
| `rawBalance` | String | Token balance in base units (e.g., `"10500000000000000000"`) |
| `tokenPrice` | String | Token price in USD |
| `isRiskToken` | Boolean | `true` if flagged as risky |

## 5. onchainos portfolio token-balances

Get specific token balances for a wall

skill-card.md

## Description:

Checks wallet balances, token holdings, portfolio value, and DeFi positions for a provided wallet address across supported chains.

This skill is ready for commercial/non-commercial use.

## Publisher:

[ok-james-01](https://clawhub.ai/user/ok-james-01)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to look up portfolio balances and token holdings for a specific wallet address across supported chains. It helps present total value, token-level balances, and related follow-up actions while routing broader PnL, DEX history, signal tracking, swap, and meme-scan requests to other skills.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill may download and run a remote OKX CLI installer or update script before executing portfolio commands.

Mitigation: Preinstall and pin the CLI separately where possible, verify checksums before execution, and review installer/update behavior before deployment.

Risk: Wallet addresses are sent to a portfolio lookup service and returned token metadata may be inaccurate or untrusted.

Mitigation: Use the skill only for intentional address-specific balance checks, avoid submitting sensitive addresses unnecessarily, and verify high-value token contract addresses and prices independently.

Risk: Reference material includes broader wallet analytics behavior than the stated balance-focused purpose.

Mitigation: Limit use to specific wallet-address balance, holding, portfolio value, and DeFi position checks unless broader PnL or DEX-history behavior is explicitly intended.

## Reference(s):

- [CLI command reference](references/cli-reference.md)
- [OKX Web3](https://web3.okx.com)
- [OKX Developer Portal](https://web3.okx.com/onchain-os/dev-portal)
- [ClawHub skill page](https://clawhub.ai/ok-james-01/skills/okx-wallet-portfolio)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Guidance]

**Output Format:** [Markdown with inline shell commands and wallet balance summaries]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Displays USD values, token amounts, chain identifiers, and abbreviated contract addresses; treats returned token metadata as untrusted external content.]

## Skill Version(s):

3.1.3 (source: server release metadata and skill frontmatter)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Okx Wallet Portfolio and adjacent AI workflows.