Skip to main content

Solana API

Query Solana wallet balances and token holdings, verify Agentbot token holder benefits for baseFM, fetch live SOL market data, and save per-user RPC endpoint configurations.

Get SOL price

Returns the current SOL price in USD along with 24-hour market data. Data is sourced from CoinGecko and cached for 60 seconds.

Response

Response fields

Fields return null when CoinGecko does not include them in the response. Price data is cached and refreshed every 60 seconds.

Errors


Look up wallet

Returns the SOL balance, token holdings, and account metadata for a Solana address. Requires session authentication. The endpoint uses the user’s saved RPC configuration (see save RPC configuration) or falls back to the platform default.

Query parameters

Response

Response fields

Recognized tokens

The following token mints are resolved to human-readable symbols automatically: Tokens not in this list display a truncated mint address as the symbol.

Errors


Verify holder benefits

Checks the Agentbot token balance for a Solana wallet address and returns the holder’s baseFM benefit tier. No authentication required.

Query parameters

Response

Response fields

Benefit tiers

A wallet qualifies for all tiers at or below its balance. For example, a wallet with 15,000 tokens qualifies for both Holder and Builder benefits. The benefits array only includes tiers the wallet meets; the tiers array always returns all three tiers.

Errors


Get RPC configuration

Returns the Solana RPC URL for the authenticated user, along with the default fallback URL and the configuration source. Requires session authentication.

Response

Response fields

Errors


Save RPC configuration

Saves or updates the custom Solana RPC URL for the authenticated user. Only HTTPS URLs are accepted. Requires session authentication.

Request body

Example request

Response

Errors