Pages:
Author

Topic: PHP martingale bot for satoshiDICE (Read 32838 times)

newbie
Activity: 5
Merit: 0
July 12, 2015, 05:30:04 PM
Is it possible to convert these bots for blockchain.info wallet?

I Know This Topic Has Been Posted a long while ago(2012), but i think if its worthwhile i can have this script coded into working for blockchain.info wallet also.....

!!!If Requested!!!
sr. member
Activity: 336
Merit: 250
May 30, 2013, 10:15:08 PM
A PowerShell Version:

Code:
Write-Host "Satoshidice"

$min_bet = 0.01
$max_bet = 0.1
$address = "1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp"


$bet = $min_bet
$total_fees = 0
$count = 0
$count_won = 0


$starting_balance = ./bitcoind getbalance

while ($bet -le $max_bet -AND $count_won -le 100) {

$count ++
$balance_a = ./bitcoind getbalance

$tx = ./bitcoind sendtoaddress "$address" $bet

$balance_b = ./bitcoind getbalance

$fee = $balance_a - $balance_b - $bet
$total_fees += $fee

Write-Host "Game: $count"
Write-Host "Balance: $balance_a"
Write-Host "Bet: $bet"
Write-Host "Fee: $fee"
Write-Host "Total Fees: $total_fees"
Write-Host –NoNewLine "Balance: $balance_b Waiting "

$balance_c = 0
$last_c = 0

while ($balance_b -ge $balance_c)
{
$balance_c = ./bitcoind getbalance

if(  ($balance_c -eq $last_c) -OR ($last_c -eq 0) )
{
Write-Host –NoNewLine "."
}else
{
Write-Host "Balance: $balance_c"
}

$last_c = $balance_c

}

$diff = $balance_c - $balance_b

if ($diff -gt $bet)
{
$bet = $min_bet
$count_won = $count_won + 1
Write-Host "Win! ($count_won out of $count)"
}else
{
$bet = $bet * 2
Write-Host "Lose!"
}

Write-Host ""
}


If someone thinks this is worth a donation... 1J66vZHf1oFPHFhjFBtbEqxkJahdF3vetu

Thanks payb.tc for your nice PHP Script :0) Donation on the way

How to run a powershell script ? thanks in advance
hero member
Activity: 812
Merit: 1000
March 21, 2013, 10:38:06 PM
Every time I run this script, it ends up creating a new Bitcoin wallet, what's wrong with it!?

if you're referring to the script in the OP, you probably mean it's creating a new address, not a new wallet. in that case, that's what the normal bitcoin client was designed to do, and has nothing to do with the martingale script.


Why the script does that? Is there a meaningful reason for that? And, I wonder, is it possible to modify the script in such way that it uses the same address every time? Excuse the sack of questions, I'm still learning my way around it, and any help means a lot. Thanks!

no, the script is simply telling bitcoin to send a transaction. beyond that, it doesn't have control over change addresses, etc.

what you're asking is related to how the bitcoin software works, not how the PHP script in the OP works.
member
Activity: 90
Merit: 10
March 21, 2013, 07:54:23 PM
Every time I run this script, it ends up creating a new Bitcoin wallet, what's wrong with it!?

if you're referring to the script in the OP, you probably mean it's creating a new address, not a new wallet. in that case, that's what the normal bitcoin client was designed to do, and has nothing to do with the martingale script.


Why the script does that? Is there a meaningful reason for that? And, I wonder, is it possible to modify the script in such way that it uses the same address every time? Excuse the sack of questions, I'm still learning my way around it, and any help means a lot. Thanks!
hero member
Activity: 812
Merit: 1000
March 21, 2013, 05:32:27 PM
Every time I run this script, it ends up creating a new Bitcoin wallet, what's wrong with it!?

if you're referring to the script in the OP, you probably mean it's creating a new address, not a new wallet. in that case, that's what the normal bitcoin client was designed to do, and has nothing to do with the martingale script.
member
Activity: 90
Merit: 10
March 21, 2013, 09:28:33 AM
Every time I run this script, it ends up creating a new Bitcoin wallet, what's wrong with it!?
legendary
Activity: 1148
Merit: 1018
March 11, 2013, 01:50:02 PM
Martingale is nice !!

Code:
2013-03-10 06:41:26 lessthan 32000 3d61afe0 31c90c0a 1LuckyW CONFIRMED 340.00000000 LOSE 1.70000000 37037
2013-03-10 06:35:23 lessthan 32000 6d2a7d7a aa7a74c6 1LuckyW CONFIRMED 12.50000000 LOSE 0.06250000 36684
2013-03-10 05:57:16 lessthan 32000 36585c54 754cf1b4 1LuckyW CONFIRMED 160.00000000 LOSE 0.80000000 57053
2013-03-10 05:51:27 lessthan 32000 72bf3c36 10e9b860 1LuckyW CONFIRMED 70.00000000 LOSE 0.35000000 49794
2013-03-10 05:43:10 lessthan 32000 945a9f86 397f6c87 1LuckyW CONFIRMED 12.50000000 WIN 25.04810000 5526
2013-03-10 05:42:50 lessthan 32000 dec73088 8d4ee4d2 1LuckyW CONFIRMED 30.00000000 LOSE 0.15000000 51420
2013-03-10 05:36:21 lessthan 32000 30dd3084n 7f07f427 1LuckyW CONFIRMED 12.50000000 LOSE 0.06250000 60988
2013-03-10 04:54:46 lessthan 32000 5b74aa38 e9b0838e 1LuckyW CONFIRMED 70.00000000 WIN 140.26936000 20218
2013-03-10 04:53:09 lessthan 32000 8b8f4870 caf86389 1LuckyW CONFIRMED 30.00000000 LOSE 0.15000000 43175


12 / 30 / 70 / 160 / 340 = -28K$  just to try cover  a 12btc loss



edit : http://satoshidice.com/lookup.php?tx=1LuckyWwuK7CMF9PveFT4ZXbBcDz6xripS&limit=1000&min_bet=12&status=ALL


Well, eventually a consecutive strek of 20 losses will happen. And that will not only end up eating all the mini-wins previously made through martingale, but it's very likely to destroy even the biggest roll.

Martingale sucks big time... Not for Satoshidice owners, of course Wink
legendary
Activity: 2072
Merit: 1001
March 10, 2013, 03:05:21 PM
Martingale is nice !!

Code:
2013-03-10 06:41:26 lessthan 32000 3d61afe0 31c90c0a 1LuckyW CONFIRMED 340.00000000 LOSE 1.70000000 37037
2013-03-10 06:35:23 lessthan 32000 6d2a7d7a aa7a74c6 1LuckyW CONFIRMED 12.50000000 LOSE 0.06250000 36684
2013-03-10 05:57:16 lessthan 32000 36585c54 754cf1b4 1LuckyW CONFIRMED 160.00000000 LOSE 0.80000000 57053
2013-03-10 05:51:27 lessthan 32000 72bf3c36 10e9b860 1LuckyW CONFIRMED 70.00000000 LOSE 0.35000000 49794
2013-03-10 05:43:10 lessthan 32000 945a9f86 397f6c87 1LuckyW CONFIRMED 12.50000000 WIN 25.04810000 5526
2013-03-10 05:42:50 lessthan 32000 dec73088 8d4ee4d2 1LuckyW CONFIRMED 30.00000000 LOSE 0.15000000 51420
2013-03-10 05:36:21 lessthan 32000 30dd3084n 7f07f427 1LuckyW CONFIRMED 12.50000000 LOSE 0.06250000 60988
2013-03-10 04:54:46 lessthan 32000 5b74aa38 e9b0838e 1LuckyW CONFIRMED 70.00000000 WIN 140.26936000 20218
2013-03-10 04:53:09 lessthan 32000 8b8f4870 caf86389 1LuckyW CONFIRMED 30.00000000 LOSE 0.15000000 43175


12 / 30 / 70 / 160 / 340 = -28K$  just to try cover  a 12btc loss



edit : http://satoshidice.com/lookup.php?tx=1LuckyWwuK7CMF9PveFT4ZXbBcDz6xripS&limit=1000&min_bet=12&status=ALL


Sd relies on suckers to profit. Poor math skills equals money for them. You know the old saying, there is one born every minute.
The funniest part is that they get no free drinks, food, hotel room, socialization in nice atmosphere, etc. At least some small token for their losses. They just sit in their underwear in front of pc and give their money away. Hilarious.
sr. member
Activity: 476
Merit: 250
March 10, 2013, 01:22:15 PM
Martingale is nice !!

Code:
2013-03-10 06:41:26 lessthan 32000 3d61afe0 31c90c0a 1LuckyW CONFIRMED 340.00000000 LOSE 1.70000000 37037
2013-03-10 06:35:23 lessthan 32000 6d2a7d7a aa7a74c6 1LuckyW CONFIRMED 12.50000000 LOSE 0.06250000 36684
2013-03-10 05:57:16 lessthan 32000 36585c54 754cf1b4 1LuckyW CONFIRMED 160.00000000 LOSE 0.80000000 57053
2013-03-10 05:51:27 lessthan 32000 72bf3c36 10e9b860 1LuckyW CONFIRMED 70.00000000 LOSE 0.35000000 49794
2013-03-10 05:43:10 lessthan 32000 945a9f86 397f6c87 1LuckyW CONFIRMED 12.50000000 WIN 25.04810000 5526
2013-03-10 05:42:50 lessthan 32000 dec73088 8d4ee4d2 1LuckyW CONFIRMED 30.00000000 LOSE 0.15000000 51420
2013-03-10 05:36:21 lessthan 32000 30dd3084n 7f07f427 1LuckyW CONFIRMED 12.50000000 LOSE 0.06250000 60988
2013-03-10 04:54:46 lessthan 32000 5b74aa38 e9b0838e 1LuckyW CONFIRMED 70.00000000 WIN 140.26936000 20218
2013-03-10 04:53:09 lessthan 32000 8b8f4870 caf86389 1LuckyW CONFIRMED 30.00000000 LOSE 0.15000000 43175


12 / 30 / 70 / 160 / 340 = -28K$  just to try cover  a 12btc loss



edit : http://satoshidice.com/lookup.php?tx=1LuckyWwuK7CMF9PveFT4ZXbBcDz6xripS&limit=1000&min_bet=12&status=ALL
sr. member
Activity: 364
Merit: 252
March 09, 2013, 11:48:55 PM
Code:
function get_result($mode, $bet_txid, $game_name)
{
unset($r);
$jsonurl = "http://satoshiroulette.com/log.api.php?txid=$bet_txid&mode=$mode";

while(! isset($r->{$game_name}) )
{
$json = file_get_contents($jsonurl);
$r = json_decode($json);
if(isset($r->{$game_name}))
{
$result = $r->{$game_name};
}
print ".";
$s = rand($GLOBALS['sleep'], $GLOBALS['sleep_max']);
sleep($s);
}
return $result;
}

 like the example above,can we  query to result directly from the satoshidice website.

$jsonurl = "http://www.satoshidice.com/lookup.php?tx=$bet_txid&limit=250&min_bet=0&status=ALL&format=json";

Unfortunately SatoshiDice do not not have such an API currently, we encourage them to add one like our own so blockspam can be reduced.
donator
Activity: 2058
Merit: 1007
Poor impulse control.
March 06, 2013, 02:39:17 AM
As Kano said though, a reliable way of beating a negative house edge does not exist or is currently unknown.

Perhaps a clearer minded thinker would interpret Kano's comment as "a reliable way of beating a negative expectation is to not bet against the house".
sr. member
Activity: 364
Merit: 252
March 05, 2013, 09:55:50 PM
I have a specific system that I'd like to get some help based upon a variant of the martingale system.  I'll pay a bounty of 2 btc if someone can help me develop it. (I have absolutely no skills at php/json or any of that) Just FYI manually inputting my system has given me 120btc profit in the last month.  PM me for details.

If you dont mind sharing your system we would be happy to incorporate it into our martingale bot.
Our bot currently targets our own games: http://satoshiroulette.com/ but we are in the process of enabling support for other casinos as well. You could even take advantage of one of the many alt currencies we support and test drive it with say terracoin first before moving up to bitcoin on satoshidice.

As Kano said though, a reliable way of beating a negative house edge does not exist or is currently unknown.
If you have turned probability on its head I cant wait to see it Cheesy

Please PM myself for details.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
March 05, 2013, 03:58:00 PM
I have a specific system that I'd like to get some help based upon a variant of the martingale system.  I'll pay a bounty of 2 btc if someone can help me develop it. (I have absolutely no skills at php/json or any of that) Just FYI manually inputting my system has given me 120btc profit in the last month.  PM me for details.
You do realise that there is no 'system' to beat SD right?
Unless you can determine the lucky numbers in advance or guarantee double spending, it simply is impossible.
full member
Activity: 198
Merit: 100
March 05, 2013, 01:06:35 PM
I have a specific system that I'd like to get some help based upon a variant of the martingale system.  I'll pay a bounty of 2 btc if someone can help me develop it. (I have absolutely no skills at php/json or any of that) Just FYI manually inputting my system has given me 120btc profit in the last month.  PM me for details.
legendary
Activity: 2940
Merit: 1330
March 01, 2013, 05:35:33 PM
Lulz - funny Smiley
History doesn't affect the next bet Tongue

This, exactly.

Your number is determined entirely by:
  a) your transaction id (which is set by your client before your bet leaves your computer)
and
  b) the site's daily secret (which was set before the site started running)

It makes no difference who bets before you, or what number they got.

Your strategy is similar to waiting for three people to roll a 7 in craps before you start playing.  You can do it if you like, but it doesn't affect your chances of winning.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
March 01, 2013, 04:55:22 PM
I have one question: Could it be possible for the bot to acces the real time bets as they appear on "recent" tab on sd site, or at least  last bet, check the number and bet only if x > y , where y is "no less than  number we play.
For example I want to only play : Less that 32768 which is 50%, for a fixed amount but I want the bot to check last number on recent tab and if that number is > 32768 alow to bet,  if it is < 32768 stop and wait till next number is greater than 32768 then play.So could this be made possible?
I know its a bit out of this topic but it is /can be connected to it.
Lulz - funny Smiley
History doesn't affect the next bet Tongue
hero member
Activity: 505
Merit: 500
March 01, 2013, 04:11:12 PM
I have one question: Could it be possible for the bot to acces the real time bets as they appear on "recent" tab on sd site, or at least  last bet, check the number and bet only if x > y , where y is "no less than  number we play.
For example I want to only play : Less that 32768 which is 50%, for a fixed amount but I want the bot to check last number on recent tab and if that number is > 32768 alow to bet,  if it is < 32768 stop and wait till next number is greater than 32768 then play.So could this be made possible?
I know its a bit out of this topic but it is /can be connected to it.
legendary
Activity: 2940
Merit: 1330
February 14, 2013, 03:29:51 PM
Unless you have 50 billion... But then why would you Martingale just to double the first bet? It's kinda stupid to bet, let's say 512 BTC (cumulative bet 1023 BTC), to win only 1 BTC.

Actually, if I have 1023 BTC and need 1024 BTC, it's about 100 times more cost effective to bet 1 BTC and martingale up to 512 than it is to bet the whole 1023 BTC on a '1-in-1023' bet (if such a thing existed).

Of course, both strategies are a bad idea - you can expect to lose on average.  But you can expect to lose 100 times less on average if you do a sequence of up to 10 martingale bets than if you make a single large bet.
legendary
Activity: 1148
Merit: 1018
February 14, 2013, 04:25:30 AM

Well, if you play long enough, your losses will get arbitrarily close to the house edge.

But if you only play a few times you can end up making a profit.

The guy who only ever makes one bet and doubles his stake has "escaped the house edge", hasn't he?

I assume that the purpose of a bot is to play long enough.

No, anyone using a bot is likely to have played too long. The longer you play, the more likely your luck tends to expected, and the vloser you tend to get to a loss equating to the house edge. That's just rephrasing what dooglus wrote.

It boils down to: the longer you martingale, the more likely your winnngs are to be a range that can be mathematically described as follows:

Code:
lost your shirt <  earnings <  (1 - house edge) * amount you bet


The longer you martingale, the more likely you will lose enough times in a row to loose all your money. Bets grow exponentially, money is not infinite.

Unless you have 50 billion... But then why would you Martingale just to double the first bet? It's kinda stupid to bet, let's say 512 BTC (cumulative bet 1023 BTC), to win only 1 BTC.
sr. member
Activity: 364
Merit: 252
February 14, 2013, 01:46:41 AM
replying here as this bot was our direct inspiration for our own (and even the reason we chose php).

https://bitcointalksearch.org/topic/satoshi-roulette-martingale-bot-update-2-142326

Great work btw Smiley
Pages:
Jump to: