raydium-io / raydium-sdk-V2

Open-source Typescript SDK for Raydium
GNU General Public License v3.0
87 stars 49 forks source link

Interesting behavior: raydium.api.fetchPoolById cannot return poolInfo while raydium.liquidity.getPoolInfoFromRpc can #39

Closed TechSkieur closed 2 months ago

TechSkieur commented 2 months ago

This is tested on Mainnet. I am trying to monitor new pool created.

If using await raydium.liquidity.getPoolInfoFromRpc({poolId}), pool info can be fetched; If using await raydium.api.fetchPoolById({ ids: poolId }), return NULL. I could not figure out why...Pool id is: EgqAuwQnSW6M6ZFHxTj5f8mbLuv2Rm2WUaZ88M3KWN98

check screenshot ![Uploading Screenshot 2024-09-27 at 22.42.40.png…]()

TechSkieur commented 2 months ago

@cruzshia any thought? :)

cruzshia commented 2 months ago

Api has some data delay so needs minutes to sync data, if you need new pool data please get from rpc.

TechSkieur commented 2 months ago

@cruzshia got it! I guess so as well, now got confirmation from your side:) thanks a lot bro!