OpenViSTAI · Agents · Blockchain · Crypto
Menu
Exchanges & Trading

Pump Swap Py

Pump Swap Py is a Python library for preparing buy and sell trades on the PumpSwap automated market maker on Solana. Its examples use a Solana RPC client and a keypair, fetch a token pair from its mint, and pass trade settings to buy or sell functions.

Independent OpenViST project profile, based on linked sources.

Pump Swap Py — OpenViST project profile in Exchanges & Trading.
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Clone the repository.

  2. Install the specified solana and solders package versions.

  3. Choose example_buy.py or example_sell.py and provide the corresponding RPC URL, token mint, and base58 private-key string.

  4. 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.
Evidence and transparency

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