If you can't find the IDL using anchor idl fetch <PROGRAM_ID> or by visiting https://solscan.io/account/<PROGRAM_ID> I suggest using tools for IDL reverse engineering like Solvitor or idlGuesser: https://solvitor.xyz/public_idl/<PROGRAM_ID>