JavaScript/Node.js Integration Guide

Learn how to integrate the PumpFun API into your JavaScript and Node.js projects.

Environment Setup

  1. Node.js Installation

    Ensure you have Node.js version 14 or higher installed. You can download it from nodejs.org.

  2. Package Dependencies

    Install the required packages:

    npm install axios web3 dotenv
  3. Environment Variables

    Create a .env file in your project root and add your API key:

    PUMPFUN_API_KEY=your_api_key_here
  4. API Key Configuration

    Load the API key in your JavaScript file:

    require('dotenv').config();
    const apiKey = process.env.PUMPFUN_API_KEY;