<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thewinator</id>
	<title>Bitcoin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thewinator"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Thewinator"/>
	<updated>2026-05-15T20:35:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Lazy_API&amp;diff=15264</id>
		<title>Lazy API</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Lazy_API&amp;diff=15264"/>
		<updated>2011-08-19T12:44:59Z</updated>

		<summary type="html">&lt;p&gt;Thewinator: More reasons why this would be a bad idea.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the incredibly lazy and/or incompetent web developer, I present the lazy man&#039;s bitcoin API (copied from [http://www.bitcoin.org/smf/index.php?topic=4324.msg77187#msg77187 a forum post]):&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Lazy web designer (me) wants to use bitcoins without dealing with installing bitcoin on a server, installing a shopping cart interface, or using ugly merchant services with callbacks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution for sending bitcoins:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use the [https://mtgox.com/support/tradeAPI MtGox API]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution for receiving bitcoins:&#039;&#039;&#039;&lt;br /&gt;
# Input a list of bitcoin receiving addresses to your database&lt;br /&gt;
# Give a bitcoin address to a potential customer&lt;br /&gt;
# Have the customer tell you when they have sent the coins and have at least 1 confirmation (you can choose a number higher than 1 if you are worried about double-spending)&lt;br /&gt;
# Check blockexplorer to see if they sent the right amount (i.e. http://blockexplorer.com/q/getreceivedbyaddress/19hMEAaRMbEhfSkeU4GT8mgSuyR4t4M6TH/1) - the /1 is the number of confirmations you require&lt;br /&gt;
# Give them what they paid for&lt;br /&gt;
# After a reasonable amount of time has passed, you can re-use the address for another customer&lt;br /&gt;
&lt;br /&gt;
You could avoid having a list of addresses and reusing them if one of the wallet services someday lets you get a new address via API call, but this will work for now.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bad idea:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Selling bars of gold this way (owner of blockexplorer.com could rip you off)&lt;br /&gt;
* Selling anything as part of a serious business&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Good(?) idea:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Selling naked pictures of your grandma this way (owner of blockexplorer.com won&#039;t bother)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Why this should not be used in a serious setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
First of all 1 confirmation is too little. The block-chain can branch off and does often. This is what caused MyBitcoin.com to temporarily close as bitcoins were constantly leaking out.&lt;br /&gt;
Secondly you will become dependent of the proper functioning of MtGox and BlockExplorer. If either is compromised/corrupted/stops you will end up losing money and/or having to reprogram your system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Shameless begging:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If this info is useful to you, please consider a donation: 19hMEAaRMbEhfSkeU4GT8mgSuyR4t4M6TH&lt;br /&gt;
&lt;br /&gt;
Thanks to theymos for making changes to blockexplorer.com to make it even easier to do this. You can support blockexplorer.com by donating to 1Cvvr8AsCfbbVQ2xoWiFD1Gb2VRbGsEf28&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Thewinator</name></author>
	</entry>
</feed>