API Documentation
Welcome to the LaunchFun API documentation. Our API provides real-time access to token data, market information, and platform features.
Available Endpoints
All endpoints listed below are relative to the base URL.
GET
/api/tokensFetch real-time market data for featured Solana meme coins from DexScreener.
Response Example
{
"success": true,
"data": [
{
"id": "bonk",
"symbol": "BONK",
"name": "Bonk",
"price": 0.000007741,
"marketCap": 687954919,
"volume24h": 45234567,
"priceChange24h": 5.23
}
]
}GET
/api/launchfun-tokensGet all tokens created on the LaunchFun platform with real-time market data.
Response Example
{
"success": true,
"tokens": [
{
"id": "1",
"name": "LaunchFun",
"symbol": "LAUNCH",
"contractAddress": "67VGj...",
"marketData": {
"price": 0.00001374,
"marketCap": 13740
}
}
]
}GET
/api/sol-priceGet current Solana (SOL) price from CoinGecko.
Response Example
{
"success": true,
"price": 123.45,
"currency": "USD"
}POST
/api/create-coinCreate a new token on the LaunchFun platform.
Request Body
{
"name": "My Token",
"symbol": "MTK",
"description": "A new meme coin",
"imageUrl": "https://...",
"twitter": "https://twitter.com/mytoken",
"telegram": "https://t.me/mytoken",
"website": "https://mytoken.com"
}POST
/api/upload-imageUpload token image to IPFS via Pinata. Expects multipart/form-data.
Response Example
{
"success": true,
"url": "https://gateway.pinata.cloud/ipfs/Qm..."
}Data Sources
- DexScreener: Real-time token prices and volume.
- CoinGecko: SOL price data.
- Solana RPC: On-chain wallet and account data.
- Cloudflare D1: Token metadata storage.
Additional Resources
Note: All endpoints return JSON. Rate limiting applies.