3

I'm starting up a new bitcoin based commerce site and am wondering how many transactions per second the bitcoin JSON-RPC API can accept? A user can have an account balance in bitcoin and I was initially thinking of storing all transactions in a database and then querying that to determine their account balance, but after reading up on blockchain reorgs and whatnot decided against it.

So is it feasible to just use the bitcoin API directly, or should I implement some sort of caching/load balancing?

  • 1
    If you're building a web-based wallet, you should look at the software that blockchain.info has open-sourced. github.com/blockchain – Nick ODell Apr 25 '13 at 4:45
  • 1
    Thanks I'll take a look! Any reason why I shouldn't just use the standard client that you can think of? – William King Apr 25 '13 at 6:03
  • 1
    Is there something in particular that you are after which you could not work out yourself by running some benchmarking? Things like this are usually very hardware-dependent so any answer provided here is likely to be inaccurate for your own needs. – jgm Apr 25 '13 at 7:51
3

Benchmark it and see, although be aware that bitcoind has never been optimized for handling thousands of accounts with hundreds of thousands of transactions. In particular, calls like 'getbalance' get slower the more transactions that are in the wallet.

Happily, there are now other implementations that claim to be better at handling lots of accounts/wallets/transactions.

  • 7
    Would you be able to point me in the direction of any of those implementations? Thanks! – William King Apr 25 '13 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.