You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for devent you should fetch pool keys from rpc, here's the example
const data = await raydium.cpmm.getPoolInfoFromRpc(lockData.poolId.toBase58())
const { execute, transaction } = await const { execute, transaction } = await raydium.cpmm.harvestLockLp({
poolInfo,
nftMint: new PublicKey('lock nft mint'), // locked nft mint
lpFeeAmount: new BN(99999999),
poolKeys: data.poolKeys,
txVersion,
// optional: add transfer sol to tip account instruction. e.g sent tip to jito
// txTipConfig: {
// address: new PublicKey('96gYZGLnJYVFmbjzopPSU6QiEV5fGqZNyN9nmNhvrZU5'),
// amount: new BN(10000000), // 0.01 sol
// },
})
raydium.cpmm.harvestLockLp can not find keypools at devnet
The text was updated successfully, but these errors were encountered: