Bitcoin Forum
August 24, 2024, 03:54:30 AM *
News: All versions of Windows are affected by a critical security bug; make sure you update.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: PHP scripts for checking and validating transactions  (Read 840 times)
macharborguy (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
July 25, 2011, 02:16:23 AM
 #1

I am looking for any resources (but PHP mainly) that can be used to help validate BitCoin transactions, possibly for use with a Doubler or Multiplier service.

I am assuming the "simplest" method would be to just generate a new BitCoin receiving address for each Entry/Person and save those in a SQL database, then anything that is received by that address can be sent back to the Entry address tied to it.

I've already messed around with the API via PHP for awhile and messaged around with validating information via BlockExplorer, but that relies on a third-party service, and parsing the JSON data seemed a little messy for my tastes.
Jine
Sr. Member
****
Offline Offline

Activity: 403
Merit: 250


View Profile
July 25, 2011, 03:27:46 PM
 #2

You just solved it yourself?

Use the API, use listtransaction and gettransaction API-calls against bitcoind.
Generate new addresses with getnewaddress and store somewhere, you could even assign the new address to a account (so each user has it's own account) - easier to parse.

Not sure what you need more then that.

JSON-RPC client to use against Bitcoind API is here:
http://jsonrpcphp.org/

it's not using cURL, tho... my own version does... Smiley But hell, it's just a few lines.

Previous founder of Bit LC Inc. | I've always loved the idea of bitcoin.
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!