Practical overview
When it fits
Use it when you are implementing a Python workflow for PumpSwap and want examples connecting RPC pair lookup with a configured buy or sell call.
Who it is for
- Python developers building scripts or command-line utilities for PumpSwap token trades.
- Solana users who want example code for fetching a pair and configuring a buy or sell instruction.
Documented uses
- Fetch a PumpSwap pair address from a token mint through RPC.
- Configure a buy using a SOL input amount or a sell using a percentage.
- Adjust slippage, unit budget and unit price in the example workflow.
Requirements & limits
The repository is public and provides clone-and-use instructions. No license is specified in the available repository information.
- The README specifies solana==0.36.1 and solders==0.23.0.
- The examples require an RPC URL, token mint and base58-formatted private key.
- The README states that devnet is unsupported.
- Buy and sell instruction account indexes differ: fee_config and fee_program are listed at indexes 21 and 22 for buys, and 19 and 20 for sells.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare the documented Python trading examples
Set up the project’s documented prerequisites and configuration for its buy or sell example.
Before you start
- Python environment
- solana==0.36.1 and solders==0.23.0
- A Solana RPC URL, token mint, and private key in base58 string format
Steps
Clone the repository.
Install the specified solana and solders package versions.
Choose example_buy.py or example_sell.py and provide the corresponding RPC URL, token mint, and base58 private-key string.
Set the example’s trade amount or percentage, slippage, unit_budget, and unit_price.
Expected outcome
The example is configured to fetch a PumpSwap pair and call the corresponding buy or sell function.
Guide limitations
- The README says the code does not work on devnet.
- The repository warns that transactions may be dropped with a mainnet RPC and recommends a paid RPC provider.
- No transaction outcome is guaranteed by these setup instructions.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- AL-THE-BOT-FATHER/pump_swap_py · Official homepage title · retained in its source language

