<p>That's not possible without looking through all the transactions after this one and finding the one which spent it. Most block explorers keep a database of the transactions so you could look it up on one of them.</p>

CC BY-SA 3.0
2017-12-22T00:24:47.713Z
I really was hoping that there was some way to do that. Well, thank you very much for answering anyway!
Максим Алексеев
CC BY-SA 3.0
2017-12-21T23:43:16.840Z
2017-12-21T23:43:16.840Z
meshcollider
<p>I have an example of a transaction. I deleted some fields which don't play any role for my question. Also I reduced large hashes and IDs.</p>

<pre><code>{
 "txid": "8d554",
  "vin": [
    {
      "txid": "d3117",
      "vout": 0
    }
  ],
  "vout": [
    {
      "value": 1.99995000,"address":"mrL8SS",
      "n": 0
    }, 
    {
      "value": 3.00000000, "address":"mtK8r",
      "n": 1
    }
  ]
}
</code></pre>

<p>From this transaction I can find out which transaction was used for paying outputs of this transaction. Because those transaction is in <code>vin</code> field. Its txID is <code>d3117</code>. So if I want i will be able to find this transaction by using bitcoin client RPC API: <code>bitcoin-cli gettransaction d3117</code>. 
  But what if i want to find out, which transaction used THIS transaction as input? Could you guys please tell me, if it's possible or not? </p>

<tracking>
Tracking transactions in both directions
Максим Алексеев
# Tracking transactions in both directions

(Asked by: username_0 on 2017-12-21)

I have an example of a transaction. I deleted some fields which don't play any role for my question. Also I reduced large hashes and IDs.
{
 "txid": "8d554",
  "vin": [
    {
      "txid": "d3117",
      "vout": 0
    }
  ],
  "vout": [
    {
      "value": 1.99995000,"address":"mrL8SS",
      "n": 0
    }, 
    {
      "value": 3.00000000, "address":"mtK8r",
      "n": 1
    }
  ]
}

From this transaction I can find out which transaction was used for paying outputs of this transaction. Because those transaction is in vin field. Its txID is d3117. So if I want i will be able to find this transaction by using bitcoin client RPC API: bitcoin-cli gettransaction d3117. 
  But what if i want to find out, which transaction used THIS transaction as input? Could you guys please tell me, if it's possible or not?

**Tags:** tracking


---

## 1 answers

### Answer by username_1 on 2017-12-21. Score: 0 | Accepted answer

That's not possible without looking through all the transactions after this one and finding the one which spent it. Most block explorers keep a database of the transactions so you could look it up on one of them.

> **Comments:**
> **username_0**: I really was hoping that there was some way to do that. Well, thank you very much for answering anyway!  

---

