Skip to main content

Welcome to the PumpFun API

Let's discover how to integrate your code with the PumpFun API by Lander Labs.

Join our Telegram group for announcements and support.

Getting Started

Get started by creating a new application in any language you like.

You will need a language capable of executing http calls to a RESTFUL API.

The PumpFun API provides many different ways of interacting with the platform, depending on your preferences. Let's check a quick example.

Basic examples

async function createToken() {
try {
const pumpfunApi = axios.create({
baseURL: 'https://pumpfun.landerlabs.xyz',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
});

const response = await pumpfunApi.post('/api/v1/token/create', {
// sample request body
walletPrivateKey: "<wallet private key base58 encoded>",
name: "Forged Common",
symbol: "FORGE",
description: "An attempt at forging by the legendary blacksmith.",
devBuyAmountSol: 0.1,
// an image url could be provided instead of the base64 encoded image bytes
// imageUrl: "https://example.com/image.png",
imageFileBase64: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
imageFilename: "image.png",
// the devnet flag is optional, it will default to false if not provided
devNet: true
});

console.log('Response:', response.data);
} catch (error) {
console.error('Error making request:', error.response.data);
}
}


createToken();

Example response:

{
"status": "success",
"message": "Token created successfully",
"mintPublicKey": "4AXfwLFZZmxA6Vsch3DAeFhrPB6q7HDL9SyWg3maFnwA",
"mintPrivateKey": "<base58 encoded private key of the token account>",
"devPublicKey": "2cJksRdG5hgzQGAYd36SiDf6kYvymGePS443rQ6fSpC5",
"devPrivateKey": "<base58 encoded private key of the dev account>",
"pumpUrl": "https://pump.fun/coin/4AXfwLFZZmxA6Vsch3DAeFhrPB6q7HDL9SyWg3maFnwA"
}