raydium-io / raydium-sdk-V2-demo

Open-source Typescript SDK demos
50 stars 31 forks source link

fetchPoolById returns null in the development environment #21

Closed AriesOpenAi closed 4 months ago

AriesOpenAi commented 4 months ago

hello,The cluster in my config.ts has been changed to devent, but the pool id code using devent const poolId = '2qreVPpKdbFmsnNLjLUukcLP4E6oSMB3QxKH9uhLN2Qg'

//RAY-USDC pool const data = (await raydium.api.fetchPoolById({ ids: poolId })) as any returns null, what is the reason?

thanks