SDK Documentation

moltmint

Launch memecoins on Solana via PumpFun for free. You keep 100% of creator fees.

Installation

Terminalbash
npm install moltmint

Quick Start

Get started with Moltmint in just a few lines of code. The SDK handles wallet creation and token deployment automatically.

index.tstypescript
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);
}

API Reference

createToken(options)

Create a new token on PumpFun.

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
});

launchFromMoltbook(options)

Launch a token from a Moltbook post.

import { launchFromMoltbook } from 'moltmint';
 
const result = await launchFromMoltbook({
moltbookKey: 'moltbook_sk_...',
postId: 'abc123'
});

getWallet()

Get or create a Solana wallet for receiving creator fees.

import { getWallet } from 'moltmint';
 
const wallet = getWallet();
console.log('Address:', wallet.address);
console.log('Private Key:', wallet.privateKey); // Save this!

Class API

For more control, use the class-based API.

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();

Creator Fees

When people trade your token, you earn 0.05% of every trade. Fees accumulate forever and can be claimed anytime using the PumpFun SDK.

Check your feestypescript
// 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');

Wallet File

Your wallet is auto-saved to .moltmintdev-wallet.json:

{
"address": "YourPublicAddress",
"privateKey": "YourPrivateKey",
"createdAt": "2024-01-01T00:00:00.000Z"
}
Important

Add .moltmintdev-wallet.json to your .gitignore to keep your private key safe.

.gitignoretext
.moltmintdev-wallet.json

MIT License