Bitcoin Forum
May 03, 2024, 01:28:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Automated transactions to addresses imported from a database  (Read 569 times)
User500 (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
April 08, 2014, 02:55:58 PM
Last edit: April 08, 2014, 05:00:38 PM by User500
 #1

Hello,


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!
1714742931
Hero Member
*
Offline Offline

Posts: 1714742931

View Profile Personal Message (Offline)

Ignore
1714742931
Reply with quote  #2

1714742931
Report to moderator
1714742931
Hero Member
*
Offline Offline

Posts: 1714742931

View Profile Personal Message (Offline)

Ignore
1714742931
Reply with quote  #2

1714742931
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714742931
Hero Member
*
Offline Offline

Posts: 1714742931

View Profile Personal Message (Offline)

Ignore
1714742931
Reply with quote  #2

1714742931
Report to moderator
1714742931
Hero Member
*
Offline Offline

Posts: 1714742931

View Profile Personal Message (Offline)

Ignore
1714742931
Reply with quote  #2

1714742931
Report to moderator
1714742931
Hero Member
*
Offline Offline

Posts: 1714742931

View Profile Personal Message (Offline)

Ignore
1714742931
Reply with quote  #2

1714742931
Report to moderator
OnkelPaul
Legendary
*
Offline Offline

Activity: 1039
Merit: 1003



View Profile
April 08, 2014, 03:02:03 PM
 #2

You're not specific enough.
When do you want to send the coins? Whenever someone enters an address? Once or several times a day?
Depending on this, your payout mechanism might look quite a bit different (directly embedded in your PHP versus running from a cron job).
I suppose that your altcoin wallet is mostly compatible to the bitcoin wallet with its RPC interface, so you will have to prepare a transaction that sends to one or more addresses and uses up the balance of one or more of your own addresses, and send this transaction to the wallet. I've never done this, so in reality it might be a bit more involved than this description, but it shouldn't be really hard.

Onkel Paul

User500 (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
April 08, 2014, 04:59:54 PM
 #3

Thank you for your fast reply.

The altcoin is quite similar to the newest bitcoin core 0.9.0
I want to send the coins as soon as someone enters his address.

For sending the coins the “sendfrom” api could be used, but how I connect the database with
my altcoin client and import the user addresses in the first place?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!