Bitcoin Forum

Bitcoin => Project Development => Topic started by: Jarx on December 16, 2014, 08:34:08 PM



Title: What's the best way to check deposits? How big sites like BTC-e work?
Post by: Jarx on December 16, 2014, 08:34:08 PM
I want to run a service that will accept bitcoin but I have doubts if I can handle incoming transactions that users will made. I'm surprisingly shocked there is almost no documentation about a good/flawless depositing system uses bitcoind.

How big sites like BTC-e, Coinbase, Just-dice, SwC work? I want to know. Also I won't use 3rd party companies like blockchain.info.

Edit: I used walletnotify method.


Title: Re: What's the best way to check deposits? How big sites like BTC-e work?
Post by: AJinNYC on December 16, 2014, 08:52:53 PM
You know Coinbase has investment backing of close to $40 million US dollars?

If you're just accepting BTC for products/services use a platform that already exists. If you're looking to compete against CoinBase, you're going to need some serious investment capital.


I to would also like to know how these services work, but simply for the knowledge of how they work. It seems impractical to do without a ton of investment.


Title: Re: What's the best way to check deposits? How big sites like BTC-e work?
Post by: doof on December 16, 2014, 10:27:20 PM
I want to run a service that will accept bitcoin but I have doubts if I can handle incoming transactions that users will made. I'm surprisingly shocked there is almost no documentation about a good/flawless depositing system uses bitcoind.

How big sites like BTC-e, Coinbase, Just-dice work? I want to know. Also I won't use 3rd party companies like blockchain.info.

You have a network listener receiving blocks.
Then your software just reads the blocks and applys your business rules.


Title: Re: What's the best way to check deposits? How big sites like BTC-e work?
Post by: picolo on December 16, 2014, 11:25:27 PM
I want to run a service that will accept bitcoin but I have doubts if I can handle incoming transactions that users will made. I'm surprisingly shocked there is almost no documentation about a good/flawless depositing system uses bitcoind.

How big sites like BTC-e, Coinbase, Just-dice work? I want to know. Also I won't use 3rd party companies like blockchain.info.

You mean you want to have the option to pay in Bitcoin?

Check Bitpay then.


Title: Re: What's the best way to check deposits? How big sites like BTC-e work?
Post by: BITMIXER.IO on December 17, 2014, 12:24:23 AM
You may use bitcoind + JSON RPC to generate wallets and check new transactions.


Title: Re: What's the best way to check deposits? How big sites like BTC-e work?
Post by: btc_enigma on December 17, 2014, 12:25:42 PM
Easiest way is to use wallet notify. You try deploying this along with your bitcoind https://github.com/slickage/baron

A more general approach is to keep an internal database of all transactions/ blocks , in which case you are capable of having your own blockexplorer  and can index  back to any transaction. This is probably what big sites like BTC-e, Coinbase, etc do
opensource tools for this
https://insight.bitpay.com/
https://toshi.io/

We do a similar thing for the address watcher we implemented in https://blockonomics.co , stored and indexed the transactions in leveldb


Title: Re: What's the best way to check deposits? How big sites like BTC-e work?
Post by: BITMIXER.IO on December 17, 2014, 01:52:36 PM
Which RPC commands + method do you suggest? I sure will use bitcoind.
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

For new transaction checking use walletnotify in bitcoin config file, like
Code:
walletnotify=/usr/bin/php /home/scripts/transaction.php %s >/dev/null


Title: Re: What's the best way to check deposits? How big sites like BTC-e work?
Post by: Jarx on December 17, 2014, 01:55:33 PM
For new transaction checking use walletnotify in bitcoin config file, like
Code:
walletnotify=/usr/bin/php /home/scripts/transaction.php %s >/dev/null

Thanks.

Easiest way is to use wallet notify. You try deploying this along with your bitcoind https://github.com/slickage/baron
...
We do a similar thing for the address watcher we implemented in https://blockonomics.co , stored and indexed the transactions in leveldb

Baron library is good, I'm looking it, thanks.


Title: Re: What's the best way to check deposits? How big sites like BTC-e work?
Post by: IamAGentleman on December 17, 2014, 04:49:20 PM
Use blockchain you can store the random generated wallet address in an sql table called addresses with 6 rows: Id(auto increment) username,ip, address, time and startus Then when they depost to that address have your script run blockchains api then compare all database addresses to deposited. Update the users balance and change status to complete