unable to get transactions in wallet console
To retrieve arbitrary transactions in the Bitcoin Core console, you need to use the txindex=1 option in your configuration file.

Note that setting that option will trigger a full rescan of the blockchain that might (depending on your setup) take several hours to complete.