The central bank can do that. That's how it works for instant payments in my country (Pix payments in Brazil).
Is there any percent chance that the government doesn't wiretap all those transactions?
The government doesn't hide the fact that all this data can and will be used by the IRF equivalent in Brazil (Receita Federal)
I would assume the same for any credit card payment in the US