Bitcoin Forum
December 04, 2016, 04:29:51 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: JSON API Question  (Read 545 times)
exchadmin
Newbie
*
Offline Offline

Activity: 4


View Profile
June 14, 2011, 07:30:18 PM
 #1

I realize this is probably not the place to ask this, but my newbie status prevents otherwise.

I'm currently developing a website that will accept bitcoins, and at first glance, what makes the most sense is to run my own instance of bitcoind on the server that hosts the site, and use the json api to send and recieve bitcoins.
My main issue with doing so, is that currently, I don't see a good way to handle receiving bitcoins. The best option I can see is to continuously poll bitcoind to check for new transactions. Am I missing something?

Are there any plans in the future for a feature of bitcoind to notify over JSON-SSL when a new transaction has a certain number of confirmations?
After briefly flipping through the source code, it doesn't seem like this would be a major task.
1480868991
Hero Member
*
Offline Offline

Posts: 1480868991

View Profile Personal Message (Offline)

Ignore
1480868991
Reply with quote  #2

1480868991
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480868991
Hero Member
*
Offline Offline

Posts: 1480868991

View Profile Personal Message (Offline)

Ignore
1480868991
Reply with quote  #2

1480868991
Report to moderator
rokj
Newbie
*
Offline Offline

Activity: 26


View Profile
June 14, 2011, 08:42:39 PM
 #2

I realize this is probably not the place to ask this, but my newbie status prevents otherwise.

I'm currently developing a website that will accept bitcoins, and at first glance, what makes the most sense is to run my own instance of bitcoind on the server that hosts the site, and use the json api to send and recieve bitcoins.
My main issue with doing so, is that currently, I don't see a good way to handle receiving bitcoins. The best option I can see is to continuously poll bitcoind to check for new transactions. Am I missing something?

Are there any plans in the future for a feature of bitcoind to notify over JSON-SSL when a new transaction has a certain number of confirmations?
After briefly flipping through the source code, it doesn't seem like this would be a major task.

If you are on a hurry (like most web developers are:)), right now checking bitcoind every now and then would be the easiest way to implement.
Maged
Legendary
*
Offline Offline

Activity: 1260


View Profile
June 14, 2011, 09:18:50 PM
 #3

Are there any plans in the future for a feature of bitcoind to notify over JSON-SSL when a new transaction has a certain number of confirmations?
We're way a head of you.
https://github.com/bitcoin/bitcoin/pull/198

exchadmin
Newbie
*
Offline Offline

Activity: 4


View Profile
June 14, 2011, 09:30:19 PM
 #4

Awesome. This felt pretty obvious. I'll probably wait until this hits a stable client to implement it on my end, and in the mean time, use polling for testing purposes.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!