4
1
I find myself a victim of either my poor googling skills, or the lack of detail in the bitcoind docs.
I have a walletNotify script running on a full node that whenever a transaction to / from my wallet arrives, performs a getRawTransaction(txid, 1) on the passed transaction ID.
Now, if any of my addresses appears inside the vout array, I know that that transaction is a deposit. What I'd like to verify, is that I can indeed spend those bitcoins.
I read about non-standard transactions (specifically, unspendable transactions) and kinda panicked, so my questions are:
- Does
bitcoindperform any sort of verification on the "spendability" of the arriving bitcoins? - Is there any easy way of verifying this myself? is there any not-necessarily-easy way?
Thank you very much in advance!
Hi! sorry for the delay. So what you mean is that I won't even get notified when one such nonstandard transaction arrives? or that they won't appear among my UTXOs? Having a working (bug-for-bug) script interpreter is not even not-necessarily-easy :P – mpr – 2014-12-15T20:04:53.333
No, your node wouldn't be able to identify it as having anything to do with your wallet. Depending on your use case, maybe you could use txindex=1, and the blocknotify callback? It would trigger a script, passing the block hash as an argument. Decode every raw transaction (why you need txindex), look for outputs whose scripts match what you want, and build your redeem transaction then? – karimkorun – 2014-12-17T02:03:15.613