wallet-xray

Exact captured content · path skills/wallet-xray/SKILL.md · sha256 6543c99695b11868… · revision 1a99e5086c3c4c4de95f32b5ff67e31e043aee77

Download the exact captured file

---
name: wallet-xray
description: >-
  X-rays any wallet across every chain Chord indexes: what it holds and what that is worth, profit over 24 hours, 7 days
  and 30 days per chain, its average buy price and profit per token over all its swap history, and its latest swaps with
  links to the explorer. Works for a 0x address on Monad, Robinhood Chain, Arc, Avalanche, Base, BNB Chain, Arbitrum and
  Ethereum at once, adds Solana when given the wallet's Solana address, and reads a Solana address alone too. Use when
  the user asks "what does this wallet hold", "how has this wallet done", "is this trader any good", "what did this
  address buy", or pastes an address. Not for ranking wallets (use smart-money). Read only; never signs or moves funds.
license: MIT
compatibility: Needs python3 and HTTPS to api.getchord.xyz. Set CHORD_API_KEY (free at chordsi.xyz/me).
metadata:
  author: Chord (getchord.xyz)
  homepage: https://chordsi.xyz/s/wallet-xray
  version: "1.0.0"
---

# Wallet X-ray

One wallet seen through Chord's own trade tape and live balances. A 0x address is read on all eight EVM chains in one go;
pass its Solana address with `--sol` to add Solana. A Solana address alone is read on Solana only. How far back: the swap
history Chord holds for each chain (`historyFrom` says where it starts); Solana profit covers the last 1 to 45 days and its
swap list the last 7 days. Transfers carry no buy price, so profit counts swaps only.

## Run it

```bash
python3 scripts/wallet_xray.py WALLET [--view summary|positions|trades|all] [--sol SOLANA_ADDRESS] [--chains LIST] [--days N] [--limit N]
```

- `WALLET`: a 0x address, or a Solana address exactly as written (case matters).
- `--view`: `summary` (default: holdings, value, PnL per window), `positions` (average buy and profit per token, open and
  closed), `trades` (newest swaps), `all` (every view).
- `--sol`: the same person's Solana address, with a 0x wallet. `--chains`: a comma list to narrow, e.g. `monad,base,solana`.
- `--days`: Solana-only window, 1 to 45 (default 7). `--limit`: rows per list, 1 to 50 (default 10).

Example: `python3 scripts/wallet_xray.py 0x89a1a6b184301948d7ae6885630a27a8eb54efec --view all --limit 5`

## Read the answer

- `holdings`: `totals` (value, PnL 24h / 7d / 30d with `complete`), then each chain that holds something or traded: `status`
  (`ok`, `partial`, `unavailable` with a `reason`), value, PnL per window, `historyFrom` and the top holdings.
  `chainsWithNothing` lists the chains with no balance and no trades.
- `positions`: `open` (amount, value, `avgBuyUsd`, invested, `pnlUsd`, `pnlPct`) and `closed` (`realizedUsd`, `realizedPct`,
  average buy and sell), with totals of closed profit, tokens won and lost. `chainStatus` lists chains not fully read.
- `recent.trades`: time in UTC, chain, buy or sell (seen from the wallet), token, amount, value, price, venue, explorer link.
- Solana alone: `profit` (realized, unrealized, held value, win rate, `likelyBot`) and `positions` per token over `--days`.

## How to answer the user

1. Lead with total value and PnL for the window asked, in dollars and percent, and name the chains it comes from.
2. If a chain is `partial` or `unavailable`, say which one and why: the totals leave it out.
3. Name the biggest holdings and the best and worst closed tokens with their realized profit. Times in UTC.
4. Say what the numbers do not cover (transfers, history before `historyFrom`). Describe; never advise buying, selling or copying.

## Cost

`summary`, `positions` and `trades` are one call each; `all` is three calls (two for a Solana address alone). 300 calls a
month are free; then $0.006 a call from your ChordSI credit. If the script exits with code 4, show the person the message:
their credit is empty or a limit was reached, and chordsi.xyz/me is where they top up.