Bitcoin Forum
April 26, 2024, 12:40:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Economy / Trading Discussion / Re: PHP martingale bot for satoshiDICE on: February 08, 2013, 05:20:11 AM
Made 2.46 bitcoin in total. I think I'm done gambling forever!



The last I heard from him:
  "[11:31:16 PM] made a whole bitcoin tonight!!"

hopefully that's not "the last we hear from him" Cheesy

quit while you're ahead KJ!

2  Bitcoin / Bitcoin Technical Support / Bitcoin-qt freezes? on: February 07, 2013, 11:25:00 PM
So after running a martingale bot which is surprisingly not run my dry yet, I have 1500 confirmed transactions, and 0 unconfirmed. This has made my bitcoin-qt client lag for some reason and I cannot click the buttons at the top which say Transactions, etc. I still can minimize it though. I've restarted it a few times and nothing has worked. Note: It is in server mode and it needs to stay this way.
3  Other / Archival / Re: Pictures of your mining rigs! on: February 07, 2013, 06:35:51 AM
last days of my btc rig:

27 icarus on a tplink 730n


 
here.

Wow. How much is that worth in total and how much does it produce a month?
4  Economy / Trading Discussion / Re: PHP martingale bot for satoshiDICE on: February 06, 2013, 08:01:56 PM
Using your script, localhost as allowed ip in conf. Running from command line. Still get that http error Sad



I don't think that will work as when I just run it for 30 seconds I get a repeat of this once it's done

Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\xampp\htdocs\jsonRPCClient.php on line 132

Run the script on the command line:

  php bot.php

not from a web server.

Try using my script and the json-rpc PHP file that's with it.  It has better error handling.

  https://github.com/dooglus/sdbot
5  Economy / Trading Discussion / Re: PHP martingale bot for satoshiDICE on: February 06, 2013, 07:55:33 AM
I don't think that will work as when I just run it for 30 seconds I get a repeat of this once it's done

Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\xampp\htdocs\jsonRPCClient.php on line 132

Just ran the loop thing for about 5 minutes and no trades made. Sad

I'm gonna try your script as it looks 1000x better.

Here is an error I get:

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\bot2.php on line 132



BTC2 received, thanks.  Good luck! (you'll need it if you plan to use martingale betting for very long...)
When you run PHP on a web server there is typically a 30s time limit.
You can increase that in the PHP code with:
 set_time_limit(3600);
Which will mean an hour from the time that was executed.
Though if you put that in the correct loop (probably the innermost loop?) it will stop it from ever timing out.
6  Economy / Trading Discussion / Re: PHP martingale bot for satoshiDICE on: February 06, 2013, 05:14:45 AM
I'm gonna try your script as it looks 1000x better.

Here is an error I get:

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\bot2.php on line 132



BTC2 received, thanks.  Good luck! (you'll need it if you plan to use martingale betting for very long...)
7  Economy / Trading Discussion / Re: PHP martingale bot for satoshiDICE on: February 06, 2013, 01:58:27 AM
Okay so I'm still confused.

This is what I currently have in my bitcoin.conf:
rpcuser=KJTetc
rpcpassword=(my pass lol)
rpcallowip=*
server=1

And this is my bot which is in htdocs which also has JSONrpcClient in it.

 
Code:
<?php
require_once('jsonRPCClient.php');
$b = new jsonRPCClient('http://KJTetc:MyRpcpass@localhost:8332/');

define('MIN_BET'0.01);
define('MAX_BET'6);
define('ADDRESS''1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp');

$bet MIN_BET;
$total_fees 0;
$count 0;
$count_won 0;

while ((
$bet <= MAX_BET) && ($count_won 100))
{
        
$count++;

        
$balance_a $b->getbalance('*'0);
        if (!isset(
$starting_balance)) $starting_balance $balance_a;
        
$b->sendtoaddress(ADDRESS, (float) $bet);
        
$balance_b $b->getbalance('*'0);

        
$fee $balance_a $balance_b $bet;
        
$total_fees += $fee;
        
$total_fees number_format($total_fees,8,'.','')+0;

        echo 
'Game #'.$count."\n";
        echo 
'Balance: ' $balance_a."       ";
        echo 
'Bet: '$bet."       ";
        echo 
'Fee: '. (number_format($fee8'.''') +0) . "       ";
        echo 
'Total Fees: '$total_fees"\n";
        echo 
'Balance: ' $balance_b "       ".'Waiting';

        
$balance_c 0;

        while (
$balance_b >= $balance_c)
        {
        sleep(4);
$balance_c $b -> getbalance('*'0);
echo '.';
        }

        echo 
"\nBalance: $balance_c       ";

        
$diff $balance_c $balance_b;

        if (
$diff $bet)
        {
                
$bet MIN_BET;
                
$count_won++;
                echo 
"Win! ($count_won out of $count)\n";
        }
        else
        {
                
$bet *= 2;
                echo 
'Lose!'."\n";
        }

        echo 
"\n";
}

echo 
'Starting Balance: '.$starting_balance."\n";
echo 
'Ending Balance  : '$balance_c."\n";
echo 
'Total Fees: '$total_fees."\n";
$amt_won $balance_c $starting_balance;
echo 
'Net Profit: '. (number_format($amt_won,8,'.','') + 0). "\n\n";

I get this error:


Code:
Warning: fopen(http://...@localhost:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\xampp\htdocs\jsonRPCClient.php on line 132

Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://KJTetc:*****@localhost:8332/' in C:\xampp\htdocs\jsonRPCClient.php:140 Stack trace: #0 C:\xampp\htdocs\bot2.php(20): jsonRPCClient->__call('sendtoaddress', Array) #1 C:\xampp\htdocs\bot2.php(20): jsonRPCClient->sendtoaddress('1dice8EMZmqKvrG...', 0.01) #2 {main} thrown in C:\xampp\htdocs\jsonRPCClient.php on line 140





BTC2 received, thanks.  Good luck! (you'll need it if you plan to use martingale betting for very long...)
8  Bitcoin / Project Development / Re: Any game developers out there? Developing next step of online gambling on: February 03, 2013, 11:35:58 PM
Hey Piachu aren't you the guy that made btc tip bot really popular?
9  Economy / Trading Discussion / Re: PHP martingale bot for satoshiDICE on: February 03, 2013, 11:34:03 PM
What do I have near the top as the ip address? I get this error right now :

Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\jsonRPCClient.php on line 86


Your bitcoin client prob need to be in server mode and listening on 127.0.0.1 which is local loopback ip addy.

How do I start it in server mode? I think I saw a script a while ago on it but I can't remember...
10  Bitcoin / Bitcoin Discussion / Re: Anonymity & Bitcoin - do we really need it? on: February 03, 2013, 07:27:34 AM
I believe BlockChain offers something which prevents them posting your transactions. That's all I have to contribute here. I'm not one to care for anonymity, as bitcoins are an investment to me, not a method of buying drugs  Wink
11  Economy / Lending / Re: 1.30 BTC needed! on: February 03, 2013, 05:19:46 AM
where are your funds held up? mtgox, dwolla, etc ?

Sent you a message.
12  Economy / Trading Discussion / Re: PHP martingale bot for satoshiDICE on: February 03, 2013, 04:19:13 AM
That website is down so I downloaded a different version off of github... Guessing that will mess it up..   (Check post above)
So I've got a good understanding of PHP but never heard of JSON. I've got everything you said. How do I make it work?  Roll Eyes



http://bitcoin.org -> install bitcoin
http://www.apachefriends.org/en/xampp.html -> install xampp (which includes php)

have a read of https://en.bitcoin.it/wiki/PHP_developer_intro

http://jsonrpcphp.org -> get jsonRPCClient.php


the OP was aimed at coders who already have the basic dev environment set up.
Download jsonRPCClient.php, place it in same directory.

But don't try martingale. I lost 100BTC  Embarrassed
13  Economy / Trading Discussion / Re: PHP martingale bot for satoshiDICE on: February 03, 2013, 04:16:28 AM
What do I have near the top as the ip address? I get this error right now :

Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\jsonRPCClient.php on line 86
14  Economy / Gambling / Re: Satoshi Roullette didn't send anything back? on: February 03, 2013, 04:09:11 AM
I did a few bets on them and they actually did until that one :/
15  Economy / Trading Discussion / Re: PHP martingale bot for satoshiDICE on: February 03, 2013, 03:58:21 AM
So I've got a good understanding of PHP but never heard of JSON. I've got everything you said. How do I make it work?  Roll Eyes



http://bitcoin.org -> install bitcoin
http://www.apachefriends.org/en/xampp.html -> install xampp (which includes php)

have a read of https://en.bitcoin.it/wiki/PHP_developer_intro

http://jsonrpcphp.org -> get jsonRPCClient.php


the OP was aimed at coders who already have the basic dev environment set up.
16  Economy / Lending / Re: 1.30 BTC needed! on: February 03, 2013, 03:24:11 AM
I can't do photo ID at the moment. I'll get back to you though.
17  Economy / Lending / 1.30 BTC needed! on: February 03, 2013, 03:04:17 AM
I've got funds on hold so I can't buy any coin right now. I can pay it back on Febuary 4th when my funds get released. I know I have a low post count but if there's anyone out there??  Huh
18  Economy / Gambling / [RESOLVED-THANKS]Satoshi Roullette didn't send anything back? on: February 03, 2013, 02:56:43 AM
Status: 111 confirmations, broadcast through 5 nodes
Date: 02/02/2013 01:19
To: roulette-red 19QouqvFynCoe8i4nqurXGR8Kox3RzoXys
Debit: -0.16 BTC
Transaction fee: -0.0005 BTC
Net amount: -0.1605 BTC
Transaction ID: a17efe6497e14ed967e6cefd41e8e1e29a8b7cc9403667d5f8c3534ac4274106



Been 24 hours and absolutely nothing back...
19  Other / Beginners & Help / Re: For those on reddit who think the forums comprimised on: February 01, 2013, 05:47:39 AM
What made them think that?
20  Other / Beginners & Help / Re: Bitcoins- Offline Purchasing? on: February 01, 2013, 05:46:19 AM
There is a site where you can find local vendors in your area. I'll link it in a sec.
Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!