Bitcoin Forum
May 11, 2024, 07:58:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What's the best way to check deposits? How big sites like BTC-e work?  (Read 1027 times)
Jarx (OP)
Sr. Member
****
Offline Offline

Activity: 574
Merit: 253


View Profile
December 16, 2014, 08:34:08 PM
Last edit: January 04, 2015, 10:11:48 AM by Jarx
 #1

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.
1715457498
Hero Member
*
Offline Offline

Posts: 1715457498

View Profile Personal Message (Offline)

Ignore
1715457498
Reply with quote  #2

1715457498
Report to moderator
1715457498
Hero Member
*
Offline Offline

Posts: 1715457498

View Profile Personal Message (Offline)

Ignore
1715457498
Reply with quote  #2

1715457498
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715457498
Hero Member
*
Offline Offline

Posts: 1715457498

View Profile Personal Message (Offline)

Ignore
1715457498
Reply with quote  #2

1715457498
Report to moderator
AJinNYC
Member
**
Offline Offline

Activity: 84
Merit: 10

Bored with you morons.


View Profile
December 16, 2014, 08:52:53 PM
 #2

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.

Done with this forum. Goodbye all.
doof
Hero Member
*****
Offline Offline

Activity: 765
Merit: 503


View Profile WWW
December 16, 2014, 10:27:20 PM
 #3

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.
picolo
Hero Member
*****
Offline Offline

Activity: 1022
Merit: 500



View Profile
December 16, 2014, 11:25:27 PM
 #4

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.
BITMIXER.IO
Sr. Member
****
Offline Offline

Activity: 261
Merit: 263


View Profile
December 17, 2014, 12:24:23 AM
 #5

You may use bitcoind + JSON RPC to generate wallets and check new transactions.
btc_enigma
Hero Member
*****
Offline Offline

Activity: 688
Merit: 567


View Profile
December 17, 2014, 12:25:42 PM
 #6

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

BITMIXER.IO
Sr. Member
****
Offline Offline

Activity: 261
Merit: 263


View Profile
December 17, 2014, 01:52:36 PM
 #7

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
Jarx (OP)
Sr. Member
****
Offline Offline

Activity: 574
Merit: 253


View Profile
December 17, 2014, 01:55:33 PM
 #8

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.
IamAGentleman
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 17, 2014, 04:49:20 PM
 #9

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
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!