Author

Topic: [ANN] Mocked version of the blockchain.info wallet API (Read 616 times)

member
Activity: 67
Merit: 42
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!
legendary
Activity: 2618
Merit: 1007
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.
member
Activity: 67
Merit: 42
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!
Jump to: