Logo
New RPC users get 35% off their first monthView the offer
RPC Assistant

Can you recommend Solana RPC services that offer enhanced APIs for NFT data?

Summary

Yes. For Solana NFT data, you need RPC services that go beyond standard JSON-RPC and provide specialized endpoints for metadata, compressed NFTs (cNFTs), and asset indexing. This article explains what to look for, compares provider capabilities, and shows how to evaluate them for your NFT marketplace, wallet, or analytics app.

Quick recommendation: what to check before picking a Solana NFT RPC

If you're building an NFT marketplace, wallet, or analytics dashboard on Solana, standard RPC methods like getTokenAccountsByOwner and getAsset are often not enough. You need enhanced APIs that handle metadata, compressed NFTs (cNFTs), and asset indexing efficiently. Before committing to a provider, verify these five capabilities:

  1. NFT-specific endpoints – Does the provider offer methods like getAsset, getAssetsByOwner, or searchAssets? These are part of the Metaplex Digital Asset Standard (DAS) API and are essential for querying NFT data without heavy client-side processing.
  2. cNFT support – Compressed NFTs are common on Solana. Ensure the provider can index and return cNFT data, including ownership and metadata, without requiring you to decode state compression yourself.
  3. Metadata resolution – Can the provider fetch off-chain metadata (JSON) and return it in a structured format? This saves you from making separate HTTP calls to IPFS or Arweave.
  4. Performance and reliability – NFT-heavy workloads involve many small queries. Look for providers with low latency, high throughput, and clear rate limits that break your app. Check their SLAs and historical uptime.
  5. WebSocket support – For real-time updates (new mints, transfers), you need reliable WebSocket subscriptions. Verify the provider supports wss:// endpoints and handles reconnects gracefully.

For a production-grade solution, consider a managed RPC provider like OnFinality that offers dedicated nodes and enhanced APIs. You can also compare RPC pricing and see which networks are supported on the supported networks page.

Why standard Solana RPC falls short for NFT data

Solana's native JSON-RPC API provides basic methods like getTokenAccountsByOwner and getTokenLargestAccounts, but these return raw token accounts, not NFT metadata. To display an NFT collection, you'd need to:

  • Fetch all token accounts for an owner.
  • Filter for NFTs (supply = 1, decimals = 0).
  • Resolve the mint address to a metadata account.
  • Fetch the metadata JSON from IPFS or Arweave.
  • Handle cNFTs separately using the Bubblegum program.

This process is slow, error-prone, and consumes many RPC calls. Enhanced APIs abstract away this complexity by providing indexed, queryable NFT data.

What are enhanced NFT APIs on Solana?

The most common enhanced API is the Metaplex DAS API, which provides a unified interface for querying both regular and compressed NFTs. Key methods include:

  • getAsset – Fetch a single asset by ID.
  • getAssetsByOwner – Get all assets owned by a wallet.
  • getAssetsByGroup – Get all assets in a collection.
  • searchAssets – Search by attributes, name, or other criteria.

These methods return rich JSON objects with metadata, ownership, and royalties, making it easy to build NFT features.

Some providers also offer proprietary APIs with additional features like:

  • Activity feeds – Track mint, transfer, and burn events.
  • Collection indexing – Pre-indexed collections for faster queries.
  • Analytics endpoints – Aggregated stats like floor price and volume.

How to evaluate Solana RPC providers for NFT workloads

When comparing providers, use a structured evaluation. Here's a table to guide your decision:

Evaluation CriterionWhat to CheckWhy It Matters
NFT API coverageDoes the provider support DAS methods? Which ones?Determines if you can query NFTs efficiently without custom indexing.
cNFT supportCan it return compressed NFT data?cNFTs are widely used; missing support breaks many NFT apps.
Metadata resolutionDoes it fetch off-chain metadata automatically?Saves development time and reduces external HTTP calls.
PerformanceLatency, throughput, and rate limitsNFT apps often make many parallel queries; poor performance degrades UX.
ReliabilityUptime history, SLAs, failoverDowntime means lost revenue and user trust.
WebSocket supportReal-time subscriptions for transfers and mintsNeeded for live updates in marketplaces and wallets.
Pricing modelPay-as-you-go vs. dedicated nodesDedicated nodes offer predictable performance for high-traffic apps.
SupportDocumentation, community, and response timeGood support helps you resolve issues quickly.

Comparing provider types: public, shared, and dedicated

Solana RPC services fall into three categories:

  • Public RPC endpoints – Free but rate-limited and often unreliable. Suitable for development and testing only.
  • Shared RPC services – Managed endpoints shared among many users. Offer better reliability and some enhanced APIs, but may have rate limits and performance variability.
  • Dedicated nodes – A private node or cluster for your app. Provides consistent performance, full API access, and clear rate limits. Ideal for production NFT apps.

OnFinality offers both shared and dedicated node options. With a dedicated Solana node, you get a private endpoint with the full DAS API, WebSocket support, and the ability to scale as your user base grows.

Example: querying NFT data with the DAS API

Here's a simple curl example using the DAS getAssetsByOwner method against the OnFinality public Solana endpoint:

curl https://solana.api.onfinality.io/public \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getAssetsByOwner",
    "params": {
      "ownerAddress": "OWNER_WALLET_ADDRESS",
      "page": 1,
      "limit": 10
    }
  }'

Replace OWNER_WALLET_ADDRESS with a real wallet. The response includes asset details like name, uri, compression, and ownership.

For WebSocket subscriptions, use the wss://solana.api.onfinality.io/public-ws endpoint. Here's a JavaScript example using the ws library:

const WebSocket = require('ws');

const ws = new WebSocket('wss://solana.api.onfinality.io/public-ws');

ws.on('open', () => {
  ws.send(JSON.stringify({
    jsonrpc: '2.0',
    id: 1,
    method: 'programSubscribe',
    params: [
      'METAXXX...', // Metaplex program ID
      { encoding: 'jsonParsed' }
    ]
  }));
});

ws.on('message', (data) => {
  console.log(JSON.parse(data));
});

Common pitfalls when using NFT APIs

  • Assuming all providers support DAS – Not all do. Verify before integrating.
  • Ignoring cNFT support – Many popular collections are compressed. If your provider doesn't handle them, you'll miss data.
  • Not handling rate limits – Even shared RPC services have limits. Implement backoff and retry logic.
  • Overlooking WebSocket reliability – Real-time updates are critical for live apps. Test reconnection behavior.
  • Using public endpoints in production – Public endpoints are often rate-limited and can go down. Use a managed service for production.

How to migrate to a provider with enhanced NFT APIs

If you're already using a basic RPC provider, migrating to one with enhanced APIs is straightforward:

  1. Audit your current API calls – Identify which methods you use and which could be replaced with DAS methods.
  2. Choose a provider – Use the evaluation table above to select a provider that meets your needs.
  3. Update your code – Replace raw token account queries with getAsset or getAssetsByOwner calls.
  4. Test thoroughly – Run your test suite against the new endpoint.
  5. Monitor performance – Track latency and error rates after migration.

Key Takeaways

  • Enhanced NFT APIs like the Metaplex DAS API simplify NFT data access on Solana.
  • Evaluate providers on NFT API coverage, cNFT support, performance, and reliability.
  • Dedicated nodes offer the best performance and flexibility for production NFT apps.
  • OnFinality provides Solana RPC with DAS API support and WebSocket endpoints.
  • Always test your integration against the provider's documentation and endpoints.

Frequently Asked Questions

What is the Metaplex DAS API? The Metaplex Digital Asset Standard (DAS) API is a set of RPC methods for querying NFTs on Solana, including compressed NFTs. It provides methods like getAsset, getAssetsByOwner, and searchAssets.

Do all Solana RPC providers support DAS? No. Support varies. Some providers offer only basic JSON-RPC methods. Check the provider's documentation for DAS method support.

Can I use a public Solana RPC for NFT data? Public endpoints are fine for development, but they often lack DAS support and have rate limits. For production, use a managed service with enhanced APIs.

How do I get started with OnFinality's Solana RPC? Visit the Solana network page for endpoint details and documentation. You can also sign up for an API key to access higher rate limits and dedicated nodes.

What are compressed NFTs (cNFTs)? Compressed NFTs use state compression to reduce storage costs. They are indexed differently than regular NFTs, so you need an API that understands them.

Does OnFinality support WebSocket for Solana? Yes, OnFinality provides WebSocket endpoints for Solana, allowing real-time subscriptions to account and program updates.

How much does OnFinality's Solana RPC cost? Pricing varies based on usage and whether you choose a shared or dedicated node. See the RPC pricing page for details.

Can I migrate my existing NFT app to OnFinality? Yes, migration is straightforward. Update your RPC endpoint and adjust your API calls to use DAS methods if needed. OnFinality's documentation provides examples.

What other networks does OnFinality support? OnFinality supports many networks, including Ethereum, Polygon, BNB Chain, and more. See the supported networks page for the full list.

How do I get support for OnFinality's Solana RPC? You can reach out via the OnFinality website or join the community channels. Documentation is available on the network page.

RPC Knowledge Base

Related RPC details

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started