Closed TechSkieur closed 2 months ago
api doesn't support devent
@cruzshia thanks for checking. But in fact I tried with mainnet, check my code sample above, still not return desired results...could you explain a bit more?
page in FetchPoolParams should start from 1 not 0
@cruzshia thanks! And one more question, if wanna retrieve Pool list for devnet, is there a way I can do that by calling some other methods or?
for api no, not supported. if you really want to get devent pool list, you can take a reference code here: https://github.com/raydium-io/raydium-sdk-V2-demo/blob/master/src/trade/routeSwap.ts#L41 by calling rpc. you should use a paid rpc to get those info cuz the data is really huge and just some basic info,
@cruzshia thanks! You explained me everything I need!
Sample Code:
Tried function getPoolList, getTokenInfo, fetchPoolByMints, all not working, return null or zero data, which is not right. But if using function getTokenList, then results can be returned. Not sure why is that and potentially where goes wrong? Tested also with devnet