Practical overview
When it fits
Use it when building C# software that needs pump.fun or PumpSwap transaction construction, trade routing, state access, quote calculations, or pump.fun trade and migration monitoring.
Who it is for
- C#/.NET developers building Solana trading bots or custom trading applications.
- Developers creating trade-monitoring services or quote and pool-analysis tools.
- Teams that need pump.fun or PumpSwap instructions within their own software.
Documented uses
- Read coin state and calculate a prospective buy quote.
- Build or submit buy and sell transactions across pump.fun versions and PumpSwap routes.
- Monitor pump.fun curve trades and coin migrations through a WebSocket stream.
- Calculate bonding-curve or constant-product pool values for analysis.
- Construct transaction instructions for custom applications.
Requirements & limits
The repository is public and identifies the project as open source under the MIT license. The documented transaction flow uses a caller-provided Solana RPC client and signs locally with an account key.
- The client routes migrated coins through PumpSwap and selects pump.fun v1 or v2 according to the quote mint.
- Transaction signing is local; sending uses the RPC client supplied by the application.
- TradeStream currently subscribes to the pump.fun program only, so it does not stream PumpSwap fills.
- The README reports that WebSocket notification delivery varied by provider in the author’s tests.
- The SDK is C#/.NET software intended for integration into developer-built applications, rather than a standalone trading interface.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Buy a coin through the SDK
Read coin state, quote a purchase, and submit a buy through the SDK.
Before you start
- A C#/.NET project using Solgrid.Pumpfun.
- A Solana RPC client endpoint.
- A signing account whose secret key is read locally from a file.
- The coin mint to trade.
Steps
Create an RPC client with
ClientFactory.GetClientand constructPumpClientwith that client and an account loaded from a secret-key file.Retrieve the coin state with
GetCoinStateAsync(mint).Get a token quote with
QuoteBuyTokensAsync(state, amountIn); the example uses100_000_000for 0.1 SOL.Call
BuyAsync(mint, amountIn, slippageBps: 500, cuPrice: 500_000)to submit the purchase; the SDK selects v1 or v2 and routes migrated coins through PumpSwap.
Expected outcome
The SDK returns a success flag, error value, and transaction signature from the buy call; it handles program selection and migration routing.
Guide limitations
- The example does not document how to install or configure the SDK or obtain an RPC endpoint and signing key.
- Transactions are signed locally and sent through the RPC client provided by the caller.
Stream pump.fun trades and migration events
Subscribe to the documented trade and migration events using the SDK's streaming client.
Before you start
- A C#/.NET project using Solgrid.Pumpfun.
- A WebSocket RPC endpoint.
Steps
Create a streaming client with
ClientFactory.GetStreamingClientusing the WebSocket endpoint.Construct a
TradeStreamfrom the streaming client.Register handlers for
TradeandMigrationevents to process trade details and migration pool information.Start the stream with
StartAsync().
Expected outcome
The stream reports pump.fun curve trades and coin migrations to the registered handlers.
Guide limitations
- The stream subscribes only to the pump program; PumpSwap fill events are not delivered because the second subscription is not wired, although an
AmmSwapEventdecoder exists. - The README reports that one Alchemy WebSocket endpoint confirmed subscriptions but did not deliver notifications in its tests; it recommends testing the WebSocket provider.
Compare options for DEX swap integration
These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.
| Project | Documented purpose | Platform | Access and requirements |
|---|---|---|---|
| Solgrid.pumpfun | Read coin state and calculate a prospective buy quote. | Server | The repository is public and identifies the project as open source under the MIT license. The documented transaction flow uses a caller-provided Solana RPC client and signs locally with an account key. |
| VIA SDK | Find swap or bridge routes using source and destination chains, token addresses, and an amount. | Web | The package is installed through npm and the documented client uses an API key. The README says the default key is limited to one request per second per IP and directs developers seeking higher limits to contact VIA. |
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 October 2026
- Original website title
- solgrid-development/Solgrid.Pumpfun · Official homepage title · retained in its source language

