I just found out that my bank is against anyone of their customers buying bitcoin or bitcoin related things like hard wallets. I have heard it somewhere and would like to confirm or not the following. Of course when I tried to pay for a hard wallet with my credit card, it was declined by the bank.
Call your bank and ask them why your transaction was declined.
You tried to buy a hardware wallet, not cryptocurrencies, even if they are against crypto, they shouldn't block transactions for equipment.
I have heard that if you buy bitcoin through your bank by wire transfer, they have no way of knowing what you bought. Is this true?
What you have heard is wrong or you didn't understand it exactly. A wire transfer where exactly? If this is a wire transfer to a crypto exchange, of course they will know. But if this was a wire transfer to somebody else, and you bought P2P probably they will not know, as they will only have your money traced to the other guy's account. Depending on the amount, banks may ask questions or alert financial authorities though. There are AML procedures depending on where you live. In Europe, wire transfers of over 2,000 euro are being watched under the latest KYC/AML framework.
If it is can I rest assured that the bank will not find out I bought bitcoin this way? I live in Canada, does anyone know a bank that has not problems with you buying bitcoin?
I thought that Canada was pro-crypto, I don't know why your bank gives you problems. I suggest to just call the bank and ask them. I mean, you already had that transaction rejected by your bank, and if you want to avoid any interest in cryptocurrencies to your bank, you can't. So why not call them and ask them, this will clear all your questions.
It's not like you wanted to use Bitcoin for illegal activities. You already know everything is recorded and the blockchain is transparent.