Add Polygon Chain ID with web3j

I am trying to edit a Java program to fix the issue of there not being a chain ID when trying to use polygon. It works with Ethereum but doesn’t work with polygon because there is no chain ID specified. Would I set the chain ID as a global variable or is it an argument for transactions? I have spent the last 3 days trying to fix this but there isn’t much information on it.

hi @CompoundChaos, maybe this would help ?