Hi everyone, I’ve got a technical question! I’m working with a Bitcoin transaction that has 3 outputs. One of these outputs has been spent (sent to another address that I don’t control), and I want to track down the second transaction that spent it. I have all the details of the first transaction (its hex string and a parsed object that includes the vins and vouts, receiver addresses, asm, and scriptHex). On a block explorer, this would be straightforward, but I’m struggling to replicate it in code. Right now I am using the `@samouraiwallet/electrum-client` library (here) to fetch blockchain data from my node. The issue is, I can’t seem to retrieve the status of the output (whether it’s been spent or not) or more likely any follow-up transaction linked to it. Does anyone know how to approach this or if there’s a better way/library to get this data programmatically? TYIA! submitted by /u/sisittu99 to r/Bitcoin [link] [comments]