Hi I’m having trouble finding the hash keys and hash160 for a tx. Can anyone explain how to find hash keys and hash160 for a given tx?
For starters transactions don't have anything called "hash keys" or "hash160".
Each transaction has a hash that is used as the "transaction ID" which is the result of computing SHA256d of the stripped transaction (removed witnesses). And a "witness transaction ID" that is computed by finding SHA256d of the whole transaction.
Each transaction has at least one output that contains a script and in that script we may or may not have a hash which may or may not be using HASH160 of the public key or a redeem script. It may instead contain the public key itself, tweaked public key, SHA256 hash of redeem script, etc.