Bitcoin Forum
May 05, 2024, 03:24:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need advice on a web project (NODE/JS/PHP)  (Read 1099 times)
jeezy (OP)
Legendary
*
Offline Offline

Activity: 1237
Merit: 1010



View Profile
August 28, 2013, 05:13:50 PM
 #1

Hey guys,

I'm currently planning a new web project and I'm not quiet sure how other sites handle this:

1) Scan the blockchain for transaction of certain addresses, save transaction to a DB
2) Handle found transactions one by one
3) Feed the web page with handled transaction data

My current thinking is this:

1) Develop a demon that subscribes to blockchain.info's websocket and scan for certain transactions
2) That's easy
3) Let the client poll the server every X seconds or only on refresh

The problems:

1) PHP or NODE.JS? Are there working libs for this? How do other sites do this?
3) What would you suggest? AJAX? Poll or push? Websocket server?

Cheers,
jeezy
1714922694
Hero Member
*
Offline Offline

Posts: 1714922694

View Profile Personal Message (Offline)

Ignore
1714922694
Reply with quote  #2

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

Posts: 1714922694

View Profile Personal Message (Offline)

Ignore
1714922694
Reply with quote  #2

1714922694
Report to moderator
1714922694
Hero Member
*
Offline Offline

Posts: 1714922694

View Profile Personal Message (Offline)

Ignore
1714922694
Reply with quote  #2

1714922694
Report to moderator
jeezy (OP)
Legendary
*
Offline Offline

Activity: 1237
Merit: 1010



View Profile
August 29, 2013, 07:27:24 AM
 #2

You could have a local block explorer that you could make calls to with php... save to the db.. then use a websocket server to keep the website live.

That would be my approach.

Yeah, I guess the easies and probably most performant way would be to have a local bitcoind running on the server and make JSON calls to it. Since the transactions / addresses can all go into one wallet it would probably be the best option.

Only downside to this is that I need a lot of space on the VPS which will be expensive, since there is no bitcoind thin client, like an electrumd would be the optimal solution for this I guess.
cedivad
Legendary
*
Offline Offline

Activity: 1176
Merit: 1001



View Profile
August 29, 2013, 07:30:14 AM
 #3

Is a 10gb vps expensive? I would be more worried about the iops you will make.

My anger against what is wrong in the Bitcoin community is productive:
Bitcointa.lk - Replace "Bitcointalk.org" with "Bitcointa.lk" in this url to see how this page looks like on a proper forum (Announcement Thread)
Hashfast.org - Wiki for screwed customers
frankenmint
Legendary
*
Offline Offline

Activity: 1456
Merit: 1018


HoneybadgerOfMoney.com Weed4bitcoin.com


View Profile WWW
August 30, 2013, 02:36:50 AM
 #4

You could have a local block explorer that you could make calls to with php... save to the db.. then use a websocket server to keep the website live.

That would be my approach.

nice website

jeezy (OP)
Legendary
*
Offline Offline

Activity: 1237
Merit: 1010



View Profile
August 30, 2013, 07:29:44 AM
 #5

Is a 10gb vps expensive? I would be more worried about the iops you will make.

Yeah, I guess I will be looking for a decent SSD VPS then  Wink
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!