You can use your extended public key from your hardware wallet to verify your transactions with your full node while still keeping your private key private and offline in your hardware wallet. It’s important to note that if you are using a hardware wallet you are using somebody’s node to verify the transactions so it’s much better practice to use your own.