How do I get Raw Transaction Txid, Scriptpubkey Using Bitcoin Core Console I just finished downloading bitcoin core on windows 7 and I am trying to create a raw transaction. When I typed listunspent 0 or listunspent 1 on console, I got no message (empty message) in the console. How do I get raw transaction txid, scriptpubkey using bitcoin core console ?
Bitcoin is an open source platform where everyone who runs a full node verifies each and every transaction that has ever happened on the network. It checks that the transaction does not double spend the bitcoins, verifies the signatures (if you set assumevalid=0), and the block structure and proof of work. Thus it takes time for your node to sync up to the current state of the network.

As you have stated in the question, you have just finished downloading the Bitcoin Core software. This means you did not give your node the time yet to finish syncing with the network and verifying every transaction. Depending on the type of machine you are using this should take between couple of days to a week. This is not because of the time needed to download the blocks, but due to the time needed to verify each and every transaction.

If you run your node in pruned mode, you won't be able to query transactions from blocks that are deleted to conform with the prune requirements. Moreover, you will need to set txindex=1 to maintain an index of transaction if you want to query it using txid.