Bitcoin Forum
May 06, 2024, 07:52:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: JSON API Question  (Read 722 times)
exchadmin (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


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

Posts: 1714981926

View Profile Personal Message (Offline)

Ignore
1714981926
Reply with quote  #2

1714981926
Report to moderator
1714981926
Hero Member
*
Offline Offline

Posts: 1714981926

View Profile Personal Message (Offline)

Ignore
1714981926
Reply with quote  #2

1714981926
Report to moderator
1714981926
Hero Member
*
Offline Offline

Posts: 1714981926

View Profile Personal Message (Offline)

Ignore
1714981926
Reply with quote  #2

1714981926
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
rokj
Newbie
*
Offline Offline

Activity: 26
Merit: 0


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: 1204
Merit: 1015


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 (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!