{"repo":"rckprtr/pumpdotfun-sdk","free":true,"listed":false,"github":"https://github.com/rckprtr/pumpdotfun-sdk","clone":"git clone https://github.com/rckprtr/pumpdotfun-sdk.git","description":"PumpDotFun SDK","language":"TypeScript","stars":819,"topics":["pumpfun","sdk","pump-fun","fun","pump"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"PumpFunSDK README Important Never click links in this repository leaving github, never click links in Issues, don't run code that others post without reading it, this software is provided \"as is,\" without warranty. Overview The PumpDotFunSDK is designed to interact with the Pump.fun decentralized application. It provides methods for creating, buying, and selling tokens using the Solana blockchain. The SDK handles the necessary transactions and interactions with the Pump.fun program. Installation npm i pumpdotfun-sdk Usage Example First you need to create a .env file and set your RPC URL like in the .env.example Then you need to fund an account with atleast 0.004 SOL that is generated when running the command below npx ts-node example/basic/index.ts PumpDotFunSDK Class The PumpDotFunSDK class provides methods to interact with the PumpFun protocol. Below are the method signatures and their descriptions. createAndBuy - Creates a new token and buys it. - Parameters : - creator : The keypair of the token creator. - mint : The keypair of the mint account. - createTokenMetadata : Metadata for the token. - buyAmountSol : Amount of SOL to buy. - slippageBasisPoints : Slippage in basis points (default: 500). - priorityFees : Priority fees (optional). - commitment : Commitment level (default: DEFAULT COMMITMENT). - finality : Finality level (default: DEFAULT FINALITY). - Returns : A promise that resolves to a TransactionResult . buy - Buys a specified amount of tokens. - Parameters : - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/rckprtr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rckprtr/pumpdotfun-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}