<p>Read the fine manual!</p>

<blockquote>
  <p>$ ./src/bitcoin-cli help getblock
  getblock "blockhash" ( verbosity )                                                                                                                                                                                  </p>
  
  <p>If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.</p>
  
  <p>If verbosity is 1, returns an Object with information about block .</p>
  
  <p>If verbosity is 2, returns an Object with information about block  and information about each transaction.                                                                                                    </p>
</blockquote>

<p>So if you add a <code>2</code> to the end of the RPC request, you'll get the full transaction contents rather than just the hash.</p>

CC BY-SA 4.0
2018-08-20T16:36:52.277Z
2018-08-20T16:36:52.277Z
Pieter Wuille
<p>When I use the "getblock " command on my bitcoin core client, it returns, beside other things, an array called "tx" with hundreds of hashes. Are these the individual transactions hashes or something else? If they are really transactions hashes, does the client keep the unhashed transactions in other structure and do I access it through other command?</p>

<transactions><bitcoin-core><hash>
"tx" array inside blocks contains transactions hashes?
João Grilo Bitcoinheiro
# "tx" array inside blocks contains transactions hashes?

(Asked by: username_0 on 2018-08-20)

When I use the "getblock " command on my bitcoin core client, it returns, beside other things, an array called "tx" with hundreds of hashes. Are these the individual transactions hashes or something else? If they are really transactions hashes, does the client keep the unhashed transactions in other structure and do I access it through other command?

**Tags:** transactions, bitcoin-core, hash


---

## 1 answers

### Answer by username_1 on 2018-08-20. Score: 2 | Accepted answer

Read the fine manual!

> $ ./src/bitcoin-cli help getblock
> getblock "blockhash" ( verbosity )
>
> If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.
>
> If verbosity is 1, returns an Object with information about block .
>
> If verbosity is 2, returns an Object with information about block and information about each transaction.

So if you add a `2` to the end of the RPC request, you'll get the full transaction contents rather than just the hash.


---

