Skip to main content

Overview

Verifies whether a token exists on Solana. This endpoint is useful for validating token addresses before attempting operations.

URL Parameters

string
required
The Solana token mint address to verify

Response

boolean
Whether the token exists on-chain
string
The token address that was checked (echoed back)
object
Full asset information from Helius API (only present if token exists)
string
Error message if verification failed (optional)

Token Exists Response

Token Not Found Response

API Error Response

HTTP Status Codes

Request processed successfully. Check the exists field to determine if token was found.
This occurs when the address parameter is missing or empty.
The server is missing required configuration to verify tokens.

Caching Behavior

This endpoint implements permanent caching for performance:
  • Exists = true: Cached permanently (tokens can’t be “un-created”)
  • Exists = false: Cached permanently only for confirmed “RecordNotFound” errors
  • API errors: Not cached, allowing retries for transient issues
  • Cache key: Token address
  • First request: Calls Helius API (~200-500ms)
  • Subsequent requests: Instant response from memory cache
  • Cache hits: Logged to server console for monitoring
  • Memory usage: Minimal overhead per cached token

Error Handling

The endpoint handles various error scenarios:
Helius Response: Token definitively doesn’t exist
This result is cached permanently.
Helius Response: Network, rate limiting, or service issues
This result is NOT cached, allowing retries.
Helius Response: Valid response but unexpected structure
This result is NOT cached.
Client/Network: Connection issues, timeouts
Internal errors are not exposed to prevent information disclosure.

Rate Limiting

This endpoint is subject to rate limiting:
  • 8 requests per IP per 2-minute window
  • Returns HTTP 429 when limit exceeded
  • Note: Cached responses don’t count against rate limits

Use Cases

Verify tokens before attempting operations:
Check if user-provided addresses are valid:
Verify tokens before checking claim eligibility:

Asset Information

When a token exists, the response includes rich metadata:
  • Name, symbol, description
  • Image/logo URLs
  • JSON metadata URI
  • Creator information
  • Total supply
  • Decimal places
  • Token program (Token Program vs Token-2022)
  • Mint authority status
  • Compression status
  • NFT collection info (if applicable)
  • Transfer restrictions
  • Extensions (if Token-2022)