Title: [ANN] Mocked version of the blockchain.info wallet API Post by: limikael on January 12, 2014, 10:13:04 PM Hello,
I'm in the process of developing a Bitcoin based project using the blockchain.info wallet API to send and receive payments. I.e. this one: https://blockchain.info/api/blockchain_wallet_api I wanted my development to be as test driven as possible, with automated tests to confirm that my logic for dealing with transactions was working. I didn't want to use real coins for testing, since this would be quite costly... I came up with this mini project that I would like to share: https://github.com/limikael/blockchainwalletmock It is a mocked version of the blockchain.info wallet api that stores all transactions in a local database. Callbacks and everything works in the same way as the real thing, and there are methods to simulate incoming payments as well as confirmations. It is not 100% complete, I only implemented the methods I was using myself, and it's probably full of curious bugs. But please give it a test! Feedback much welcome! Title: Re: [ANN] Mocked version of the blockchain.info wallet API Post by: Sukrim on January 13, 2014, 02:52:04 AM I'd recommend you to go the extra mile from that point and connect your "mock API" to a local bitcoind, thus eliminating the need to trust blockchain.info.
Title: Re: [ANN] Mocked version of the blockchain.info wallet API Post by: limikael on January 13, 2014, 08:13:39 AM I'd recommend you to go the extra mile from that point and connect your "mock API" to a local bitcoind, thus eliminating the need to trust blockchain.info. ...and connect the bitcoind to testnet you mean? Because otherwise I would be spending my bitcoins, and the point is being able to test without actually doing that... I have been running a local bitcoind, but I prefer to have things as much as possible in the cloud. It is also a business risk to have many servers to maintain, so that's why I will do it with blockchain.info, at least in the beginning. Thanks for your opinion though! |