Having mint addresses of two spl tokens on Solana mainnet, I need to find public key of all possible markets (i.e. marketId
in the following code snippet) available on Solana to get token swap info from:
const tokenSwap = await TokenSwap.loadTokenSwap(
con,
new PublicKey(marketId),// << HERE
TOKEN_SWAP_PROGRAM_ID,
payerAaccount
);
I could not find any repository (similar to Raydium or Serum lp addresses) on github or anywhere else. Where can I find a list of liquid markets for spl token swap program? and/or is there any other way to calculate or retrieve token swap info based on token mint addresses?