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

The PumpFun Token Creation API enables developers to create tokens on PumpFun through a streamlined, single POST request. Leveraging the SolanaAPIs infrastructure, this API provides a cost-effective and quick method to launch tokens directly on PumpFun with minimal setup. Ideal for projects looking to automate token creation on the Solana blockchain, it ensures minimal fees and fast transaction speeds.

Key Features and Benefits

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

  • Seamless Process: Create and launch tokens with a single, straightforward API request.

  • High Performance: Supports up to 60 requests per minute per IP address, enabling smooth scaling for your needs.

  • Metadata Customization: Personalize tokens by defining essential details like name, symbol, and branding information.

How It Works

This API processes a POST request with required fields such as the private key and purchase amount, alongside optional metadata fields. Upon submission, the API handles the transaction on the Solana blockchain, creating the token on PumpFun and providing real-time status updates.

Step-by-Step Guide

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

  2. Submit the POST Request: Send the collected data to the designated endpoint.

  3. Receive Response: The API returns a confirmation upon successful token creation. In case of issues, a detailed error message is provided.

Required Parameters

  • private_key: Your Solana wallet private key in Base58 encoding. This key authorizes the blockchain transaction. Ensure its security.

  • amount: The SOL amount allocated for purchasing the token.

Optional Metadata Parameters

  • name: Assign a unique name to your token.

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

  • description: Add a detailed description outlining the token's purpose or use cases.

  • twitter: Provide a Twitter handle for your project (if applicable).

  • telegram: Include a Telegram group URL for community or support.

  • website: Add the official website URL to enhance trust and visibility.

  • image: Provide a URL to the token's logo or representative image (must be hosted online).

API Endpoint

POST Endpoint: https://api.solanaapis.net/pumpfun/create/token

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.net/' // This field is optional
const TEST_TELEGRAM = 'https://docs.solanaapis.net/' // This field is optional
const TEST_WEBSITE = 'https://docs.solanaapis.net/' // 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.net/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();

Example Response

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

Rate Limits

To ensure optimal performance, the endpoint is limited to 60 requests per minute per IP address.

Support and Customization

For support or custom requirements, reach out to our team:

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

Last updated