How al-the-bot-father/pump_fun_py works
pump_fun_py is a Python client library for buying and selling pump.fun tokens through Solana RPC. Users configure an RPC client and keypair, then invoke the buy or sell example; the library reads bonding-curve state, calculates trade amounts, builds and submits a transaction, and checks its confirmation. The README also documents slippage and compute-unit fee settings. The excerpts show the curve parsing and transaction-building responsibilities; SOURCE INDEX references establish imports for some unsampled calls, so those edges are cited there.
Main entry points: pump_fun.py Buy and sell · bonding_curve.py Curve state and pricing · example_buy.py Buy example · example_sell.py Sell example
Components 8
Trade entrypoints
- Buy example
pump_fun_py/example_buy.py - Sell example
pump_fun_py/example_sell.py
Trade execution
- Buy and sell
pump_fun_py/pump_fun.py
Curve and support
- Curve state and pricing
pump_fun_py/bonding_curve.py - Balance and confirmation
pump_fun_py/utils.py - Program accounts
pump_fun_py/constants.py
Other components
- Library user
- Solana RPC
Connections 11
- Library user → Buy example: runs buy
README.md - Library user → Sell example: runs sell
README.md - Buy example → Buy and sell: calls buy
pump_fun_py/example_buy.py - Sell example → Buy and sell: calls sell
pump_fun_py/example_sell.py - Buy and sell → Curve state and pricing: reads curve
pump_fun_py/pump_fun.py - Buy and sell → Balance and confirmation: uses helpers
pump_fun_py/pump_fun.py - Buy and sell → Program accounts: uses addresses
pump_fun_py/pump_fun.py - Curve state and pricing → Program accounts: uses program ID
pump_fun_py/bonding_curve.py - Curve state and pricing → Solana RPC: reads account
pump_fun_py/bonding_curve.py - Buy and sell → Solana RPC: submits transaction
pump_fun_py/pump_fun.py - Balance and confirmation → Solana RPC: checks balance and status
pump_fun_py/utils.py