Bitcoin Forum
April 24, 2024, 03:35:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generate new addresses on website - communicate to BTC client  (Read 976 times)
herbertfilby (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
June 06, 2011, 04:44:08 PM
 #1

Hi,
I have a simple question I can't seem to find a solution for...

I'm building a site in PHP that involves btc donations. What I'm currently thinking is if a user wants to donate, the site will generate a new bitcoin address and tell the user to send donation to that address... but I don't know how to do that, and I can't find any tutorials.

Could someone point me in the direction as to how I can create random/valid BTC addresses using PHP? And once those web addresses are created, how can I tell the bitcoin client for the person receiving the donation to actually be authorized to receive payment?

I'm trying to make this as simple as possible, and I don't want to act as a middleman handling people's donations. I simply want the money to go from A to B.

Thanks!
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713929753
Hero Member
*
Offline Offline

Posts: 1713929753

View Profile Personal Message (Offline)

Ignore
1713929753
Reply with quote  #2

1713929753
Report to moderator
nixxle
Newbie
*
Offline Offline

Activity: 47
Merit: 0


View Profile
June 06, 2011, 05:16:11 PM
 #2

You could look at mybitcoin.com they have merchant tools, but they seem pretty inactive atm.
herbertfilby (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
June 06, 2011, 05:25:33 PM
 #3

I'll look into it, thanks  Smiley
twmz
Hero Member
*****
Offline Offline

Activity: 737
Merit: 500



View Profile
June 06, 2011, 05:25:50 PM
 #4

Hi,
I have a simple question I can't seem to find a solution for...

I'm building a site in PHP that involves btc donations. What I'm currently thinking is if a user wants to donate, the site will generate a new bitcoin address and tell the user to send donation to that address... but I don't know how to do that, and I can't find any tutorials.

Could someone point me in the direction as to how I can create random/valid BTC addresses using PHP? And once those web addresses are created, how can I tell the bitcoin client for the person receiving the donation to actually be authorized to receive payment?

I'm trying to make this as simple as possible, and I don't want to act as a middleman handling people's donations. I simply want the money to go from A to B.

Thanks!

You'll want your PHP web app to talk to the backend bitcoin client or to bitcoind.  Do a google search for JSON-RPC and understand that first.  Then read about the JSON-RPC API that bitcoin provides when you run it with -server on the command line or with server=1 in the bitcoin.conf.  One of the API calls is "getnewaddress" and will return you a valid bitcoin address that you can show to the person who wants to send you a donation.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG

Bitrated user: ewal.
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!