Author

Topic: Bitcoin deposit detection without bitcoind? (Read 702 times)

legendary
Activity: 1442
Merit: 1186
September 22, 2016, 08:51:29 PM
#8
Bite the bullet and use a server with bitcoind, trust me, you'll thank me later.  Webhosted API's have limitations, are often targeted by DDoS attacks, and will sometimes go offline for maintenance/upgrades.  Run a node, be part of the community.

However, here's php code to monitor using a web service:
Code:
function getBalance($address) {
    return 
file_get_contents('https://blockchain.info/q/addressbalance/'$address);
}

echo 
'Address Balance: ' getBalance('1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE');
?>
(You'll need to format the output, etc for the decimal places, etc)

Cloverme is right, definitely go with running bitcoind.  Especially since you are creating a gaming site, a 3rd party API will likely shut you down as they don't want to be pulled in to any legal issues for being your service provider.

As for "deposit detection" with bitcoind you can use the walletnotify feature and it will instantly run whatever code you want when new transactions are received. https://www.youtube.com/watch?v=o4BPt4RXOm4
legendary
Activity: 1750
Merit: 1115
Providing AI/ChatGpt Services - PM!
September 22, 2016, 12:50:45 PM
#7
How about using a free 3rd party service? For example, blockchain.info has their free API to receive payments.
Just posting here for the information ->

Blockchain.info does not allow the full API access to gambling websites ,which is true in OP's case.
->Blockchain.info rejects all the remote procedure calls from unknown sources (as per their recent update)

->You may be tracked if you are given the full api access through the secret key.They would know the exact amounts deposited through your addresses.

->Due to following security issues,I'd not advise anyone to use their API for commercial business.Write your procedures from scratch.
legendary
Activity: 1218
Merit: 1006
September 22, 2016, 12:18:17 PM
#6
Thanks for suggestions, I'll use a server.
Yes you better run your own bitcoin server as i have also tried block.io api before for address creation as well as to detect bitcoin deposits but it started to get error after some addresses were created for my client. Why to pay heavy to these 3rd party if we can run our own server, however i am still struggling to connect my node with php in my webpage. If Anyone can drop link to how we can set up own bitcoin server and use it to do all stuffs just like using 3rd party api will be helpful.
member
Activity: 66
Merit: 10
September 22, 2016, 11:28:43 AM
#5
Thanks for suggestions, I'll use a server.
legendary
Activity: 1512
Merit: 1057
SpacePirate.io
September 22, 2016, 10:02:22 AM
#4
Bite the bullet and use a server with bitcoind, trust me, you'll thank me later.  Webhosted API's have limitations, are often targeted by DDoS attacks, and will sometimes go offline for maintenance/upgrades.  Run a node, be part of the community.

However, here's php code to monitor using a web service:
Code:
function getBalance($address) {
    return 
file_get_contents('https://blockchain.info/q/addressbalance/'$address);
}

echo 
'Address Balance: ' getBalance('1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE');
?>
(You'll need to format the output, etc for the decimal places, etc)
hero member
Activity: 518
Merit: 501
Error 404: there seems to be nothing here.
September 22, 2016, 07:18:59 AM
#3
You can use Bitpay to Accept Bitcoins for your business -> Bitpay.com

They take 1% tx fee and allow unlimited transactions. Smiley  https://bitpay.com/pricing


If you want to just detect transactions instantly, you can use Blockchain/Blockexplorer or any similar website's API Smiley

newbie
Activity: 38
Merit: 0
September 22, 2016, 07:04:09 AM
#2
How about using a free 3rd party service? For example, blockchain.info has their free API to receive payments.
member
Activity: 66
Merit: 10
September 22, 2016, 05:48:14 AM
#1
I'm developing a non-legal gaming website and I need idea for detecting deposits instantly. What can I use except of bitcoind? I don't want to create a separate server just for bitcoin server and it needs extra maintenance.

Also I won't use any paid 3rd services. What are my options?

Thanks.
Jump to: