pump-admin-ops
Admin and authority operations for the Pump protocol — set coin creator, update token incentives, set IDL authority, claim…
Solana development patterns used in the Pump SDK — Anchor IDL-based program interaction, SPL Token and Token-2022 management, transaction construction with instruction composition, RPC batching, and cross-program coordination.
$ npx -y skills add nirholas/pump-fun-sdk --skill pump-solana-dev --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pump-solana-devContext preview
The summary Claude sees to decide when to auto-load this skill.
Solana development patterns used in the Pump SDK — Anchor IDL-based program interaction, SPL Token and Token-2022 management, transaction construction with instruction composition, RPC batching, and cross-program coordination.
name: pump-solana-dev
description: "Solana development patterns used in the Pump SDK — Anchor IDL-based program interaction, SPL Token and Token-2022 management, transaction construction with instruction composition, RPC batching, and cross-program coordination."
metadata:
openclaw:
homepage: https://github.com/nirholas/pump-fun-sdk
requires:
env:
- SOLANA_RPC_URLApply Solana development patterns used throughout the Pump SDK: Anchor IDL-based program interaction, SPL Token and Token-2022 account management, transaction construction with instruction composition, RPC batching, and cross-program account coordination.
import { Program, AnchorProvider } from '@coral-xyz/anchor';
function getPumpProgram(connection: Connection): Program<Pump> {
const provider = new AnchorProvider(
connection,
{ publicKey: PublicKey.default, signTransaction: async (tx) => tx, signAllTransactions: async (txs) => txs },
{ commitment: 'confirmed' }
);
return new Program(pumpIdl as Pump, PUMP_PROGRAM_ID, provider);
}**Offline pattern:** Uses a dummy provider (no wallet) for building instructions. Actual signing happens in the caller's code.
const ix = await program.methods
.buy(amount, maxSolCost, flags)
.accountsStrict({
global: GLOBAL_PDA,
bondingCurve: bondingCurvePda(mint),
user: userPublicKey,
// ... all required accounts
})
.remainingAccounts(additionalAccounts)
.instruction();const [pda, bump] = PublicKey.findProgramAddressSync(
[Buffer.from("bonding-curve"), mint.toBuffer()],
PUMP_PROGRAM_ID
);const accounts = await connection.getMultipleAccountsInfo([
bondingCurvePda(mint),
GLOBAL_PDA,
FEE_CONFIG_PDA,
]);The SDK supports both SPL Token and Token-2022:
const bondingCurve = program.coder.accounts.decode('bondingCurve', accountInfo.data);Nullable variants handle missing accounts:
const bc = decodeBondingCurveNullable(accountInfo); // returns null instead of throwing
const result = await connection.simulateTransaction(tx, [signer]); // Parse return data from simulation logs
All amounts use `BN` for arbitrary-precision integer arithmetic:
const fee = amount.mul(new BN(feeBps)).div(new BN(10000)); const ceilFee = amount.mul(new BN(feeBps)).add(new BN(9999)).div(new BN(10000));
Open-source framework for building PumpFun Telegram bots on Solana. Claim monitors, channel feeds, group trackers, whale alerts — build your own or use ours. PumpKit Web App + Documentation
Admin and authority operations for the Pump protocol — set coin creator, update token incentives, set IDL authority, claim…
AI agent integration layer for the Pump SDK — agent instruction files, .well-known discovery, LLM context documents, 15+ skill…
Constant-product AMM bonding curve math for Pump token pricing — buy/sell quoting, fee-aware calculations, market cap…
Build and release pipeline for the Pump SDK — tsup TypeScript builds, Cargo release profiles, semantic release with commitizen,…
Read-only query methods for PumpFun claims — unclaimed token rewards, creator vault balances, volume accumulators, distributable…
Configure and distribute creator fees to multiple shareholders using the PumpFees program with BPS-based share allocation, admin…