Bitcoin Forum

Bitcoin => Project Development => Topic started by: divergenta on April 11, 2011, 07:11:28 PM



Title: Help in getting started to develop bitcoin related things
Post by: divergenta on April 11, 2011, 07:11:28 PM
Ok, I admit I'm not very good at programming but I know a little, even though my knowledge is a bit rusty to say the least. Anyway the bitcoin community and in particular this forum have had a great impact on my inspiration. I really want to get into programming stuff again!

First I have to face the fact that I pretty much suck at it so I have decided to start of by developing a very simple "service" on a website that you send an amount of bitcoins to, and the service simply bounces the bitcoins back to you, simple as that, either more or less. I know that this is silly and useless but I thought it might be a good project to start of with until I get any good ideas on a more serious project.

I think I'll manage the programming but it would really help if I could look into some code of what others have done. Which projects out there are open source? The more "simpler" ones like doubletrouble are most interesting from my perspective.
Any documents or something I should look into or do you have any general tips on what I should think about before I'm getting started?

Every help I can get is highly appreciated.


Title: Re: Help in getting started to develop bitcoin related things
Post by: divergenta on April 11, 2011, 07:45:05 PM
Damn. I think I posted this topic in the wrong forum. Can someone please move it to Development & Technical Discussion or Technical Support?


Title: Re: Help in getting started to develop bitcoin related things
Post by: theymos on April 12, 2011, 07:13:59 PM
You can move the topic if you want. I don't think this is necessarily the wrong category.

For that, you would:
- Collect the user's address, and have them fill out a CAPTCHA so they don't generate a million addresses
- getnewaddress from Bitcoin
- Poll "getreceivedbyaddress <address> 0" to tell the user when their transaction is received
- Poll "getreceivedbyaddress <address> 6" until the amount is non-zero. Then "sendtoaddress" the amount to the given address.

You must wait until transactions get 6 confirmations or else Bitcoin will choose transaction inputs in such a way that you will certainly lose money on fees (which are paid automatically, without confirmation).