3 ms·
A bit OT but how do you build automatic Bitcoin services like this?
by Kiro 13y ago
A bit OT but how do you build automatic Bitcoin services like this?
- guard-of-terra 13y agoUsing RPC API of the official client? Unless you do something smarter like bitcoin lottery (I forgot how it is called).
- runn1ng 13y agoIf you have just a few transactions then yes, but the official client has a few caveats that can show up as problematic. I would write it myself, but there is far better explanation here on reddit http://www.reddit.com/r/Bitcoin/comments/1x93tf/some_irc_chatter_about_what_is_going_on_at_mtgox/cf99yac http://www.reddit.com/r/Bitcoin/comments/1x93tf/some_irc_cha... basically: - the difficulty of finding available addresses is quadratic to the number of unspent transactions - someone can slightly change the transaction so it's still valid, but have a different transaction ID - that can mess up clients and break chains of unconfirmed transactions
- hendzen 13y agoIf you like Java (or other JVM langs), check out BitcoinJ. By far the most solid Bitcoin library.
- jccooper 13y agoThe official bitcoin client (and all its alt forks) runs as a JSON-RPC server. It also runs as a graphical and/or command-line client for said server. You can thus communicate directly, or you can script calls of the command-line client (which gives back the direct JSON responses.) There are also plenty of language libraries that wrap the JSON-RPC calls. https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls... https://en.bitcoin.it/wiki/API_reference_(JSON-RPC) https://en.bitcoin.it/wiki/API_reference_(JSON-RPC) I find the naming of the API a little peculiar, but it's simple enough.