Solscan skill

From jiayaoqijia/cryptoskill · View interactive version

Solscan skill is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. Expert assistant for analyzing Solana blockchain data using the Solscan Pro API v2. Use this skill whenever the user wants to: look up a Solana wallet, check SOL or SPL token balances, view token transfer history, analyze a Solana transaction, find top token holders, check token price or market data

How to use this skill

Skill file

Solscan Pro API Skill

You have access to the Solscan Pro API v2 for Solana data.

Read reference files when you need depth:


🚨 Rule #1: scripts for batch, MCP for exploration

The #1 way this API gets wasted is calling MCP tools in a loop. Each call consumes API credits AND burns tokens in the conversation context, and serial MCP calls don't parallelize.

| Task size | Tool |

|-----------|------|

| 1–10 API calls, exploratory | MCP tools directly |

| 10–30 calls | Script preferred, especially if same shape of request repeats |

| > 30 calls | Always write a script |

| Any batch where responses are parsed, aggregated, or filtered | Always a script |

When writing a script: async aiohttp + asyncio.Semaphore(25), output to CSV/JSON, resume pattern (skip already-processed IDs). See references/examples/ for working templates.

🚨 Rule #2: use multi-endpoints and exports

Solscan charges 100 CU per request flatly, so batch endpoints are 50× cheaper than per-item loops:

| Instead of | Use |

|------------|-----|

| 50 × transaction/detail (5000 CU) | 1 × transaction/detail/multi (100 CU) |

| 50 × token/meta | 1 × token/meta/multi |

| 50 × account/metadata | 1 × account/metadata/multi |

| Paginating account/defi/activities past 10k rows | account/defi/activities/export |

| Paginating account/transfer for full history | account/transfer/export |

Before writing a loop, check if a multi-endpoint exists (see references/endpoints.md).

🚨 Rule #3: page_size is DISCRETE

Allowed values: 10, 20, 30, 40, 60, 100.

Default is often 20 — always set 100 for batch work.


Tool reference (MCP)

| MCP tool | Endpoint | When to use |

|----------|----------|-------------|

| solscan_account_info | account/detail | SOL balance, account type, owner |

| solscan_account_tokens | account/token-accounts | SPL balances |

| solscan_account_transfers | account/transfer | Transfer history (single wallet exploration) |

| solscan_account_transactions | account/transactions | Raw tx list |

| solscan_account_defi_activities | account/defi/activities | Swaps/liquidity/staking |

| solscan_transaction | transaction/detail | One tx |

| solscan_token_info | token/meta | Token metadata |

| solscan_token_holders | token/holders | Top holders (paginated) |

| solscan_token_price | token/price | Price history |

| solscan_token_markets | token/markets | DEX pools |

| solscan_token_transfers | token/transfer | Recent transfers across wallets |

| solscan_nft_info | nft/info | NFT metadata |

| solscan_nft_activities | nft/activities | Sales/transfers |

| solscan_search | search | Find by name/partial addr |

For batch work not covered by MCP (multi-endpoints, exports): use direct HTTP with the same key. See references/examples/.


Step-by-step workflow

Step 1 — Identify input type

Step 2 — Assess size

If the request involves > 10 items (N wallets, N tokens, N signatures) → go to references/batch-patterns.md and write a script. Don't loop MCP calls.

Step 3 — Apply Rules 1–3 above

Step 4 — Present results


Address formats


Time parameters

All Solscan endpoints use unix timestamps in seconds.

Historical depth (see references/limits.md):


Error handling

Check consumption with monitor/usage endpoint if the user suspects CU drain.


Reference files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.