bitcoind json-rpc requests per second

3

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?

William King

Posted 2013-04-25T04:26:21.087

Reputation: 133

1

If you're building a web-based wallet, you should look at the software that blockchain.info has open-sourced. https://github.com/blockchain

Nick ODell 2013-04-25T04:45:55.220

1Thanks I'll take a look! Any reason why I shouldn't just use the standard client that you can think of?William King 2013-04-25T06:03:32.660

1Is 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 2013-04-25T07:51:48.767

Answers

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.

gavinandresen

Posted 2013-04-25T04:26:21.087

Reputation: 3 254

7Would you be able to point me in the direction of any of those implementations? Thanks!William King 2013-04-25T19:23:27.957