Martin Endrst
Martin Endrst
You need to first get `LiquidityPoolKeys` for your pool - either by parsing the https://api.raydium.io/v2/sdk/liquidity/mainnet.json and using `jsonInfo2PoolKeys` function from the sdk or by calling `Liquidity.fetchAllPoolKeys` and finding your pool....
Yes there is unfortunately some delay between pool being created and it being available in `mainnet.json`. You can listen for new pools, the best way is probably to use solana's...
Here's a gist of example new raydium pool listener, it parses the transactions and fetches pool keys for new pools https://gist.github.com/endrsmar/684c336c3729ec4472b2f337c50c3cdb
Don't really use TG but if you have Discord feel free to shoot me a message at marist.1805