Solana API Overview
Introduction
Moralis provides enterprise-grade APIs and analytics for the Solana ecosystem, powering moralis.com's terminal and processing millions of queries daily. This documentation showcases our comprehensive API suite that enables developers to build sophisticated trading and analytics platforms with institutional-grade data.
Moralis.com Terminal
API Coverage
Token APIs: Our Token APIs bring complete token discovery and analysis capabilities. This includes universal token search, trending token detection, detailed metadata, price tracking, pair analytics, swap monitoring etc. These power features like moralis.com's universal search bar, trending section, and DEX analytics.
Wallet APIs: Our Wallet APIs enable comprehensive wallet analysis and portfolio tracking. From native SOL balances to SPL token holdings, complete portfolio valuations to transaction history - these endpoints power moralis.com's wallet analytics and portfolio tracking features.
NFT APIs: Our NFT APIs provide complete NFT portfolio and metadata capabilities. Track NFT holdings, access detailed collection data, and monitor ownership history through our endpoints.
Price APIs: Our Price APIs deliver professional-grade market data through endpoints for real-time token prices and detailed OHLCV candlestick data. These power moralis.com's TradingView charts and price analytics features, supporting all token types including pump fun tokens.
Whether you're building a trading terminal, portfolio tracker, or market analytics platform, our APIs provide the data infrastructure you need, as demonstrated by moralis.com's powerful Solana terminal.
Token API
Token Search
Powers the main search bar on moralis.com, enabling instant token lookup by contract address, name, or symbol. Used by thousands of traders daily on moralis.com to discover and analyze new tokens through the universal search bar.
- Search by address/name/symbol
- Real-time autocompletion
- Instant price data
- Market information display
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | searchTokens | Search tokens | Method Documentation | https://deep-index.moralis.io/api/v2.2/tokens/search |
Token Discovery & Trending
Analysis system behind moralis.com's trending section, highlighting tokens showing significant market activity. Featured prominently on the dashboard, helping traders identify potential opportunities through real-time metric analysis.
- Volume spike detection
- Holder growth tracking
- Price momentum analysis
- Liquidity monitoring
- Security scoring
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | getFilteredTokens | Get filtered tokens | Method Documentation | https://deep-index.moralis.io/api/v2.2/discovery/tokens |
Token Prices & Charts
Enterprise-grade charting through TradingView integration and raw OHLCV data. Powers all price analysis on moralis.com with support for all token types including pump fun tokens.
- Real-time OHLCV data
- TradingView widget integration
- Multiple timeframes
- Technical indicators
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | getTokenPrice | Get token price | Method Documentation | https://solana-gateway.moralis.io/token/:network/:address/price |
2 | getCandleSticks | Get OHLCV candlesticks | Method Documentation | https://solana-gateway.moralis.io/token/:network/pairs/:pairAddress/ohlcv |
Token Metadata
Access comprehensive token information and metadata for any Solana token. Used throughout moralis.com to provide detailed token insights.
- Basic token data
- Market metrics
- Contract details
- Supply information
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | getTokenMetadata | Get token metadata | Method Documentation | https://solana-gateway.moralis.io/token/:network/:address/metadata |
Token Pairs & Liquidity
Monitor market depth, pair statistics, and trading activity. Used throughout moralis.com's token pair pages to provide detailed insights into liquidity pools and market activity.
- Pair analytics
- Liquidity tracking
- Volume analysis
- Market statistics
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | getTokenPairs | Get token pairs | Method Documentation | https://solana-gateway.moralis.io/token/:network/:address/pairs |
2 | getTokenPairStats | Get pair statistics | Method Documentation | https://solana-gateway.moralis.io/token/:network/pairs/:pairAddress/stats |
3 | getAggregatedTokenPairStats | Get aggregated stats | Method Documentation | https://solana-gateway.moralis.io/token/:network/:address/pairs/stats |
Token Swaps
Track token swaps and trading activity. Featured in moralis.com's swap analysis sections for monitoring market movements.
- Pair-based monitoring
- Wallet swap tracking
- Historical analysis
- Volume tracking
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | getSwapsByPairAddress | Get swaps by pair | Method Documentation | https://solana-gateway.moralis.io/token/:network/pairs/:pairAddress/swaps |
2 | getSwapsByWalletAddress | Get swaps by wallet | Method Documentation | https://solana-gateway.moralis.io/account/:network/:walletAddress/swaps |
3 | getSwapsByTokenAddress | Get swaps by token | Method Documentation | https://solana-gateway.moralis.io/token/:network/:tokenAddress/swaps |
TradingView Token Chart Widget Integration
Embed professional-grade trading charts in your application with our TradingView widget integration. The same charts powering moralis.com's trading terminal can be easily integrated into any platform, with comprehensive token pair support including:
- Standard token pairs
- Pump fun tokens
- Prebonded pump fun tokens
- Custom token pairs
Token Snipers
Monitor sniper activity on token pairs.
- Sniper detection
- Trading pattern analysis
- Volume tracking
- Market maker monitoring
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | getSnipersByPairAddress | Get snipers by pair | Method Documentation | https://solana-gateway.moralis.io/token/:network/pairs/:pairAddress/snipers |
Wallet API
Wallet Overview
Complete wallet analytics capabilities for tracking balances, holdings, and portfolio data.
- Native balance tracking
- Token holdings
- Portfolio valuation
- Transaction monitoring
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | balance | Get native balance | Method Documentation | https://solana-gateway.moralis.io/account/:network/:address/balance |
2 | getSPL | Get token balances | Method Documentation | https://solana-gateway.moralis.io/account/:network/:address/tokens |
3 | getPortfolio | Get portfolio data | Method Documentation | https://solana-gateway.moralis.io/account/:network/:address/portfolio |
Wallet NFTs
Track NFT holdings for any wallet address.
- NFT portfolio tracking
- Collection analysis
- Metadata access
- Ownership history
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | getNFTs | Get NFTs by wallet | Method Documentation | https://solana-gateway.moralis.io/account/:network/:address/nft |
NFT API
NFT Data
Comprehensive NFT metadata and collection analytics.
- Collection data
- Token metadata
- Ownership tracking
- Market analysis
Related APIs:
No. | Method | Description | API Reference | URL |
---|---|---|---|---|
1 | getNFTs | Get NFTs by wallet | Method Documentation | https://solana-gateway.moralis.io/account/:network/:address/nft |
2 | getNFTMetadata | Get NFT metadata | Method Documentation | https://solana-gateway.moralis.io/nft/:network/:address/metadata |