I am using this library to make a wallet service that runs on a web browser. I use the library and
browserify it so its compatible with the rest of my
jquery. Now this tells me how to make and sign a transaction. This specifies the parameters used to make a
utxo but I don't understand how to get the data for it.
It can take outputs straight out of bitcoind's getunspent RPC call
My understanding is that the UTXO can be obtained only when running a full node and not from the browser, so my plan is
1) Send amount, receiver and sender public address to the server using
2) Server then finds
UTXO (how?) and returns the raw transaction to the browser
3) Browser then prompts using to enter his private key, which is used to sign the transaction and sent to the server
4) Server then pushes this onto the blockchain and returns the transaction hash
I am not able to achieve point 2.
Now I understand that a lot of online wallets would have a similar structure but I am unable to achieve this. The blockchain used is
Bitcoin, server side language is entirely in
Could someone please help me out/ tag relevant links.