Launch Token on Pump.fun
Learn how to launch tokens on Pump.fun with custom metadata and liquidity
Create and launch tokens on Pump.fun with customizable metadata, social links, and initial liquidity pool settings.
Copy
const result = await agent.methods.launchPumpFunToken(
"Sample Token", // Token name
"SMPL", // Token ticker
"A sample token", // Description
"https://example.com/img", // Image URL
{
twitter: "@sampletoken",
telegram: "t.me/sampletoken",
website: "https://sampletoken.com",
initialLiquiditySOL: 0.1,
slippageBps: 10,
priorityFee: 0.0001
}
);
tokenName
string
Yes
Name of the token (max 32 chars)
tokenTicker
string
Yes
Token symbol (2-10 chars)
description
string
Yes
Token description
imageUrl
string
Yes
URL of token image
options.twitter
string
No
Twitter handle
options.telegram
string
No
Telegram group link
options.website
string
No
Website URL
options.initialLiquiditySOL
number
No
Initial liquidity (min 0.0001)
options.slippageBps
number
No
Slippage tolerance (default: 5)
options.priorityFee
number
No
Priority fee (default: 0.00005)
Copy
"Launch a new meme token called 'Rocket Dog' with the RDOG ticker"
"Create a token on Pump.fun with 0.1 SOL initial liquidity"
"Deploy a new token with Twitter and Telegram links"
"Launch token with custom image and description on Pump.fun"
Copy
// Basic token launch
{
"tokenName": "Rocket Dog",
"tokenTicker": "RDOG",
"description": "To the moon with man's best friend!",
"imageUrl": "https://example.com/rdog.png"
}
// Advanced launch with socials and liquidity
{
"tokenName": "Sample Token",
"tokenTicker": "SMPL",
"description": "A sample token for demonstration",
"imageUrl": "https://example.com/token.png",
"twitter": "@sampletoken",
"telegram": "t.me/sampletoken",
"website": "https://sampletoken.com",
"initialLiquiditySOL": 0.1
}
Copy
import { PingAgentKit } from "ping-agent-kit";
async function launchToken(agent: PingAgentKit) {
try {
const result = await agent.methods.launchPumpFunToken(
"Rocket Dog",
"RDOG",
"The fastest dog-themed token on Solana!",
"https://example.com/rdog.png",
{
twitter: "@rocketdogtoken",
telegram: "t.me/rocketdog",
website: "https://rocketdog.io",
initialLiquiditySOL: 0.1,
slippageBps: 10
}
);
console.log("Token launched:", {
mint: result.mint,
metadata: result.metadataUri,
tx: result.signature
});
return result;
} catch (error) {
console.error("Token launch failed:", error);
throw error;
}
}
Copy
// Successful response
{
status: "success",
signature: "2ZE7Rz...",
mint: "7nxQB...",
metadataUri: "https://arweave.net/...",
message: "Successfully launched token on Pump.fun"
}
// Error response
{
status: "error",
message: "Error message here",
code: "ERROR_CODE"
}
Uploads metadata to IPFS
Creates token mint account
Initializes liquidity pool
Configures trading parameters
Handles token metadata
Manages social links
Copy
try {
const result = await agent.methods.launchPumpFunToken(...);
} catch (error) {
if (error.message.includes("metadata upload")) {
// Handle metadata issues
} else if (error.message.includes("liquidity")) {
// Handle liquidity issues
}
}
Token Setup
Use clear, unique names
Prepare high-quality images
Write compelling descriptions
Verify social links
Liquidity Management
Set appropriate initial liquidity
Consider trading volume
Monitor pool health
Plan liquidity strategy
Transaction Handling
Use appropriate priority fees
Set realistic slippage
Monitor transaction status
Handle timeouts properly
Metadata Management
Use permanent image storage
Format descriptions properly
Include all social links
Verify metadata accuracy
Image Upload
Invalid image format
File too large
Temporary URLs
Missing content type
Transaction Failures
Insufficient SOL
Network congestion
Invalid parameters
RPC timeouts
Metadata Issues
Invalid social links
Description too long
Missing required fields
Format errors
getBalance
: Check SOL balancefetchMetadata
: Get token metadatatrade
: Swap tokensgetTokenData
: Get token information
Last updated