<p>You need to speak with each wallet through it's JSON RPC API. To speak with the wallet you need to write some code.</p>

<p>If you want to test this api go to your wallet in the menu Help->Debug->Console and write the 'help' command, it will give you the list of all the available commands.</p>

<p>To enable this RPC for external applications you need to create a <code>.conf</code> file. Try to run the wallet from the command line and it should complain that you must create this file. This file contains the credentials that external applications use to access the json-rpc api of the wallet. This is different than the password that you need in order to send the coins.</p>

<p>There are some security considerations that you need to keep in mind:</p>

<ul>
<li><p>by default the JSON RPC calls are transmitted in plain text so you need to enable encryption explicitly</p></li>
<li><p>minimize the amount of coins you have in the server hot wallet. Instead use one external script to replenish the wallet as needed (also it could compare the addresses in the database with the amount spent)</p></li>
<li><p>set the credentials for the wallet access in a secure way</p></li>
</ul>

CC BY-SA 3.0
2014-04-14T11:00:55.463Z
2014-04-14T11:00:55.463Z
John L. Jegutanis
<p>I want to create a website where people can submit their altcoin address and they receive some for free.</p>

<p>The addresses are saved in a MySQL database and the transactions are send from just one address.</p>

<p>How do I have to connect the database with the altcoin client so the transactions to the user addresses are processed automatically?  </p>

<p>Thank you in advance!</p>

CC BY-SA 3.0
2014-04-08T15:36:28.933Z
Most altcoin clients provide an API.  So the short answer to your question is "write some code that fetches the addresses from the database and calls the altcoin client API to send the coins".
Nate Eldredge
<transactions><database><mysql>
Automated transactions to addresses from database
user3423840
# Automated transactions to addresses from database

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

I want to create a website where people can submit their altcoin address and they receive some for free.

The addresses are saved in a MySQL database and the transactions are send from just one address.

How do I have to connect the database with the altcoin client so the transactions to the user addresses are processed automatically?

Thank you in advance!

**Tags:** transactions, database, mysql

> **Comments:**
> **username_1**: Most altcoin clients provide an API.  So the short answer to your question is "write some code that fetches the addresses from the database and calls the altcoin client API to send the coins".  

---

## 1 answers

### Answer by username_2 on 2014-04-14. Score: 1 | Accepted answer

You need to speak with each wallet through it's JSON RPC API. To speak with the wallet you need to write some code.

If you want to test this api go to your wallet in the menu Help->Debug->Console and write the 'help' command, it will give you the list of all the available commands.

To enable this RPC for external applications you need to create a `.conf` file. Try to run the wallet from the command line and it should complain that you must create this file. This file contains the credentials that external applications use to access the json-rpc api of the wallet. This is different than the password that you need in order to send the coins.

There are some security considerations that you need to keep in mind:

* by default the JSON RPC calls are transmitted in plain text so you need to enable encryption explicitly
* minimize the amount of coins you have in the server hot wallet. Instead use one external script to replenish the wallet as needed (also it could compare the addresses in the database with the amount spent)
* set the credentials for the wallet access in a secure way


---

