<p><a href="http://blockchain.info/api/blockchain_wallet_api" rel="nofollow">http://blockchain.info/api/blockchain_wallet_api</a></p>

<p>The api call to send is:</p>

<pre><code>https://blockchain.info/merchant/$guid/payment?password=$main_password&amp;second_password=$second_password&amp;to=$address&amp;amount=$amount&amp;from=$from&amp;shared=$shared&amp;fee=$fee¬e=$note
</code></pre>

<p>In PHP, replace all the variables (they start with a $ in example up above) with your actual info. Some of the parameters in the url are optional so visit the page I linked to see which ones are optional. Keep the url as a string and feed it in to this:</p>

<pre><code>$result = file_get_contents($the_url_you_just_made);
</code></pre>

<p>This should send a payment as soon as it runs, you may want to read the resulting string, it will contain the error message if anything goes wrong. The response is detailed on the link and you can try out URLs in browser as well, just type in GUID, amount, address, etc in the correct places.</p>

CC BY-SA 3.0
2014-01-08T09:24:57.330Z
Thanks boss,now that's what I wanted when asked for the question
avi
CC BY-SA 4.0
2020-04-26T14:04:27.760Z
How to make the API call in a dummy way i.e. in a sanbox manner just like PayPal ?
Istiaque Ahmed
CC BY-SA 3.0
2014-01-08T09:17:04.187Z
2014-01-08T09:17:04.187Z
John T
<p>I want to send payment to bitcoin address weekly from my bitcoin address,I have tried blockchain api but can't seem to find an answer.Need help.</p>

CC BY-SA 3.0
2014-01-08T08:20:19.833Z
Any suggestion on what language or system to use? (javascript, node.js, wordpress, php, etc)
John T
CC BY-SA 3.0
2014-01-08T08:44:10.567Z
This question is little scarce on details. Would you like to eloborate more what kind of wallets and what kind of transactions you need to do?
Mikko Ohtamaa
CC BY-SA 3.0
2014-01-08T09:02:05.200Z
Yeah,what I want is to send bitcoins to others,so I guess I need to send to their bitcoin address  and that too weekly,and I want to do it in PHP,
avi
<bitcoind><payment>
send payment from one address to another from my website
avi
# send payment from one address to another from my website

(Asked by: username_0 on 2014-01-08)

I want to send payment to bitcoin address weekly from my bitcoin address,I have tried blockchain api but can't seem to find an answer.Need help.

**Tags:** bitcoind, payment

> **Comments:**
> **username_1**: Any suggestion on what language or system to use? (javascript, node.js, wordpress, php, etc)  
> **username_2**: This question is little scarce on details. Would you like to eloborate more what kind of wallets and what kind of transactions you need to do?  
> **username_0**: Yeah,what I want is to send bitcoins to others,so I guess I need to send to their bitcoin address  and that too weekly,and I want to do it in PHP,  

---

## 1 answers

### Answer by username_1 on 2014-01-08. Score: 2 | Accepted answer

<http://blockchain.info/api/blockchain_wallet_api>

The api call to send is:

```
https://blockchain.info/merchant/$guid/payment?password=$main_password&second_password=$second_password&to=$address&amount=$amount&from=$from&shared=$shared&fee=$fee¬e=$note

```

In PHP, replace all the variables (they start with a $ in example up above) with your actual info. Some of the parameters in the url are optional so visit the page I linked to see which ones are optional. Keep the url as a string and feed it in to this:

```
$result = file_get_contents($the_url_you_just_made);

```

This should send a payment as soon as it runs, you may want to read the resulting string, it will contain the error message if anything goes wrong. The response is detailed on the link and you can try out URLs in browser as well, just type in GUID, amount, address, etc in the correct places.

> **Comments:**
> **username_0**: Thanks boss,now that's what I wanted when asked for the question  
> **username_3**: How to make the API call in a dummy way i.e. in a sanbox manner just like PayPal ?  

---

