How to integrate
How to Integrate
The Wallet Tracker returns complete trading data for any wallet across Solana, BNB Chain and Base β profile, period stats, recent trades and a per-token breakdown. One endpoint works for all chains and all wallet types (KOL, Smart Money, Whale).
A full working Next.js demo is available on GitHub: π github.com/CabalSpy/Wallet-Tracker-Demo
Important β tracked wallets only
β οΈ The Wallet Tracker only works for wallets that are already in our system.
We track a curated set of KOL, Smart Money and Whale wallets across Solana, BNB and Base. Arbitrary wallet addresses that are not in our database will return a
404 β Wallet not founderror.The leaderboard is the source of truth. Every wallet that appears in any leaderboard endpoint can be queried with the Wallet Tracker. If a wallet is not in the leaderboard, it cannot be tracked.
This means the intended integration flow is always:
Fetch the leaderboard β get a list of tracked wallets with their
wallet_addressCall the Wallet Tracker with one of those addresses β get full trading data
You cannot use this endpoint as a general-purpose blockchain explorer. It is scoped exclusively to the wallets that CabalSpy monitors in real time.
How it works
Get a
wallet_addressfrom any leaderboard endpointPass it to
/api/wallet/trackerwith a periodThe chain is detected automatically. You can optionally pass
&chain=SOL,&chain=BNBor&chain=BASEto force a specific chain β recommended when linking from a leaderboard so wallets that exist on multiple chains are shown correctly.
Step 1 β Get wallet addresses from the leaderboard
All leaderboard responses contain a wallet_address field. Use any of these endpoints as your data source:
SOL
KOL
GET /api/stats/leaderboard
SOL
Smart Money
GET /api/stats/Smart_leaderboard
BNB
KOL
GET /api/stats/leaderboard_bnb
BNB
Smart Money
GET /api/stats/SmartBnb_leaderboard
Base
KOL
GET /api/stats/leaderboard_base
Base
Smart Money
GET /api/stats/SmartBase_leaderboard
All leaderboard endpoints accept a period parameter (6h, 1d, 7d, 30d).
Step 2 β Call the Wallet Tracker
Pass the wallet_address from the leaderboard directly as the wallet parameter.
Solana KOL wallet
BNB KOL wallet
Base Smart Money wallet
Step 3 β Use the response
The response always has the same four fields regardless of chain:
profile
Identity and metadata for the wallet. Use chain and currency to know which blockchain was detected and which unit to display values in.
Image URL: The
image_urlfield contains only the filename. Prependhttps://cabalspy.xyz/images/to get the full URL. Example:cented.pngβhttps://cabalspy.xyz/images/cented.png
period_stats
Aggregated buy/sell volume and PNL for the requested period. All values are in the wallet's native currency (SOL, BNB or ETH).
pnl = sell - buy. pnl_percent = (sell - buy) / buy Γ 100.
recent_trades
Last 30 transactions, sorted newest first. The value field is always in the native currency of the chain.
token_overview
Last 30 tokens traded, sorted by most recent activity. Contains per-token PNL for the requested period.
invested = total native currency spent buying this token in the period.
sold = total received from selling.
held, bag_pct and supply_pct reflect the current open position β these are 0 until new transactions come in after the first API call.
Supported periods
6h
Last 6 hours
1d
Last 24 hours (default)
7d
Last 7 days
30d
Last 30 days
Chain & currency reference
Chain
Wallet format
currency in response
Solana
base58 (~44 chars)
SOL
BNB
0x...
BNB
Base
0x...
ETH
The chain is detected automatically. However, if a wallet exists on multiple chains (e.g. a trader active on both BNB and Base), pass &chain=BNB or &chain=BASE to get the correct data. This is especially important when linking from a leaderboard β always pass the chain the user was browsing. If no chain is passed, the API falls back to auto-detection.
Next.js integration example
The GitHub demo shows a complete production-ready integration:
Leaderboard with SOL, BNB and Base support
Wallet popup that opens when clicking any trader
Correct currency display per chain
Activity feed and token overview tabs
Last updated