-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The liquidityFile is too large. Is there a faster way to get the poolInfo from two tokens? #14
Comments
You are right , did you find any other way to find be poolInfo faster ? |
Hey guys, a valid point. I updated the project to only use the trimmed version. Check the TLDR quick run section as it has the details https://github.com/chainstacklabs/raydium-sdk-swap-example-typescript/blob/main/README.md#tldr-quick-run |
Unsure if this is OS specific or not, I'm using Arch Linux and Node v22.8.0. Looks like the file is just too big for Node.js at >512MiB. In my main project I'm using JSONStream to load the JSON in chunks rather than loading the full file at once. Maybe something similar should be done for the trim script? |
same error on ubuntu 24.04 should re-open this |
Same error for me |
Whenever the swap executes the program will call the following codes to get the
poolInfo
to load the liquidity file. The file is 467MB. Is there a better and faster way to get thepoolInfo
?The text was updated successfully, but these errors were encountered: