So, Let's say I want to create a transaction by using bitcoinjs-lib
.
As far as I can see, this library doesn't provide the help so that it can automatically figure out/grab unpent transactions for inputs and create a transaction magically.
My question is: Am I the one who has to know unspent transactions that I want to use for the inputs in advance ?
If the answer is no
, then can you point me to the bitcoinjs-lib
file that does this ?
If the answer is yes
, how do I get unspent transactions ? By looking at my transaction list on blockchain and getting each one of them's txid and vouts seem not reasonable. Any idea ?