Bitcoin Forum
May 08, 2024, 11:31:21 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Scritp to auto send bitcoins to person  (Read 4832 times)
french (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 1



View Profile
May 23, 2011, 10:50:50 PM
 #1

Hello, I am creating a site along the lines of bitcoin faucet but a little different.  I am wondering if there is a open source script or how I can go about of making it so that when someone clicks "submit" or "withraw" it automatically sends them lets say 1BTC.

Thanks for any help  Cheesy
1715167881
Hero Member
*
Offline Offline

Posts: 1715167881

View Profile Personal Message (Offline)

Ignore
1715167881
Reply with quote  #2

1715167881
Report to moderator
1715167881
Hero Member
*
Offline Offline

Posts: 1715167881

View Profile Personal Message (Offline)

Ignore
1715167881
Reply with quote  #2

1715167881
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715167881
Hero Member
*
Offline Offline

Posts: 1715167881

View Profile Personal Message (Offline)

Ignore
1715167881
Reply with quote  #2

1715167881
Report to moderator
1715167881
Hero Member
*
Offline Offline

Posts: 1715167881

View Profile Personal Message (Offline)

Ignore
1715167881
Reply with quote  #2

1715167881
Report to moderator
1715167881
Hero Member
*
Offline Offline

Posts: 1715167881

View Profile Personal Message (Offline)

Ignore
1715167881
Reply with quote  #2

1715167881
Report to moderator
bittrader
Jr. Member
*
Offline Offline

Activity: 42
Merit: 1



View Profile
May 23, 2011, 11:37:51 PM
 #2

What language do you want it in?
bittrader
Jr. Member
*
Offline Offline

Activity: 42
Merit: 1



View Profile
May 23, 2011, 11:42:54 PM
 #3

Someone posted a very simple PHP library for talking to the bitcoind server: http://forum.bitcoin.org/index.php?topic=9304.0

That would allow you to send bitcoins to someone by doing something like

Code:
include_once("Bitcoin.php");

$rpcUser = "username";
$rpcPass = "password";
$url = "http://localhost:8332";
$address = "whatever";
$amount = 5;

$bitcoin = new Bitcoin($url, $rpcUser, $rpcPass);

$bitcoin->sendToAddress($address, $amount);

(Untested code)

You would have to be running bitcoind on the same server as the web server.
Sawzall
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
May 25, 2011, 01:31:26 AM
 #4

If you want something more specific done, I've done a reasonable amount of PHP and I work cheap.
sentry
Newbie
*
Offline Offline

Activity: 88
Merit: 0


View Profile
May 25, 2011, 01:48:50 AM
Last edit: May 25, 2011, 06:41:33 AM by sentry
 #5

This is how to do it without the library, though you will need the JSON RPC Client, found here: http://jsonrpcphp.org/?page=download&lang=en

Code:
<?php
require_once "classes/jsonRPCClient.php";

define ("BC_HOST""127.0.0.1"); // set bc client addy
define ("BC_USER""user"); // set rpc user
define ("BC_PASS""pass"); // set rpc password
define ("BC_PORT""8332"); // set rpc port

$bitcoin = new jsonRPCClient("http://".BC_USER.":".BC_PASS."@".BC_HOST.":".BC_PORT);
?>


Then you have a list of functions you can do with their parameters here: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

For example for what you want to do:

Code:
<?php
$bitcoin
->sendtoaddress(<bitcoinaddress>, <amount>);
?>

Make sure the amount is not a string or you will get errors. Remember you can use the commands from that website in place of "sendtoaddress" to fit your needs.
darbsllim
Sr. Member
****
Offline Offline

Activity: 297
Merit: 251


Founder, Filmmaker, Fun Guy


View Profile
May 25, 2011, 08:56:36 AM
 #6

Sawzall, can you send some of your work examples?

Brad

Brad Mills,
Investor - Former miner - Former Bitcoin Business Owner - Survivor of the Great Bitcoin Crashes of 2011 and 2012, the MtGox Heist of 2014 & the 2017 crypto bubble.
Bitrated user: bradmillscan.
tennis
Sr. Member
****
Offline Offline

Activity: 343
Merit: 250


View Profile
February 22, 2014, 12:43:08 AM
 #7

Can anyone please help me set something lke this up?  I'm looking for a sort of "investment" tool as you will that automatically sends myself bitcoins every week, month, heck every year.  How can I find a faucet of sorts that auto-pays myself into another btc wallet from the faucet wallet over specified automated send times. 

How hard would this be to set up?
fuzzbuzz
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile WWW
July 07, 2014, 06:01:45 AM
 #8

This feature of

Auto-Forward/Send coins from Address A to Address B  automatically on intervals for payment systems

It should be built within the Wallet.

Just select the two addresses, the fee, desired amount , duration, and frequency of payment. Done

Any coins with this feature within the wallet already?
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!