tags: documentation

Dappio SDK

Raydium

SDK integrating with Raydium protocol

import { <methods below>} from "@Dappio-ts/Raydium"

getAllAmmPool

Retreive all Raydium amm pool information

getAllFarm

Retreive all Raydium staking fram information

getAllLedgers

Retreive all staking information of certain user wallet

getLedgerInfo

Parse the user stake info account

getAssociatedLedgerAccount

Get associated user stake info account by farmId & wallet pubkey

swap

Get the swap instruction

addLiquidity

Get add Liquidity instruction

makeDepositInstruction

Get the stake instruction. (Stake into certain farm)
Input params: FarmDepositInstructionParams

makeWithdrawInstruction

Get the unstake instruction. (withdraw from certain farm)
Input params: FarmWithdrawInstructionParams

updateAllFarmToken

To update all FarmInfo class information. The reason to use it is that there will only neccessory data when using "getAllFarms". If more detailed data needed, this method is needed.

Saber

SDK integrating with Saber protocol

import { <methods below>} from "@Dappio-ts/Saber"

getAllSwap

Get all Saber amm pool information

getSwap

Get only one Saber amm pool information by its address

getAllMiner

Get all QURARRY staking info of certain user wallet

createDepositTx

Create a transaction to add liquidity.

createWithdrawTx

create a transaction to withdraw tokens from liquidity

depositToFarm

Create a transaction to stake. (Stake into certain QURARRY farm)

withdrawFromMiner

Create a transaction to unstake. (Withdraw from certain QURARRY farm)