Author

Topic: Automated transactions to addresses imported from a database (Read 602 times)

newbie
Activity: 41
Merit: 0
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?
legendary
Activity: 1039
Merit: 1005
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
newbie
Activity: 41
Merit: 0
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!
Jump to: