<p>Try the page at <a href="https://2xoin.com/getRSZfromRawTX/" rel="nofollow noreferrer">https://2xoin.com/getRSZfromRawTX/</a></p>
<p>Paste a raw transaction into it, it will return the z values of each tx input.</p>
<p>The z value is the hash of the message that was signed.</p>
<p>It only works for bitcoin at the moment.</p>

CC BY-SA 4.0
2018-01-12T19:33:26.913Z
2020-12-27T15:48:23.093Z
2020-12-27T15:48:23.093Z
Sean Bradley
<p>Does anyone have, or have access to a simple API that can calculate the hashofthingtosign for old transactions along the blockchain?  I'm just looking for something simple to see what the "Hashofthingtosign" is or was for transactions along the blockchain.  One might even say this is a question of "how" do I do this, but it is well beyond me and is effectively a question of does anyone have one or know of one?</p>

<p>A simple API such as what is here; <a href="http://2coin.org/tx.asmx" rel="nofollow noreferrer">http://2coin.org/tx.asmx</a> would be awesome (though I'm having a hard time accessing the website at this time).  It was just a simple thing; you paste the transaction ID and it can spit out the R value, the S value, and the hashofthingtosign by reading probably the info from blockchain.info or something like that.  </p>

<p>I'm trying to better understand the algorithm that's used, but it seems like block explorers don't keep track of that variable nor have implemented a simple detail of just showing what it was.  I'm not asking for a huge program or something that would take someone weeks to do.  The complexities of creating even a python script to look up this variable for old transactions and calculate it are well beyond my capabilities.  Not to mention, without examples of the hashofthingtosign, how would I even be able to confirm whether I had done it correctly or not?</p>

<transactions><hash><transaction-verification>
API for getting the Hash-of-thing-to-sign
Mine
# API for getting the Hash-of-thing-to-sign

(Asked by: username_0 on 2017-07-25)

Does anyone have, or have access to a simple API that can calculate the hashofthingtosign for old transactions along the blockchain? I'm just looking for something simple to see what the "Hashofthingtosign" is or was for transactions along the blockchain. One might even say this is a question of "how" do I do this, but it is well beyond me and is effectively a question of does anyone have one or know of one?

A simple API such as what is here; <http://2coin.org/tx.asmx> would be awesome (though I'm having a hard time accessing the website at this time). It was just a simple thing; you paste the transaction ID and it can spit out the R value, the S value, and the hashofthingtosign by reading probably the info from blockchain.info or something like that.

I'm trying to better understand the algorithm that's used, but it seems like block explorers don't keep track of that variable nor have implemented a simple detail of just showing what it was. I'm not asking for a huge program or something that would take someone weeks to do. The complexities of creating even a python script to look up this variable for old transactions and calculate it are well beyond my capabilities. Not to mention, without examples of the hashofthingtosign, how would I even be able to confirm whether I had done it correctly or not?

**Tags:** transactions, hash, transaction-verification


---

## 1 answers

### Answer by username_1 on 2018-01-12. Score: 1

Try the page at <https://2xoin.com/getRSZfromRawTX/>

Paste a raw transaction into it, it will return the z values of each tx input.

The z value is the hash of the message that was signed.

It only works for bitcoin at the moment.


---

