raydium-io / raydium-sdk-V2-demo

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

Raydium fetchPoolById return null for exist poolId (devnet) #16

Closed dexweb3 closed 4 months ago

dexweb3 commented 4 months ago

https://github.com/raydium-io/raydium-sdk-V2-demo/blob/15b3620f8efdb6567b258c387c42008dd7e1ce3a/src/amm/swap.ts#L11

Pool creation tx: https://explorer.solana.com/tx/4URxQpz9ByTutypYAgTKftJsaT2N2iUmcypadFVhA3Dhuu1ogHCnzbaQJPk9ycDAPAB4AWFCXHhwVEaQ3HXZsh4c?cluster=devnet

Pool: https://explorer.solana.com/address/7HtQNPDxxsKUsDUq6GiryFcsUyufcgnfHqWPWnB3XFG8?cluster=devnet

PoolId: 7HtQNPDxxsKUsDUq6GiryFcsUyufcgnfHqWPWnB3XFG8

raydium.api.fetchPoolById return NULL at response image

Is it require any adoptation for devnet?

cruzshia commented 4 months ago

our api doesn't support devent pool data at this moment and still don't have schedule to support it. if you want to try swap, recommend to use small amount on mainnet to test.