Bitcoin Forum
May 07, 2024, 11:59:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ANN] Mocked version of the blockchain.info wallet API  (Read 597 times)
limikael (OP)
Member
**
Offline Offline

Activity: 67
Merit: 42



View Profile WWW
January 12, 2014, 10:13:04 PM
 #1

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!
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715126387
Hero Member
*
Offline Offline

Posts: 1715126387

View Profile Personal Message (Offline)

Ignore
1715126387
Reply with quote  #2

1715126387
Report to moderator
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
January 13, 2014, 02:52:04 AM
 #2

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.

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
limikael (OP)
Member
**
Offline Offline

Activity: 67
Merit: 42



View Profile WWW
January 13, 2014, 08:13:39 AM
 #3

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!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!