Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

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

Main Moralis Page

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.MethodDescriptionAPI ReferenceURL
1searchTokensSearch tokensMethod Documentationhttps://deep-index.moralis.io/api/v2.2/tokens/search

Token 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.MethodDescriptionAPI ReferenceURL
1getFilteredTokensGet filtered tokensMethod Documentationhttps://deep-index.moralis.io/api/v2.2/discovery/tokens

Token Prices & Charts

Token Prices and 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.MethodDescriptionAPI ReferenceURL
1getTokenPriceGet token priceMethod Documentationhttps://solana-gateway.moralis.io/token/:network/:address/price
2getCandleSticksGet OHLCV candlesticksMethod Documentationhttps://solana-gateway.moralis.io/token/:network/pairs/:pairAddress/ohlcv

Token Metadata

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.MethodDescriptionAPI ReferenceURL
1getTokenMetadataGet token metadataMethod Documentationhttps://solana-gateway.moralis.io/token/:network/:address/metadata

Token Pairs & Liquidity

Token Pairs and 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.MethodDescriptionAPI ReferenceURL
1getTokenPairsGet token pairsMethod Documentationhttps://solana-gateway.moralis.io/token/:network/:address/pairs
2getTokenPairStatsGet pair statisticsMethod Documentationhttps://solana-gateway.moralis.io/token/:network/pairs/:pairAddress/stats
3getAggregatedTokenPairStatsGet aggregated statsMethod Documentationhttps://solana-gateway.moralis.io/token/:network/:address/pairs/stats

Token Swaps

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.MethodDescriptionAPI ReferenceURL
1getSwapsByPairAddressGet swaps by pairMethod Documentationhttps://solana-gateway.moralis.io/token/:network/pairs/:pairAddress/swaps
2getSwapsByWalletAddressGet swaps by walletMethod Documentationhttps://solana-gateway.moralis.io/account/:network/:walletAddress/swaps
3getSwapsByTokenAddressGet swaps by tokenMethod Documentationhttps://solana-gateway.moralis.io/token/:network/:tokenAddress/swaps

TradingView Token Chart Widget Integration

Token Price Chart Widget Embed

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.MethodDescriptionAPI ReferenceURL
1getSnipersByPairAddressGet snipers by pairMethod Documentationhttps://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.MethodDescriptionAPI ReferenceURL
1balanceGet native balanceMethod Documentationhttps://solana-gateway.moralis.io/account/:network/:address/balance
2getSPLGet token balancesMethod Documentationhttps://solana-gateway.moralis.io/account/:network/:address/tokens
3getPortfolioGet portfolio dataMethod Documentationhttps://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.MethodDescriptionAPI ReferenceURL
1getNFTsGet NFTs by walletMethod Documentationhttps://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.MethodDescriptionAPI ReferenceURL
1getNFTsGet NFTs by walletMethod Documentationhttps://solana-gateway.moralis.io/account/:network/:address/nft
2getNFTMetadataGet NFT metadataMethod Documentationhttps://solana-gateway.moralis.io/nft/:network/:address/metadata