Author

Topic: What's the best way to check deposits? How big sites like BTC-e work? (Read 1042 times)

full member
Activity: 134
Merit: 100
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
sr. member
Activity: 574
Merit: 253
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.
sr. member
Activity: 261
Merit: 265
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
hero member
Activity: 691
Merit: 569
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
sr. member
Activity: 261
Merit: 265
You may use bitcoind + JSON RPC to generate wallets and check new transactions.
hero member
Activity: 1022
Merit: 500
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.
hero member
Activity: 765
Merit: 503
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.
member
Activity: 84
Merit: 10
Bored with you morons.
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.
sr. member
Activity: 574
Merit: 253
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.
Jump to: