July 19, 2026

Get transaction that spent a transaction id

The blockchain.info API allows for querying information about a particular Transaction by its ID. But if you want to follow the coins to the next transaction, I’m not seeing what the next query should be.

Each “out” of the transaction has an address associated with it, and you can query for details about a address’ recent transactions. But if you’re exploring deep in the past, the most recent 50 transactions for a given address won’t have the spend for that particular “out”.

So is there another API out there that allows you to query Transaction details based on “has transaction N as an ‘in'”? Or do I need to go through the blockchain and make my own cache?

Edit: Blockchain.info clearly has the link to the transaction that spends a given output in their database, since the HTML view of a transaction now has “spent” tags after outputs that have been spent, which are links to the next transaction. However, that particular bit of data is not in the API view of the same transaction.

Previous Article

Test Network Genesis Block

Next Article

When BTC is traded at a Bitstamp, Mt Gox (or similar) what is the algorithm for matching Buys to Sells? How do partial fills occur?

You might be interested in …

Bitcoin Core 0.20.0 Released

Bitcoin Core 0.20.0 Released Bitcoin Core version 0.20.0 is now available for download. For a complete list of changes in this new major version release, please see the release notes. If have any questions, please […]