SDK
SDK intergration of pumpmax protocol
PUMPMAX NPM SDK IS HERE , IT'S FULLY OPEN-SOURCE
How to use it ?
Simple . start install it via
npm i @pumplend/pumplend-sdkAnd import it to your project .
const sdk = require("@pumplend/pumplend-sdk")Or
import { Pumplend } from "@pumplend/pumplend-sdk";Init the class first .
const lend = new Pumplend("devnet");Now you can generate the transaction you wants now . For example
const tx = await lend.leverage_raydium(
connection,
amount * LAMPORTS_PER_SOL,
token,
publicKey,
publicKey,
);Function method support
stakeStake SOL into protocol
withdrawWithdraw SOL from protocol
borrowDeposite token and borrow out SOL from contract
repayRepay SOL and take token back
liquidate_pumpFrom borrow account : Close the position of user token in pump.fun
From other account : liquidate the user token position in pump.fun
liquidate_raydiumFrom borrow account : Close the position of user token in raydium
From other account : liquidate the user token position in raydium
Pump.fun Functions
pump_buyBuy Tokens in pump.fun
pump_sellSell Tokens in pump.fun
mintNew Token Mint via pump.fun
Data fetch support
UserBorrowDataThe borrow data information
PoolStakingDataCurrently staking information of pool
UserStakingDataStaking data of users
SystemConfigDataProtocol base states and currently status
pumplend_culcuate_max_borrowGet max borrw able amount with tokenamount input
pumplend_culcuate_max_leverageGet max leverage able amount with SOLamount input
Pump.fun Datas
BondingCurveDetails information of Bonding Curve
Last updated