Skip to main content
1 of 2

pubkey.toBase58 is not a function

I'm trying to create swapAmm function on Raydium
I get targetPoolInfo by formatAmmKeysById() and get poolKeys by jsonInfo2PoolKeys()

But when I'm trying to run Liquidity.makeSwapInstructionSimple() always failes
With Error: pubkey.toBase58 is not a function I'm thinking that something wrong with poolkeys

Do you knok, how can I solve it?