<?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=Vladorz</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=Vladorz"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Vladorz"/>
	<updated>2026-05-15T20:35:04Z</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=32155</id>
		<title>Lazy API</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Lazy_API&amp;diff=32155"/>
		<updated>2012-10-28T18:32:11Z</updated>

		<summary type="html">&lt;p&gt;Vladorz: /* Solution for receiving bitcoins */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the incredibly lazy and/or incompetent web developer, present is 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;
==Problem==&lt;br /&gt;
&lt;br /&gt;
Lazy web designer 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;
==Solution for sending bitcoins==&lt;br /&gt;
&lt;br /&gt;
Use the [https://mtgox.com/support/tradeAPI MtGox API]&lt;br /&gt;
&lt;br /&gt;
==Solution for receiving bitcoins==&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 by getting a new address via API call from one of the wallet services that support this feature (e.g. https://instawallet.org/static/api).&lt;br /&gt;
&lt;br /&gt;
==Risks==&lt;br /&gt;
&lt;br /&gt;
===External Service===&lt;br /&gt;
&lt;br /&gt;
BlockExplorer is a service that is provided by a private party.  There is no guarantee that the information provided by BlockExplorer matches the blockchain.&lt;br /&gt;
&lt;br /&gt;
There have not been any reports that BlockExplorer has reported transaction data incorrectly.&lt;br /&gt;
&lt;br /&gt;
===Double Spending===&lt;br /&gt;
&lt;br /&gt;
A merchant is exposed to a [[double-spending]] attack when recognizing a payment before it has been [[confirmation|confirmed]] with a sufficient number of blocks.&lt;br /&gt;
&lt;br /&gt;
For an attacker to be successful with this double spend tactic a significant effort is required and thus the risk of this attack being made against the typical retail merchant is pretty minimal.  It would not be advisable for a merchant with little to no recourse against an attacker to accept payment without a sufficient number of confirmations however.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[BitAddress]] Generate address and private key pairs for an offline wallet&lt;br /&gt;
* [[BitcoinNotify]] Register addresses and receive email or SMS alerts when a payment to that address occurs&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Vladorz</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Lazy_API&amp;diff=32154</id>
		<title>Lazy API</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Lazy_API&amp;diff=32154"/>
		<updated>2012-10-28T13:47:45Z</updated>

		<summary type="html">&lt;p&gt;Vladorz: /* Solution for receiving bitcoins */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For the incredibly lazy and/or incompetent web developer, present is 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;
==Problem==&lt;br /&gt;
&lt;br /&gt;
Lazy web designer 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;
==Solution for sending bitcoins==&lt;br /&gt;
&lt;br /&gt;
Use the [https://mtgox.com/support/tradeAPI MtGox API]&lt;br /&gt;
&lt;br /&gt;
==Solution for receiving bitcoins==&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 by getting a new address via API call from one of the wallet services that support this feature (i.e. https://instawallet.org/static/api).&lt;br /&gt;
&lt;br /&gt;
==Risks==&lt;br /&gt;
&lt;br /&gt;
===External Service===&lt;br /&gt;
&lt;br /&gt;
BlockExplorer is a service that is provided by a private party.  There is no guarantee that the information provided by BlockExplorer matches the blockchain.&lt;br /&gt;
&lt;br /&gt;
There have not been any reports that BlockExplorer has reported transaction data incorrectly.&lt;br /&gt;
&lt;br /&gt;
===Double Spending===&lt;br /&gt;
&lt;br /&gt;
A merchant is exposed to a [[double-spending]] attack when recognizing a payment before it has been [[confirmation|confirmed]] with a sufficient number of blocks.&lt;br /&gt;
&lt;br /&gt;
For an attacker to be successful with this double spend tactic a significant effort is required and thus the risk of this attack being made against the typical retail merchant is pretty minimal.  It would not be advisable for a merchant with little to no recourse against an attacker to accept payment without a sufficient number of confirmations however.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[BitAddress]] Generate address and private key pairs for an offline wallet&lt;br /&gt;
* [[BitcoinNotify]] Register addresses and receive email or SMS alerts when a payment to that address occurs&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Vladorz</name></author>
	</entry>
</feed>