<p>By looking at the source code here</p>

<p><a href="https://github.com/bitcoin/bitcoin/blob/master/src/bitcoinrps.cpp" rel="nofollow">https://github.com/bitcoin/bitcoin/blob/master/src/bitcoinrps.cpp</a>
<a href="https://github.com/bitcoin/bitcoin/blob/master/src/rpcblockchain.cpp" rel="nofollow">https://github.com/bitcoin/bitcoin/blob/master/src/rpcblockchain.cpp</a></p>

<p>and comparing it to the code in the pull request in the question</p>

<p><a href="https://github.com/bitcoin/bitcoin/pull/886/files" rel="nofollow">https://github.com/bitcoin/bitcoin/pull/886/files</a></p>

<p>it seems like it is NOT possible in the code today. Oh well.</p>

CC BY-SA 3.0
2013-04-05T13:47:04.670Z
2013-04-05T13:47:04.670Z
Karel Bílek
<p>Can I somehow force bitcoin to include the script with <code>getblock</code> call?</p>

<p>I see that here <a href="https://github.com/bitcoin/bitcoin/pull/886" rel="nofollow">https://github.com/bitcoin/bitcoin/pull/886</a> and here <a href="https://bitcointalk.org/index.php?topic=89725.0" rel="nofollow">https://bitcointalk.org/index.php?topic=89725.0</a> there is indicated that it is possible with <code>'{"tx":"obj", "script":"asm"}'</code> option, but currently that returns error from bitcoind.</p>

<bitcoind><block>
Can I somehow force bitcoind to do decomposition with getblock?
Karel Bílek
# Can I somehow force bitcoind to do decomposition with getblock?

(Asked by: username_0 on 2013-04-05)

Can I somehow force bitcoin to include the script with `getblock` call?

I see that here <https://github.com/bitcoin/bitcoin/pull/886> and here <https://bitcointalk.org/index.php?topic=89725.0> there is indicated that it is possible with `'{"tx":"obj", "script":"asm"}'` option, but currently that returns error from bitcoind.

**Tags:** bitcoind, block


---

## 1 answers

### Answer by username_0 on 2013-04-05. Score: 0 | Accepted answer

By looking at the source code here

<https://github.com/bitcoin/bitcoin/blob/master/src/bitcoinrps.cpp>
<https://github.com/bitcoin/bitcoin/blob/master/src/rpcblockchain.cpp>

and comparing it to the code in the pull request in the question

<https://github.com/bitcoin/bitcoin/pull/886/files>

it seems like it is NOT possible in the code today. Oh well.


---

