repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | description: Launch new tokens on Pump.fun directly via the Pump SDK |
| #3 | --- |
| #4 | |
| #5 | # PumpFun Token Launcher |
| #6 | |
| #7 | Launch new tokens on the Pump.fun protocol using the native Pump SDK integrated into SolanaOS. |
| #8 | |
| #9 | ## Prerequisites |
| #10 | |
| #11 | - Solana wallet configured (`solanaos birth`) |
| #12 | - `HELIUS_RPC_URL` or `SOLANA_RPC_URL` set in vault |
| #13 | - Sufficient SOL balance for transaction fees (~0.05 SOL) |
| #14 | |
| #15 | ## How It Works |
| #16 | |
| #17 | The Pump SDK provides offline instruction builders for token creation. This skill uses the `PumpSdk.createV2Instruction()` method to build a token creation transaction. |
| #18 | |
| #19 | ### Token Creation Flow |
| #20 | |
| #21 | 1. Generate a new mint keypair |
| #22 | 2. Upload metadata JSON to Arweave/IPFS (name, symbol, image, description) |
| #23 | 3. Build the `createV2` instruction via `PUMP_SDK.createV2Instruction()` |
| #24 | 4. Optionally build a combined `createV2AndBuy` to purchase initial supply |
| #25 | 5. Sign and send the transaction |
| #26 | |
| #27 | ### Example Usage |
| #28 | |
| #29 | ```typescript |
| #30 | import { Keypair, Connection } from "@solana/web3.js"; |
| #31 | import { PUMP_SDK, OnlinePumpSdk, getBuyTokenAmountFromSolAmount } from "@nirholas/pump-sdk"; |
| #32 | |
| #33 | const connection = new Connection(process.env.HELIUS_RPC_URL!); |
| #34 | const mintKeypair = Keypair.generate(); |
| #35 | const creator = wallet.publicKey; |
| #36 | |
| #37 | // Create token |
| #38 | const createIx = await PUMP_SDK.createV2Instruction({ |
| #39 | mint: mintKeypair.publicKey, |
| #40 | name: "My Token", |
| #41 | symbol: "MYTKN", |
| #42 | uri: "https://arweave.net/metadata.json", |
| #43 | creator, |
| #44 | user: creator, |
| #45 | mayhemMode: false, |
| #46 | }); |
| #47 | |
| #48 | // Or create + buy in one transaction |
| #49 | const sdk = new OnlinePumpSdk(connection); |
| #50 | const global = await sdk.fetchGlobal(); |
| #51 | const ixs = await PUMP_SDK.createV2AndBuyInstructions({ |
| #52 | global, |
| #53 | mint: mintKeypair.publicKey, |
| #54 | name: "My Token", |
| #55 | symbol: "MYTKN", |
| #56 | uri: "https://arweave.net/metadata.json", |
| #57 | creator, |
| #58 | user: creator, |
| #59 | amount: new BN(1_000_000_000), // tokens to buy |
| #60 | solAmount: new BN(100_000_000), // 0.1 SOL |
| #61 | mayhemMode: false, |
| #62 | }); |
| #63 | ``` |
| #64 | |
| #65 | ### Mayhem Mode |
| #66 | |
| #67 | Set `mayhemMode: true` for tokens with randomized bonding curve parameters. This creates unpredictable pricing dynamics. |
| #68 | |
| #69 | ### Safety Notes |
| #70 | |
| #71 | - **Always test on devnet first** — never launch tokens with real funds without testing |
| #72 | - **Use mock keypairs for development** — never commit real wallet keys |
| #73 | - **Token creation is irreversible** — once created, the bonding curve is live |
| #74 | |
| #75 | ## On-Chain Programs |
| #76 | |
| #77 | | Program | Address | |
| #78 | |---------|---------| |
| #79 | | Pump | `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P` | |
| #80 | | PumpAMM | `pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA` | |
| #81 | | PumpFees | `pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ` | |
| #82 |