<p>Bitcoin is an open source platform where everyone who runs a full node verifies <strong>each and every transaction</strong> that has ever happened on the network. It checks that the transaction does not double spend the bitcoins, verifies the signatures (if you set <code>assumevalid=0</code>), 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.</p>

<p>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.</p>

<p>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 <code>txindex=1</code> to maintain an index of transaction if you want to query it using <code>txid</code>.</p>

CC BY-SA 4.0
2020-02-15T14:00:32.310Z
My bitcoin core has finished synchronizing and it is update
Red Cash
CC BY-SA 4.0
2020-02-16T09:57:02.750Z
@RedCash if you run the command `getblockchaininfo` do you see that headers = blocks? It should be around 617616. Also, have you set `txindex=1` in the `bitcoin.conf` file?
Ugam Kamat
CC BY-SA 4.0
2020-02-20T19:14:59.370Z
Yes when I ran getblockchaininfo, I could see the values of chain: main, blocks: 618239, headers: 618239 and NO i have not set txindex=1. Pls how do I set txindex=1?
Red Cash
CC BY-SA 4.0
2020-02-22T07:10:04.873Z
@RedCash You can set the parameter in the `bitcoin.conf` file. But note, you would have to reindex the blockchain so that the index can be set to the transactions. If you are running a pruned node, then `txindex` parameter cannot be set.
Ugam Kamat
CC BY-SA 4.0
2020-02-24T15:31:28.480Z
I have set txindex=1 in bitcoin.conf but nothing has changes. Same empty message in console after I typed listunspent 0 or listunspent 1. I just wanted to be able to spend unspent bitcoins using bitcoin core.
Red Cash
CC BY-SA 4.0
2020-11-11T18:23:14.200Z
If listunspent lists nothing, it means you own no UTXOs you can spend. What is your wallet balance?
Pieter Wuille
CC BY-SA 4.0
2020-02-15T09:43:39.780Z
2020-02-15T09:43:39.780Z
Ugam Kamat
<p>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 ?</p>

<bitcoin-core><client>
How do I get Raw Transaction Txid, Scriptpubkey Using Bitcoin Core Console
Red Cash
# How do I get Raw Transaction Txid, Scriptpubkey Using Bitcoin Core Console

(Asked by: username_0 on 2020-02-15)

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 ?

**Tags:** bitcoin-core, client


---

## 1 answers

### Answer by username_1 on 2020-02-15. Score: 1

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`.

> **Comments:**
> **username_0**: My bitcoin core has finished synchronizing and it is update  
> **username_1**: @username_0 if you run the command `getblockchaininfo` do you see that headers = blocks? It should be around 617616. Also, have you set `txindex=1` in the `bitcoin.conf` file?  
> **username_0**: Yes when I ran getblockchaininfo, I could see the values of chain: main, blocks: 618239, headers: 618239 and NO i have not set txindex=1. Pls how do I set txindex=1?  
> **username_1**: @username_0 You can set the parameter in the `bitcoin.conf` file. But note, you would have to reindex the blockchain so that the index can be set to the transactions. If you are running a pruned node, then `txindex` parameter cannot be set.  
> **username_0**: I have set txindex=1 in bitcoin.conf but nothing has changes. Same empty message in console after I typed listunspent 0 or listunspent 1. I just wanted to be able to spend unspent bitcoins using bitcoin core.  
> **username_2**: If listunspent lists nothing, it means you own no UTXOs you can spend. What is your wallet balance?  

---

