-
Notifications
You must be signed in to change notification settings - Fork 141
Fetching new pool keys faster #73
Comments
Hi 👋 Yes. Check out https://github.com/raydium-io/raydium-sdk-V1-demo/blob/master/src/subNewAmmPool.ts You can subscribe to AMM pool creation and generate the pool key structures much faster than pulling You'll need to refactor, but hopefully it points in the right direction. |
I already saw that but when trying to implement it, this does not run (when running the function it just skips it) rpcConnInfo.on("data", (data) => { I think it is possible the subscribe() to not function as it should |
That code is assuming you're connected to a supported Geyser gRPC node. You need to refactor it to work with a normal WS / HTTP node if you're not getting events. |
Can you guide me a little bit more about how I am supposed to refactor it? |
Hearing it's possible to fetch pool keys with 0 rpc calls and only using a token mint address, is there anything online/opensource that shows how to do this? Or is it just a false rumor |
Did you manage to solve the problem @Stickmen1 . I have got to the same issue and could need some help. |
do you got it working faster ? |
Did you find a solution?? |
I was able to create a script that's an hybrid of SDK V1 and V2. It correctly constructs a ApiPoolInfoV4 instance of any pool using the Pool ID. (Gotten from the Raydium API v3) |
Yes, unfortunately I cannot share due to competition issues and the time it took, but if you research hard enough you'll figure it out. |
Hello,
Is there a way to get the pool keys information based on provided quoteMint and baseMint without having to load the whole raydium mainnnet.json since that takes a lot of time. Or for example to load the mainnet.json and update it real-time so that the pool keys are real-time updated?
The text was updated successfully, but these errors were encountered: