1 You need to parsetransaction with signature to get the token mint adress in transaction.meta.postTokenBalances that is not wsol
2 To find the pool id (pair adresse) https://api-v3.raydium.io/pools/info/mint?mint1=${tokenMint}&mint2=${wSOL}&poolType=${poolType}&poolSortField=${poolSortField}&sortType=${sortType}&pageSize=${pageSize}&page=${page}`;
check the api of raydium here section pool : https://api-v3.raydium.io/docs/