bitcoin-multisig icon indicating copy to clipboard operation
bitcoin-multisig copied to clipboard

What is coinb.in/api doing?

Open MA5H3D opened this issue 11 years ago • 4 comments

What exactly is https://coinb.in/api/ doing? Is it using blockchain.info, or your own bitcoind?

MA5H3D avatar Jan 21 '14 20:01 MA5H3D

The API on coinb.in is being used by the mutlsig script to lookup the unspent transaction ids and to broadcast a transaction. It never receives any important data such as your private keys, all signing is done in your browser.

Yes, Coinb.in uses bitcoind.

Hope that helps!

OutCast3k avatar Jan 21 '14 20:01 OutCast3k

I can see that it doesn't get the private keys, but it'd help me more if I could see the code of that page.

MA5H3D avatar Jan 21 '14 22:01 MA5H3D

The API isn't really supposed to be "open sourced" right now, but its something I'd think about doing in the very near future.

Essentially the API is called by the javascript and provided the mutlisig address, it then goes through a (quite large) database and returns a list of unspent transaction ids for that address. So I would suggest, rather than trying to maintain your own database right now, its easier to call mine, blockexplorers or blockchain.info.

Hope this helps.

OutCast3k avatar Jan 22 '14 19:01 OutCast3k

Yes, i'd like to call blockchain.info. It'd make life a bit easier if you released that page or a blockchain.info version of it.

MA5H3D avatar Jan 23 '14 01:01 MA5H3D