This repository provides tools and scripts for programmatically launching pump.fun
tokens. The project is set up using TypeScript and includes essential modules to facilitate token creation and management.
- Programmatically launch
pump.fun
tokens. - Utilities for managing token configurations.
- Easy integration into existing projects.
Ensure you have the following installed:
- Node.js (version 14 or later)
- npm
- TypeScript
To install the package, clone the repository and install the dependencies:
git clone https://github.com/bilix-software/pf-token-launcher.git
cd pf-token-launcher
npm install
To compile and run the scripts:
-
Configure your environment variables as instructed.
-
Compile the TypeScript files,
npx tsc
-
Run the compiled JavaScript file:
node example.js
The CLI tool allows you to launch a token on Solana and automatically sell your share of the tokens once the token reaches a specific market cap. It integrates with pump.fun and helps automate the trading process.
- Launch a token using your deployer private key, token name, symbol, and metadata URI.
- Monitor the token's market cap in real-time.
- Automatically sell your share of the tokens when the market cap reaches your target.
Flag | Alias | Type | Description |
---|---|---|---|
--privateKey |
-p |
string | Your base58-encoded private key for deploying the token. (Required) |
--uri |
-u |
string | The metadata URI for your token (image, description, etc.). (Required) |
--symbol |
-s |
string | The symbol of your token (e.g., "PUMP" ). (Required) |
--name |
-n |
string | The name of your token (e.g., "PumpToken" ). (Required) |
--marketCap |
-m |
number | The market cap threshold at which your tokens will be automatically sold. (Required) |
--slippage |
-sl |
number | Slippage tolerance as a decimal fraction (default: 0.25 = 25%). Determines how much price movement you’re willing to accept before the sell order fails. |
--pollInterval |
-pi |
number | Time interval (in milliseconds) to check the market cap (default: 60000ms = 1 minute). |
Run the following command in your terminal:
node cli.ts \
--privateKey "your_base58_private_key" \
--uri "your_token_metadata_uri" \
--symbol "SYM" \
--name "TokenName" \
--marketCap 2000000 \
--slippage 0.1 \
--pollInterval 30000
Example Breakdown:
- Launches a token with the provided name, symbol, and metadata.
- Monitors its market cap every 30 seconds.
- Automatically sells your tokens once the market cap reaches $2,000,000.
- Allows up to 10% slippage (meaning you accept a 10% lower price than expected before canceling the trade).
Slippage refers to the difference between the expected price of your trade and the actual price you receive.
- Lower slippage (e.g., 0.01 or 1%) → You get a better price, but your trade may fail if the price moves.
- Higher slippage (e.g., 0.25 or 25%) → Your trade is more likely to execute, but you might get a worse price.
- Default is 0.25 (25%), meaning you accept a price drop of up to 25% to ensure the trade completes.