Why These APIs
No RPC Required
Our APIs handle all blockchain interactions for you.
No API Key Required
Start building immediately. API keys are optional (for higher rate limits via Portal).
No Upfront Payments
Use via our free and public endpoints.
The Three APIs
| API | Base URL | Purpose |
|---|---|---|
| Ultra Swap | https://lite-api.jup.ag/ultra/v1 | Swap execution - get quotes and execute transactions using your wallet |
| Tokens V2 | https://lite-api.jup.ag/tokens/v2 | Token discovery - search and get token metadata |
| Price V3 | https://lite-api.jup.ag/price/v3 | Pricing - get USD prices for any token |
Common Token Addresses
| Token | Mint Address | Decimals |
|---|---|---|
| SOL | So11111111111111111111111111111111111111112 | 9 |
| USDC | EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v | 6 |
Dependencies
For signing and executing swap transactions, install@solana/web3.js version 1.x:
This guide uses
@solana/web3.js v1. Version 2 has a different API for transaction handling.1. Token Discovery
Search for tokens by symbol, name, or mint address using the Tokens V2 API.Example Response
Example Response
Other useful endpoints:
GET /tag?query=verified- Get all verified tokensGET /toptrending/1h- Get trending tokensGET /recent- Get recently listed tokens
2. Price Fetching
Get USD prices for tokens using the Price V3 API.Example Response
Example Response
See Price V3 API Reference for full response schema.
3. Swap Execution
Execute swaps using the Ultra Swap API with a simple flow:- Get order
- Sign
- Execute
Get a Quote (No Wallet Needed)
Example Response
Example Response
Execute a Swap (Wallet Required)
Add thetaker parameter to get a signable transaction, then sign and submit it.
Example Response
Example Response
Get quote with taker
Execute after signing transaction
Frontend: Using Wallet Adapter
For browser-based apps, use a wallet adapter (e.g., Jupiter Wallet Extension) instead of a Keypair:Need to set up wallet connectivity? See Jupiter Wallet Kit for a plug-and-play solution supporting 20+ wallets.
See Ultra Swap API Reference for full response schemas, error codes, and additional parameters.
4. All Functions Together
Here are all the standalone functions you need. Each function is self-contained and can be used independently.Function Reference
| Function | API | Description |
|---|---|---|
searchTokens(query) | Tokens V2 | Search tokens by name, symbol, or mint |
getVerifiedTokens() | Tokens V2 | Get all verified tokens |
getTrendingTokens(interval) | Tokens V2 | Get trending tokens |
getPrices(mints) | Price V3 | Get USD prices for tokens |
getQuote(input, output, amount) | Ultra | Get swap quote (no wallet needed) |
executeSwap(input, output, amount, wallet) | Ultra | Execute a swap |
getHoldings(walletAddress) | Ultra | Get wallet token balances |
getTokenWarnings(mints) | Ultra | Get security warnings for tokens |
