
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
A powerful and user-friendly SDK for interacting with the PumpSwap Decentralized Exchange (DEX). This SDK provides essential functionality for trading, liquidity provision, and price checking on the PumpSwap protocol.
npm install pumpswap-sdk
# or
yarn add pumpswap-sdk
First, set up your client with a desired RPC endpoint and network cluster.
import { createPumpSwapClient, rpcConnection } from 'pumpswap'
import { mainnet } from 'pumpswap/networks'
const client = createPumpSwapClient({
network: mainnet,
transport: rpcConnection('https://api.mainnet-beta.solana.com'),
})
In a production app, it is highly recommended to use a dedicated RPC provider (Helius, GenesysGo, QuickNode, etc).
Now that you have a client set up, you can interact with the PumpSwap protocol and consume actions!
// Example: Get token price
const tokenPrice = await client.getTokenPrice({
token: 'SOL'
})
// Example: Perform a token swap
const swapResult = await client.swap({
tokenIn: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC
tokenOut: 'So11111111111111111111111111111111111111112', // SOL
amountIn: '10.0',
slippageBps: 50, // 0.5%
})
// Example: Add liquidity
const liquidityResult = await client.addLiquidity({
tokenA: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC
tokenB: 'So11111111111111111111111111111111111111112', // SOL
amountA: '100.0',
amountB: '1.0',
})
For detailed documentation and examples, please refer to our documentation.
git clone https://github.com/yourusername/pumpswap-sdk.git
cd pumpswap-sdk
yarn install
# or
npm install
yarn build
# or
npm run build
yarn test
# or
npm test
We welcome contributions! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you discover a security vulnerability, please send an e-mail to security@pumpswap.com.
For support and questions, please join our Discord community or open an issue on GitHub.
FAQs
SDK for PumpSwap DEX
The npm package pumpswap receives a total of 114 weekly downloads. As such, pumpswap popularity was classified as not popular.
We found that pumpswap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.