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.
- 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.
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.
- Node.js (version 14 or higher)
- npm (Node package manager)
-
Clone the repository:
git clone https://github.com/ratudijah/pumpfun-api.git
-
Navigate to the project directory:
cd pumpfun-api -
Install the dependencies:
npm install
After installation, you can start using the bot. You can find the latest releases and download the necessary files from the Releases section.
To run the bot, use the following command:
node index.jsnode index.js --mint YOUR_MINT_ADDRESS --amount YOUR_TOKEN_AMOUNT --slippage YOUR_SLIPPAGE --tip YOUR_TIP_AMOUNTReplace YOUR_MINT_ADDRESS, YOUR_TOKEN_AMOUNT, YOUR_SLIPPAGE, and YOUR_TIP_AMOUNT with your desired values.
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.
{
"defaultMint": "YOUR_DEFAULT_MINT_ADDRESS",
"defaultSlippage": 0.5,
"defaultTip": 0.01
}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.
We welcome contributions to the PumpFun API bot! If you would like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
Please ensure your code follows the existing style and includes tests where applicable.
This project is licensed under the MIT License. See the LICENSE file for details.
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.
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.
For more details and to stay updated, visit the Releases section.