Bitcoin Forum
December 15, 2017, 05:24:42 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: PHP scripts for checking and validating transactions  (Read 730 times)
macharborguy
Jr. Member
*
Offline Offline

Activity: 42


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.

1AqpBsJ26Tde7rHYrVJFuoRKD54TcykZT1
1513315482
Hero Member
*
Offline Offline

Posts: 1513315482

View Profile Personal Message (Offline)

Ignore
1513315482
Reply with quote  #2

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

Posts: 1513315482

View Profile Personal Message (Offline)

Ignore
1513315482
Reply with quote  #2

1513315482
Report to moderator
Jine
Sr. Member
****
Offline Offline

Activity: 405


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:  

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!