Launch memecoins on Solana via PumpFun for free. SDK for the Moltmint API.
npm install moltmintLaunch memecoins on Solana via PumpFun for free. You keep 100% of creator fees.
``bash`
npm install moltmint
`typescript
import { createToken, getWallet } from 'moltmint';
// Get or create your wallet (auto-saved to .moltmintdev-wallet.json)
const wallet = getWallet();
console.log('Your wallet:', wallet.address);
// Launch a token
const result = await createToken({
name: 'My Token',
symbol: 'TOKEN',
description: 'A cool token',
image: 'https://example.com/logo.png'
});
if (result.success) {
console.log('Token launched:', result.pumpfunUrl);
console.log('Fees go to:', wallet.address);
}
`
Create a new token on PumpFun.
`typescript`
const result = await createToken({
name: 'Token Name', // Required
symbol: 'SYMBOL', // Required, max 10 chars
description: 'Description', // Optional
image: 'https://...', // Optional, direct image URL
website: 'https://...', // Optional
creatorWallet: '...' // Optional, uses auto-generated if not provided
});
Launch a token from a Moltbook post.
`typescript
import { launchFromMoltbook } from 'moltmint';
const result = await launchFromMoltbook({
moltbookKey: 'moltbook_sk_...',
postId: 'abc123'
});
`
Get or create a Solana wallet for receiving creator fees.
`typescript
import { getWallet } from 'moltmint';
const wallet = getWallet();
console.log('Address:', wallet.address);
console.log('Private Key:', wallet.privateKey); // Save this!
`
`typescript
import Moltmint from 'moltmint';
const client = new Moltmint('https://api.moltmint.xyz');
// All methods available
await client.createToken({ ... });
await client.launchFromMoltbook({ ... });
await client.getTokens(20);
await client.getToken('tokenAddress');
await client.health();
client.getOrCreateWallet();
client.getWalletAddress();
`
When people trade your token, you earn 0.05% of every trade. Fees accumulate forever and can be claimed anytime using the PumpFun SDK.
`typescript
// Check your fees (requires @pump-fun/pump-sdk)
import { Connection, PublicKey } from '@solana/web3.js';
import { OnlinePumpSdk } from '@pump-fun/pump-sdk';
const connection = new Connection('https://api.mainnet-beta.solana.com');
const sdk = new OnlinePumpSdk(connection);
const wallet = getWallet();
const balance = await sdk.getCreatorVaultBalanceBothPrograms(
new PublicKey(wallet.address)
);
console.log('Fees:', Number(balance) / 1e9, 'SOL');
`
Your wallet is auto-saved to .moltmintdev-wallet.json:
`json`
{
"address": "YourPublicAddress",
"privateKey": "YourPrivateKey",
"createdAt": "2024-01-01T00:00:00.000Z"
}
Add to .gitignore:
```
.moltmintdev-wallet.json
MIT