Bitcoin Forum
August 23, 2017, 04:26:27 PM *
News: Latest stable version of Bitcoin Core: 0.14.2  [Torrent].
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: PHP scripts for checking and validating transactions  (Read 702 times)
Jr. Member
Offline Offline

Activity: 42

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

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.

Hero Member
Offline Offline

Posts: 1503505587

View Profile Personal Message (Offline)

Reply with quote  #2

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

Activity: 405

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

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:

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]
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!