Pump.fun Trading Skill
This skill enables trading and launching tokens on Pump.fun through the PumpPortal API.
Commands
Buy Tokens
Buy tokens on Pump.fun by specifying the token mint address and amount.
Usage: INLINECODE0
Examples:
- -
/pump-buy 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 0.1 - Buy 0.1 SOL worth of tokens - INLINECODE2 - Buy with 15% slippage
Sell Tokens
Sell tokens on Pump.fun by specifying the token mint address and amount.
Usage: INLINECODE3
Examples:
- -
/pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 1000000 - Sell 1,000,000 tokens - INLINECODE5 - Sell all tokens
- INLINECODE6 - Sell 50% with 10% slippage
Launch Token
Create and launch a new token on Pump.fun.
Usage: INLINECODE7
Examples:
- -
/pump-launch "My Token" MTK "A revolutionary token" 1 - Launch with 1 SOL dev buy - INLINECODE9 - Launch with default dev buy
Configuration
Required Environment Variables
- -
SOLANA_PRIVATE_KEY - Your Solana wallet private key (base58 encoded)
Optional Environment Variables
- -
SOLANA_RPC_URL - Custom RPC endpoint (defaults to public mainnet) - INLINECODE12 - Priority fee in SOL (default: 0.0005)
- INLINECODE13 - Default slippage percentage (default: 10)
Setup
- 1. Install dependencies:
CODEBLOCK0
- 2. Set your environment variables:
CODEBLOCK1
- 3. (Optional) Configure custom RPC:
CODEBLOCK2
Security Notes
- - Never share your private key
- Use a dedicated trading wallet with limited funds
- Start with small amounts to test
- The skill uses the Local Transaction API for maximum security (transactions are signed locally)
Fees
- - PumpPortal charges a 0.5% fee per trade
- Standard Solana network fees apply
- Priority fees are configurable
Supported Pools
The skill automatically selects the best pool, but supports:
- -
pump - Pump.fun bonding curve - INLINECODE15 - Raydium AMM (for graduated tokens)
- INLINECODE16 - Pump.fun AMM
- INLINECODE17 - Automatic pool selection (default)
Pump.fun 交易技能
此技能可通过 PumpPortal API 在 Pump.fun 上进行代币交易和发行。
命令
购买代币
通过指定代币铸造地址和数量在 Pump.fun 上购买代币。
用法: /pump-buy <铸造地址> [滑点]
示例:
- - /pump-buy 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 0.1 - 购买价值 0.1 SOL 的代币
- /pump-buy 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 0.5 15 - 以 15% 滑点购买
出售代币
通过指定代币铸造地址和数量在 Pump.fun 上出售代币。
用法: /pump-sell <铸造地址> <数量|百分比> [滑点]
示例:
- - /pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 1000000 - 出售 1,000,000 个代币
- /pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 100% - 出售所有代币
- /pump-sell 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 50% 10 - 以 10% 滑点出售 50% 代币
发行代币
在 Pump.fun 上创建并发行新代币。
用法: /pump-launch <名称> <符号> <描述> [开发者购买SOL]
示例:
- - /pump-launch 我的代币 MTK 一种革命性代币 1 - 以 1 SOL 开发者购买量发行
- /pump-launch 酷币 COOL 史上最酷的币 - 以默认开发者购买量发行
配置
必需环境变量
- - SOLANAPRIVATEKEY - 您的 Solana 钱包私钥(base58 编码)
可选环境变量
- - SOLANARPCURL - 自定义 RPC 端点(默认为公共主网)
- PUMPPRIORITYFEE - 优先费用(SOL 单位,默认:0.0005)
- PUMPDEFAULTSLIPPAGE - 默认滑点百分比(默认:10)
设置
- 1. 安装依赖:
bash
cd {baseDir}
npm install
- 2. 设置环境变量:
bash
export SOLANA
PRIVATEKEY=您的base58私钥
- 3. (可选)配置自定义 RPC:
bash
export SOLANA
RPCURL=https://您的-rpc-端点.com
安全说明
- - 切勿分享您的私钥
- 使用资金有限的专用交易钱包
- 从小额开始测试
- 该技能使用本地交易 API 以确保最大安全性(交易在本地签名)
费用
- - PumpPortal 每笔交易收取 0.5% 费用
- 适用标准 Solana 网络费用
- 优先费用可配置
支持的池
该技能自动选择最佳池,但支持以下选项:
- - pump - Pump.fun 联合曲线
- raydium - Raydium AMM(适用于已毕业代币)
- pump-amm - Pump.fun AMM
- auto - 自动选择池(默认)