Probably best free Solana API for wallet balances, SPL token holdings, and complete transaction history. DeFi position tracking included. If you’re building anything on Solana that needs wallet data, whether that’s a portfolio tracker, a DeFi dashboard, a tax tool, or an AI assistant, the CoinStats Solana API is a good fit for most use cases. One endpoint returns native SOL balances, all SPL token holdings, and full transaction history for any Solana address. DeFi positions across protocols like Raydium, Orca, Jupiter, and Marinade are detected automatically, so you don’t need to integrate each protocol separately. The alternative is running your own Solana RPC node, parsing raw transaction data, maintaining a token registry, and building indexing infrastructure for DeFi protocols. CoinStats handles all of that. You get clean, structured JSON with current prices, USD valuations, and 24h changes included in every response. The same Solana wallet data is also available through CoinStats MCP Server, so AI agents and LLM-powered tools can query Solana wallets directly without custom API calls.Documentation Index
Fetch the complete documentation index at: https://coinstats.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
What You Get
Complete SPL Token Support
All SPL tokens in a wallet returned in a single call with current prices, market data, and 24h changes.
Native SOL Balance
SOL balance with real-time USD valuation, BTC price, and volume data.
Full Transaction History
Every transaction with detailed metadata: amounts, timestamps, token identifiers, and USD values.
DeFi Position Detection
Staking, lending, and LP positions across Solana DeFi protocols detected per wallet automatically.
Multi-Wallet Queries
Query multiple Solana wallets in a single request for aggregated portfolio views.
Real-Time Pricing
Current market prices, 24h change percentages, and volume for every token in the response.
Why This Matters for Solana Developers
Solana’s architecture makes wallet data harder to work with than most chains. Transactions are packed into blocks at high throughput, token accounts are separate from the main wallet account, and DeFi interactions span dozens of programs with different data formats. Building a reliable wallet data pipeline from scratch means running an RPC node (or paying for a premium one), parsing instruction data for each DeFi protocol, and maintaining a token metadata registry. CoinStats API abstracts all of this. You send a wallet address, and the response comes back with every token, every balance, current prices, and DeFi positions already resolved. The data is the same infrastructure that powers the CoinStats app used by over 1M people every month.Get Wallet Balance
Retrieve all tokens and SOL balance for a Solana wallet:Example Response
Get Transaction History
Retrieve complete transaction history for a Solana wallet:/wallet/transactions.
Transaction data includes token transfers, DeFi protocol interactions (swaps, LP deposits/withdrawals, staking), program invocations, and native SOL transfers. Each record has a timestamp and the token amounts involved, which is what tax tools need for cost-basis calculations.
Sync Transactions
Before retrieving transaction data, sync the wallet to ensure up-to-date information:Multiple Wallets
Query multiple Solana wallets in a single request:Credit Costs at a Glance
| Endpoint | Credits | Description |
|---|---|---|
| Wallet balance | 40 | All tokens + SOL balance for one address |
| Transaction history | 30 | Paginated transaction list |
| Transaction sync | 50 | Index latest transactions before querying |
| Multi-wallet query | 30 per wallet | Transactions for multiple addresses |
What You Can Build With Solana Wallet Data
DeFi Portfolio Tracking
Solana’s DeFi ecosystem spans Raydium, Orca, Jupiter, Marinade, Drift, Mango, and dozens of other protocols. Each protocol has its own program structure and account layout, making it difficult to aggregate DeFi exposure from raw on-chain data. The CoinStats Solana API detects DeFi positions automatically per wallet address, so you don’t need to integrate each protocol separately. Build dashboards that show a user’s staking rewards alongside LP positions, yield farming returns, and token balances, all from a single API call. The response normalizes everything into the same format: token, amount, current price, 24h change. This means your frontend code doesn’t need protocol-specific rendering logic.Token Portfolio Analysis
For portfolio tracking apps, the balance endpoint returns everything you need in one call: token amounts, current USD values, 24h price changes, and market cap rankings. Combined with the transaction history endpoint, you can calculate profit/loss, average buy prices, and holding period returns for each SPL token. A typical integration flow: call the balance endpoint to get current holdings, call the transaction history endpoint to get the buy/sell history, then calculate PnL by comparing current prices to average cost basis. The API provides USD values for each token, so you don’t need a separate price feed.Transaction Monitoring and Tax Reporting
The transaction history endpoint returns every transaction a wallet has made, including token transfers, DeFi interactions, staking rewards, and program invocations. Each transaction includes timestamps and token identifiers, giving tax tools the raw data needed for cost-basis calculations without requiring users to connect directly to Solana RPC nodes. For tax reporting, the key data points are: when a token was acquired, at what price, when it was sold or transferred, and at what price. The CoinStats API provides all of this. The transaction sync step ensures you capture the latest activity, including any DeFi yield that has been claimed or compounded.Wallet Explorers and Address Lookup Tools
If you’re building a Solana block explorer or address lookup tool, the balance endpoint gives you a complete snapshot of any wallet’s holdings. Unlike raw RPC calls that return account data in binary format, the CoinStats API response includes human-readable token names, symbols, prices, and image URLs. This means you can render a full wallet view directly from the API response.AI-Powered Solana Assistants
Through CoinStats MCP Server, AI agents can look up any Solana wallet balance, check token holdings, and retrieve transaction history using natural language queries. An AI assistant can answer questions like “What’s in this Solana wallet?” or “How much SOL does this address hold?” by querying the MCP Server directly. This is useful for building chatbots, copilot features, research tools, or any product where an LLM needs structured Solana data. The MCP Server wraps the same endpoints documented on this page, so the data is identical whether you use the REST API or the MCP interface.Solana vs. Other Chains
If your application needs wallet data beyond Solana, the CoinStats API uses the same endpoint format and response structure across all supported chains. The same code that queries a Solana wallet can query an Ethereum address, a Bitcoin xpub, or a Cardano wallet by changing theconnectionId parameter. See Ethereum & EVM Chains page, Bitcoin Wallet Integration page, or Multi-Chain Support page for chain-specific documentation.
Getting Started
- Sign up at CoinStats API dashboard and generate an API key
- Make your first balance request with the cURL example above
- Explore the full Solana endpoint in API Reference
Common Solana Addresses
For testing and development:| Type | Address | Description |
|---|---|---|
| Exchange | 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU | Sample exchange wallet |
| DeFi User | 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM | Active DeFi participant |