Post
Topic
Board Project Development
Re: REQUEST: Blockchain.info like self-hosted API
by
BitCoinDream
on 14/09/2014, 14:05:11 UTC
Hey, we have released it as opensource made in PHP + codeigniter. We are finishing our payment processor + POS and going to release that service soon
The code for the API server is here https://github.com/goethewins/EzBitcoin-Api-Wallet
It is running on bitcoind, you can find documentation on github.
It has mysql/postgresql database on backend for storing all created addresses, transactions and balances.
We used same URI paths as blockchain.info's blockchain wallet api. so if you r dependent now on blockchain.info's then all you have to do is install our API and change the domain name and the API calls will be working straight away.
Also we did the invoicing system for receiving payments like blockchain's receive payment api

This would be a very useful project in the long run. I appreciate your work. Is https://github.com/goethewins/EzBitcoin-Api-Wallet/tree/master/wallet equivalent to https://blockchain.info/api/api_send ?

Moreover, a demo link, where your project is running, added to the github repo would be great.
hey,
we don't have a demo for that, you can install it yourself it easily. this was the idea that you can host on your own same kind of API like blockchain.info so you are not dependent on any third party provider. you can find the documentation in the github. it is neatly split up how to install environment, bitcoind and the project itself.

answering your question, the wallet folder you pointed is actually unfinished demo app that used our built API. without it the API still works seamlessly, because API is not dependent on the wallet.
the blockchain.info api_send is in the api.php file https://github.com/goethewins/EzBitcoin-Api-Wallet/blob/master/applications/api/controllers/api.php
more exactly public function receive() method, which starts from line 611.
when payment is received the bitcoind shoots the txid to method public function callback() which starts from line 335. And there it does the same thing as blockchain.info - shoots the response to the provided callback url.


next week we are going to announce the release of our payment processor and also mention this open source API for bitcoin.

The functionality u have described in red is the functionality of https://blockchain.info/api/api_receive. But I was asking for https://blockchain.info/api/api_send, which is actually canonical to https://blockchain.info/api/blockchain_wallet_api. Is not it done in the project ?

If yes, then do u access blockchain.info wallet directly or use own Bitcoin-QT wallet running on the installed BitcoinD ?