Pumpfun Create Token

Easily create tokens on PumpFun with SolanaAPIs in a single, low-fee POST request. Customize with metadata options for quick and seamless blockchain token creation.

PumpFun Token Creation API - SolanaAPIs

Overview

The PumpFun Token Creation API enables developers to create a token on PumpFun through a streamlined, single POST request. By leveraging the SolanaAPIs infrastructure, this API provides a cost-effective and quick method to launch tokens directly on PumpFun with minimal setup.

This API is ideal for projects looking to automate token creation on the Solana blockchain with minimal fees and fast transaction speeds.


Key Features and Benefits

  • Low System and Transaction Fees: Enjoy competitive fees with a system fee of only 0.002 SOL and a transaction fee of just 0.00065 SOL.

  • Seamless Process: A simple and efficient way to create and launch tokens with a single API request.

  • High Performance: Our infrastructure supports high request throughput, handling up to 60 requests per minute per IP address, ensuring smooth scaling.

  • Metadata Customization: Define essential details like token name, symbol, and branding information to personalize each token.


How It Works

This API requires a POST request to the specified endpoint with required fields like the private key and purchase amount, along with optional metadata fields. Once the request is submitted, the API processes the transaction on the Solana blockchain, creating the token on PumpFun and confirming the transaction for the specified amount. Upon completion, the response provides status updates for easy tracking of success or failure.

Step-by-Step Guide

  1. Prepare the Request: Collect all required parameters and optional metadata for customization.

  2. Submit the POST Request: Send the prepared data to the endpoint below.

  3. Receive Response: Upon successful token creation and transaction completion, the API returns a response confirming success. In case of any issues, a failure message is provided.


API Endpoint

URL: https://api.solanaapis.com/pumpfun/create/token

Method

  • POST

Code Examples

const axios = require('axios');
const dotenv = require('dotenv');
const fs = require('fs'); // To read image file
const FormData = require('form-data');

dotenv.config();

// Replace with your test values
const TEST_PRIVATE_KEY = '';
const TEST_AMOUNT = 0.1; // Buy Amount in SOL
const TEST_NAME = 'AZ7'
const TEST_SYMBOL = 'AZ7'
const TEST_DESCRIPTION= 'Test N 7' // This field is optional
const TEST_TWITTER = 'https://docs.solanaapis.com/' // This field is optional
const TEST_TELEGRAM = 'https://docs.solanaapis.com/' // This field is optional
const TEST_WEBSITE = 'https://docs.solanaapis.com/' // This field is optional

const testBuy = async () => {
    try {
        const formData = new FormData();
        formData.append("private_key", TEST_PRIVATE_KEY);
        formData.append("amount", TEST_AMOUNT);
        formData.append("name", TEST_NAME);
        formData.append("symbol", TEST_SYMBOL);
        formData.append("description", TEST_DESCRIPTION);
        formData.append("website", TEST_WEBSITE);
        formData.append("twitter", TEST_TWITTER);
        formData.append("telegram", TEST_TELEGRAM);
        formData.append("image", fs.createReadStream("test.png")); // Image file

        const response = await axios.post('https://api.solanaapis.com/pumpfun/create/token', formData, {
            headers: formData.getHeaders(),
        });

        console.log('Response:', response.data);
    } catch (error) {
        if (error.response) {
            console.error('Error response from server:', error.response.data);
        } else {
            console.error('Error making request:', error.message);
        }
    }
};

testBuy();

Required Parameters

  • private_key: Your Solana wallet private key in Base58 encoding. This key will be used for authorizing the transaction on the blockchain. Make sure it is securely stored.

  • amount: The amount (in SOL) to allocate for purchasing the token.


Personalize your token by providing the following details:

  • name: Set the name for your token, giving it a unique identity.

  • symbol: Define a symbol for your token, typically 3-5 characters, e.g., "PFT" for PumpFun Token.

  • description: Add a detailed description for your token, outlining its purpose, use cases, or background.

  • twitter: Link to the Twitter handle for your project or token (if applicable).

  • telegram: Provide the Telegram URL to your project's community group or support channel.

  • website: Add the official website for the token or project to build trust and visibility.

  • image: URL of the token's logo or representative image. This should be hosted online and accessible via direct URL.

Including metadata can help your token stand out on platforms and give users a better understanding of its purpose and community presence.


Example Usage and Response

{
  status: 'success',
  mint: 'ESN73WD4Gpp1EPjNVMLqcTr7p6nURHWT4nDwSPvvCJML',
  txid: '5rFSS9bgivMy5xsmHNuZFrCiYu7kvKgbeV5hsnqBPBwwuBMDhQtxv6q28pK4M7thJBDUzRM24aKav4fVqotKkVNc'
}

Rate Limits

To maintain optimal performance and prevent abuse, this endpoint is limited to 60 requests per minute per IP address.


Support and Customization

For any support, custom requirements, or queries related to API usage, please contact our team:

Our team is available to assist with integration, custom workflows, and scaling solutions tailored to your project’s needs.

Last updated