Bitcoin Forum
May 13, 2024, 07:09:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they believe that the creator of this topic displays some red flags which make them high-risk. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: 1 2 [All]
  Print  
Author Topic: Yet another martingale bot for SatoshiDice (Java app)  (Read 11043 times)
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
October 10, 2012, 04:57:22 PM
 #1

It's a Java application. Requires http://code.google.com/p/json-simple/ to build and parse JSON.

Code:
// (c) 2012 Come-from-Beyond

import java.io.InputStream;
import java.io.OutputStream;
import java.net.Authenticator;
import java.net.HttpURLConnection;
import java.net.PasswordAuthentication;
import java.net.URL;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;

public final class SDMB
{
public static void main(String[] args)
{
try
{
Authenticator.setDefault(new Authenticator()
{
protected PasswordAuthentication getPasswordAuthentication()
{
return new PasswordAuthentication ("username", "password".toCharArray());
}
});

while (true)
{
double bet=((double)(balance(1)/135))/100000000;
if (bet<0.01)
{
Thread.sleep(1000);
continue;
}
for (int i=0; i<7; i++)
{
final long balance1=balance(0);

final JSONObject request=new JSONObject();
request.put("method", "sendtoaddress");
final JSONArray params;
(params=new JSONArray()).add("1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp");
params.add(bet);
request.put("params", params);
sendRequest(request);

final long balance2=balance(0);

long balance3;
do
{
Thread.sleep(1000);
} while ((balance3=balance(0))<=balance2);

if (balance3>=balance1) break;

bet=bet+bet;
}
}
}
catch (final Exception e)
{
System.out.println(e.toString());
}
}

public static JSONObject sendRequest(final JSONObject request) throws Exception
{
final HttpURLConnection connection;
(connection=(HttpURLConnection)(new URL("http://localhost:9876")).openConnection()).setRequestMethod("POST");
connection.setDoOutput(true);
connection.connect();
final OutputStream outputStream;
(outputStream=connection.getOutputStream()).write(request.toJSONString().getBytes("UTF-8"));
outputStream.close();

final InputStream inputStream=connection.getInputStream();
final byte[] response=new byte[65536];
int ptr=0;
int numberOfBytes;
do
{
if ((numberOfBytes=inputStream.read(response, ptr, 65536-ptr))>=0) ptr+=numberOfBytes;
} while (numberOfBytes>=0);
inputStream.close();

connection.disconnect();

return (JSONObject)JSONValue.parse(new String(response, 0, ptr, "UTF-8"));
}

public static long balance(final int numberOfConfirmations) throws Exception
{
final JSONObject request=new JSONObject();
request.put("method", "listaccounts");
final JSONArray params;
(params=new JSONArray()).add(numberOfConfirmations);
request.put("params", params);
return (long)(((Double)((JSONObject)sendRequest(request).get("result")).get("")).doubleValue()*100000000);
}
}

It starts with 1/128 of current confirmed balance as an initial bet and then double amount if lose. I divide by 135, not 128, to have some BTC for tx fees:
Quote
double bet=((double)(balance(1)/135))/100000000;

Quote
if (bet<0.01)
...is used to avoid too low bets.

I tested it on 2000 bets using "lessthen 32000". Went from 0 BTC to 14 BTC and back to 0 BTC. At the beginning I used my own bitcoins which were removed from the capital when I got 10 BTC from SatoshiDice. After my bitcoin-qt.exe had reached 1500 thx it started to lag much. After 2000 thx I became bored and made a couple of big bets manually until I lost all won money. Nothing surprising, but at least miners earned 1 BTC as fees.

NB: In the long run SatoshiDice wins so don't miss a right moment to stop.  Wink
1715584183
Hero Member
*
Offline Offline

Posts: 1715584183

View Profile Personal Message (Offline)

Ignore
1715584183
Reply with quote  #2

1715584183
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715584183
Hero Member
*
Offline Offline

Posts: 1715584183

View Profile Personal Message (Offline)

Ignore
1715584183
Reply with quote  #2

1715584183
Report to moderator
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
October 12, 2012, 05:06:18 PM
 #2

I decided to add a compiled version of the bot for those who r unfamiliar with Java: http://www.4shared.com/file/UeCqpEXa/MartinBot.html

How to use
1. Download and install Java Runtime Environment 7 (JRE): http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Launch bitcoin-qt.exe in server mode:
Code:
bitcoin-qt.exe -server -rpcport=9876 -rpcuser=MYUSERNAME -rpcpassword=MYPASSWORD -rpcallowip=127.0.0.1
3. Launch the bot:
Code:
java -cp MartinBot.jar MartinBot http://127.0.0.1:9876 MYUSERNAME MYPASSWORD 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp 0.1 2.0

Last 2 parameters are starting bet (0.1) and quotient (2.0) for next bets in case of loss.

To stop the bot press [CTRL]+[C].
SätöshiTable
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile WWW
October 12, 2012, 06:01:47 PM
 #3

nice job, maybe build some random delays into the bot,
could help to win more
22bones
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
October 13, 2012, 02:48:07 AM
 #4

Nice work.  I ran a slightly modified version of this just now, and eventually ran out of coins when it lost the 'less than 32000' game 14 times in a row! (on btcdice.com)  Only lost a small amount of BTC but it was fun.
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
October 13, 2012, 05:51:15 AM
 #5

it lost the 'less than 32000' game 14 times in a row!

WOW!
Gyrsur
Legendary
*
Offline Offline

Activity: 2856
Merit: 1520


Bitcoin Legal Tender Countries: 2 of 206


View Profile WWW
October 13, 2012, 09:40:45 PM
 #6

please don't play this all in any way. no chance at all. prevent loss from newbies.

Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
October 14, 2012, 07:15:32 PM
 #7

The chance is above 0, the key point is to leave the game at the right moment. Just to prove it I played SatoshiDice with Martingale tactics while watching Red Bull Stratos. I used 10 spare bitcoins and got 20 bitcoins back - https://blockchain.info/address/1CDoCox8dX9SRzxwRRxLRTsFJ2b4XThYvX.
🏰 TradeFortress 🏰
Bitcoin Veteran
VIP
Legendary
*
Offline Offline

Activity: 1316
Merit: 1043

👻


View Profile
October 14, 2012, 10:37:51 PM
 #8

In addition, you will probably lose everything if you went on.

But thanks for making the bot - gambling it NOT A WAY TO GET BITCOINS, it's for entertainment.
squid
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
October 14, 2012, 10:56:25 PM
 #9

great, i'll have to throw away some money later
pyromaniac
Hero Member
*****
Offline Offline

Activity: 639
Merit: 500



View Profile
October 30, 2012, 04:33:23 PM
 #10

Here is my preset for this bot. Works much better than mining. About 0.5 BTC per hour with minimal risk.  Wink
Quote
java -cp MartinBot.jar MartinBot http://127.0.0.1:9876 LOGIN PASSWORD 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp 0.003 3.3

jasinlee
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


Its as easy as 0, 1, 1, 2, 3


View Profile
November 02, 2012, 05:07:26 AM
 #11

Attempted to test it but kept getting

Code:
java.net.ConnectException: Connection refused: connect

BTC 1JASiNZxmAN1WBS4dmGEDoPpzN3GV7dnjX DVC 1CxxZzqcy7YEVXfCn5KvgRxjeWvPpniK3                     Earn Devcoins Devtome.com
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 02, 2012, 06:19:17 AM
 #12

Attempted to test it but kept getting

Code:
java.net.ConnectException: Connection refused: connect

Have u launched bitcoin-qt.exe this way:

Code:
bitcoin-qt.exe -server -rpcport=9876 -rpcuser=MYUSERNAME -rpcpassword=MYPASSWORD -rpcallowip=127.0.0.1

?
jasinlee
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


Its as easy as 0, 1, 1, 2, 3


View Profile
November 02, 2012, 07:41:23 AM
 #13

Yeah it worked without error after I made th .conf . Just the java is fighting me.

BTC 1JASiNZxmAN1WBS4dmGEDoPpzN3GV7dnjX DVC 1CxxZzqcy7YEVXfCn5KvgRxjeWvPpniK3                     Earn Devcoins Devtome.com
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 02, 2012, 08:18:33 AM
 #14

Yeah it worked without error after I made th .conf . Just the java is fighting me.

Unfortunatelly, I have to work on ur computer to find the issue. Check firewall settings, I use MartinBot.jar by myself without any problems.
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
November 02, 2012, 08:25:54 AM
 #15

please don't play this all in any way. no chance at all. prevent loss from newbies.
Actually, if you configure it correctly, you are muck more likely to win than to lose. The problem is, if you do lose, you lose much, much more than you tried to win.

It's like a reverse lottery where 99.9% of the people get $1. But one out of 1,000 people get tortured to death. Of course, your "expected profit" is negative. However, you are more likely to win than to lose.

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 02, 2012, 08:40:43 AM
 #16

please don't play this all in any way. no chance at all. prevent loss from newbies.
Actually, if you configure it correctly, you are muck more likely to win than to lose. The problem is, if you do lose, you lose much, much more than you tried to win.

It's like a reverse lottery where 99.9% of the people get $1. But one out of 1,000 people get tortured to death. Of course, your "expected profit" is negative. However, you are more likely to win than to lose.


I use such a strategy:

In the morning I deposit 10 BTC and launch the bot.
In the evening I shut the bot down.


Sometimes I see 0 BTC on the balance, but in most cases there are like 20 BTC.
Gilboa
Sr. Member
****
Offline Offline

Activity: 317
Merit: 250



View Profile WWW
November 02, 2012, 05:20:57 PM
 #17

Here is my preset for this bot. Works much better than mining. About 0.5 BTC per hour with minimal risk.  Wink
Quote
java -cp MartinBot.jar MartinBot http://127.0.0.1:9876 LOGIN PASSWORD 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp 0.003 3.3
Is that right? Was that 0.5 BTC per hour a typo?


I plan to use these settings below as was suggested above:

java -cp MartinBot.jar MartinBot http://127.0.0.1:9876 LOGIN PASSWORD 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp 0.003 3.3

Does this look good or would you all suggest better presets?


Thanks for the app. I was going to use the martingale R app posted in the "How to Last Longer Thread" but I like the automated functionality of your bot better.

..............................
                                     ╓╥███╖                                   
                                  ╥████╝╙████▄                                 
                              ╓████▀         ████▄                             
                          ╥▄████                 ████▄┐                       
                      ╓█████       ┌╗████████        ╨███╥                     
                  ╓╥████╜      ╓╥███▀      ╙████▄╖       ████╥╖               
               ╥████▀       ╓▄███╜              ╙████╖      ╙████╥             
            ╓████        ╓███╝      ╥████████╖      ╙████╖      ╙███           
            ███      ╓███▀      ╥███╜         ████╥      ███╖     ██           
            ███    ╓███     ╓████                ╙███╥    ╘███    ██           
            ███   ▐██     ╥███     ╓╦▄█████▄╥┐      ╙██╕   ███    ██           
            ███   ▐██   ╓███     ╓██╜       ╙██▄     ╘██   ███    ██           
            ███    ██   ▐██    ╒██            ╙██┐    ██   ▐██    ██           
            ███    ██   ▐█▌   ╒██              ▐██    ██   ▐██    ██           
            ███    ██   ▐█▌   ╒██              ▐██    ██   ▐██    ██           
            ███    ██   ▐█    ├█▌              ▐██    ██   ▐██    ██           
            ███    ██▌  ▐█    ╘██              ▐██    ██    ██    ██           
            ███    ██▌  ▐█    ╘██              ▐██    ██    ██    ██           
            ███    ███  ▐█╕     ██╖           ▄██     ██    ██    ██           
            ███    ███  ▐██┐     ╙██▄╥╖   ╓╥███     ╓███    ██    ██           
            ███    ██▌   ▀██▄        ╙█████╜      ╥███     ███    ██           
            ███    ▀██      ████╥╖            ╓███▀     ╥▄██      ██           
            ███      ███╖      ╙█████╖     ╥████     ╓███┘       ╔██           
            ╙███╥╖      ▀███╥╖      ╙███████▀    ╓▄███       ╓╥████╝           
               ╙████╦┐     ╙╨███╥             ╥███╜       ╓████╜               
                    ████╖       ╙███╥     ╓▄██╜       ╓▄████                   
                       ╙███▄╗       ╙██████╙      ╓╦████                       
                            ████╖              ╥████                           
                               ╙████╥      ╥████▀                             
                                    ▀███████╜                                 
                                       ╩▀┘                                     
..............................
....OPUS...
Music decentralized
..Beta-ready Blockchain based Music Streaming..
  Website | Demo | Whitepaper | Coinmarketcap | Bitcointalk | Twitter | Facebook 
Try the LIVE Ethereum & IPFS beta
     Join Us ✔ Telegram ✔ Discord
pyromaniac
Hero Member
*****
Offline Offline

Activity: 639
Merit: 500



View Profile
November 02, 2012, 05:42:26 PM
 #18

Here is my preset for this bot. Works much better than mining. About 0.5 BTC per hour with minimal risk.  Wink
Quote
java -cp MartinBot.jar MartinBot http://127.0.0.1:9876 LOGIN PASSWORD 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp 0.003 3.3
Is that right? Was that 0.5 BTC per hour a typo?
Yep. Absolutely.

JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
November 02, 2012, 11:19:19 PM
 #19

I use such a strategy:

In the morning I deposit 10 BTC and launch the bot.
In the evening I shut the bot down.


Sometimes I see 0 BTC on the balance, but in most cases there are like 20 BTC.
If you specifically configure it for double or nothing, you are much better off just placing a single bet. The Martingale strategy only works if you are trying to win an amount much smaller than the total amount you have to bet.

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
Gilboa
Sr. Member
****
Offline Offline

Activity: 317
Merit: 250



View Profile WWW
November 05, 2012, 08:46:28 PM
 #20

Is the bot supposed to run continuously? After a loss the bot doesn't do anything. It also only submits a second bet if there's a win. I have 5 BTC in my wallet so that might be to low?

..............................
                                     ╓╥███╖                                   
                                  ╥████╝╙████▄                                 
                              ╓████▀         ████▄                             
                          ╥▄████                 ████▄┐                       
                      ╓█████       ┌╗████████        ╨███╥                     
                  ╓╥████╜      ╓╥███▀      ╙████▄╖       ████╥╖               
               ╥████▀       ╓▄███╜              ╙████╖      ╙████╥             
            ╓████        ╓███╝      ╥████████╖      ╙████╖      ╙███           
            ███      ╓███▀      ╥███╜         ████╥      ███╖     ██           
            ███    ╓███     ╓████                ╙███╥    ╘███    ██           
            ███   ▐██     ╥███     ╓╦▄█████▄╥┐      ╙██╕   ███    ██           
            ███   ▐██   ╓███     ╓██╜       ╙██▄     ╘██   ███    ██           
            ███    ██   ▐██    ╒██            ╙██┐    ██   ▐██    ██           
            ███    ██   ▐█▌   ╒██              ▐██    ██   ▐██    ██           
            ███    ██   ▐█▌   ╒██              ▐██    ██   ▐██    ██           
            ███    ██   ▐█    ├█▌              ▐██    ██   ▐██    ██           
            ███    ██▌  ▐█    ╘██              ▐██    ██    ██    ██           
            ███    ██▌  ▐█    ╘██              ▐██    ██    ██    ██           
            ███    ███  ▐█╕     ██╖           ▄██     ██    ██    ██           
            ███    ███  ▐██┐     ╙██▄╥╖   ╓╥███     ╓███    ██    ██           
            ███    ██▌   ▀██▄        ╙█████╜      ╥███     ███    ██           
            ███    ▀██      ████╥╖            ╓███▀     ╥▄██      ██           
            ███      ███╖      ╙█████╖     ╥████     ╓███┘       ╔██           
            ╙███╥╖      ▀███╥╖      ╙███████▀    ╓▄███       ╓╥████╝           
               ╙████╦┐     ╙╨███╥             ╥███╜       ╓████╜               
                    ████╖       ╙███╥     ╓▄██╜       ╓▄████                   
                       ╙███▄╗       ╙██████╙      ╓╦████                       
                            ████╖              ╥████                           
                               ╙████╥      ╥████▀                             
                                    ▀███████╜                                 
                                       ╩▀┘                                     
..............................
....OPUS...
Music decentralized
..Beta-ready Blockchain based Music Streaming..
  Website | Demo | Whitepaper | Coinmarketcap | Bitcointalk | Twitter | Facebook 
Try the LIVE Ethereum & IPFS beta
     Join Us ✔ Telegram ✔ Discord
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 06, 2012, 05:26:28 AM
 #21

Is the bot supposed to run continuously? After a loss the bot doesn't do anything. It also only submits a second bet if there's a win. I have 5 BTC in my wallet so that might be to low?

It's supposed to run continuously. But sometimes, especially when a new block is found, Satoshi's client doesn't respond. Perhaps it's a bug in my bot, but there are only a few lines of code and most of times the bot sends hundreds bets before it stops, so I suspect that something wrong in the client. Also the bot is supposed to be launched with a fresh wallet with 1 account only.
nokru
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
November 06, 2012, 06:39:49 PM
 #22

Quote
java.net.ProtocolException: Server redirected too many  times (20)

something i can tweak, or do i have to wait and drink a cup of tea?
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 06, 2012, 07:22:03 PM
 #23

Quote
java.net.ProtocolException: Server redirected too many  times (20)

something i can tweak, or do i have to wait and drink a cup of tea?

Check that username, password and url are correct.
Gyrsur
Legendary
*
Offline Offline

Activity: 2856
Merit: 1520


Bitcoin Legal Tender Countries: 2 of 206


View Profile WWW
November 13, 2012, 02:30:16 PM
 #24

almost everything lost? Wink

Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 13, 2012, 03:56:03 PM
 #25

almost everything lost? Wink

Me? No. Won 50 BTC during last 2 days playing without bot, but got bored. I'm waiting for a gambling game with co-operative gameplay, it's in betatesting stage now.
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 15, 2012, 02:00:49 PM
 #26

Here is my preset for this bot. Works much better than mining. About 0.5 BTC per hour with minimal risk.  Wink
Quote
java -cp MartinBot.jar MartinBot http://127.0.0.1:9876 LOGIN PASSWORD 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp 0.003 3.3

I decided to try ur tactics: more losses in a row, higher a reward at the end. As a result I won more than 100 BTC after a couple of hours. Thx for the idea.
Gyrsur
Legendary
*
Offline Offline

Activity: 2856
Merit: 1520


Bitcoin Legal Tender Countries: 2 of 206


View Profile WWW
November 15, 2012, 02:24:01 PM
 #27

you must be rich now!  Tongue

Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 15, 2012, 02:35:08 PM
 #28

you must be rich now!  Tongue

Aye!
Unfortunately, SatoshiDice has hard limit of 250 BTC per bet, so I can't become insanely rich...  Tongue
aadje93
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
November 20, 2012, 03:26:26 PM
Last edit: November 20, 2012, 03:43:05 PM by aadje93
 #29

Hi,

i tryed your bot. But i keep getting the error

connection refused: connect

i made a config file with

server=1
rpcport=9876
user=(not going to tell)
password=(not going to tell)
allowip=127.0.0.1

but it will not allow me to use the java bot.. Tryed to disable antivirus and firewall and still not working..


Although i can read the RPC part with another program.. (can get balance in php script)

EDIT:

or is it possible because my wallet is password protected?

EDIT2

tryed with an blockchain.info wallet

getting nullpointer exception (download the 2nd post .java file)

Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 20, 2012, 04:07:32 PM
 #30

i made a config file with

server=1
rpcport=9876
user=(not going to tell)
password=(not going to tell)
allowip=127.0.0.1
Try to use command line parameters, not config file. Something like
Code:
bitcoin-qt.exe -server -rpcport=9876 -rpcuser=(not going to tell) -rpcpassword=(not going to tell) -rpcallowip=127.0.0.1

or is it possible because my wallet is password protected?
Never tried with password protected wallet.

tryed with an blockchain.info wallet
MartinBot was designed to be used with Satoshi's client.
aadje93
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
November 20, 2012, 05:56:59 PM
Last edit: November 20, 2012, 06:09:26 PM by aadje93
 #31

i made a config file with

server=1
rpcport=9876
user=(not going to tell)
password=(not going to tell)
allowip=127.0.0.1
Try to use command line parameters, not config file. Something like
Code:
bitcoin-qt.exe -server -rpcport=9876 -rpcuser=(not going to tell) -rpcpassword=(not going to tell) -rpcallowip=127.0.0.1

or is it possible because my wallet is password protected?
Never tried with password protected wallet.

tryed with an blockchain.info wallet
MartinBot was designed to be used with Satoshi's client.

hello thanks for your help Smiley

what is the satoshi's client? Does that have RPC interface?

EDIT:

we are getting somewhere Smiley.  With a bat script with the commands you suggested

Error writing to server

Any fix for that?

EDIT2:

didn't realize, the "error writing to server" only occurs when i use the static IP for my pc (***.***.*.14)

when i use 127.0.0.1 its still http error 500  (the standard no acces error)

Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
November 20, 2012, 08:51:24 PM
 #32

what is the satoshi's client? Does that have RPC interface?
It can be downloaded from http://bitcoin.org/. It does have JSON-RPC interface.

didn't realize, the "error writing to server" only occurs when i use the static IP for my pc (***.***.*.14)

when i use 127.0.0.1 its still http error 500  (the standard no acces error)
Usually, I see this error if I try to spend more BTC than I have confirmed in a wallet. Satoshi's client gives very little info about errors, so it's hard to catch a bug.
aadje93
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
November 21, 2012, 06:29:08 AM
 #33

what is the satoshi's client? Does that have RPC interface?
It can be downloaded from http://bitcoin.org/. It does have JSON-RPC interface.

didn't realize, the "error writing to server" only occurs when i use the static IP for my pc (***.***.*.14)

when i use 127.0.0.1 its still http error 500  (the standard no acces error)
Usually, I see this error if I try to spend more BTC than I have confirmed in a wallet. Satoshi's client gives very little info about errors, so it's hard to catch a bug.

You probarly haven't seen my previous martingale work Wink (developped my own strategy on a lower bet %) My balance is way over 300 btc at the moment, so a 0.01 bet should be possible Smiley.


EDIT:

can't find satoshi's client on bitcoin.org. Only bitcoin-qt *what i use now* multibit, armory, electrum (and bitcoin wallet for android)

frozenkai
Member
**
Offline Offline

Activity: 86
Merit: 10



View Profile
January 28, 2013, 09:34:36 PM
 #34

I get this: am I doing something wrong?



Code:

C:\Program Files (x86)\Bitcoin>bitcoin-qt.exe -server -rpcport=9876 -rpcuser=asdfE -rpcpassword=sdaf-rpcallowip=127.0.0.1

C:\Program Files (x86)\Bitcoin>cd \

C:\>java -cp MartinBot.jar MartinBot http://127.0.0.1:9876 MYUSERNAME MYPASSWORD
 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp 0.1 2.0
java.net.ConnectException: Connection refused: connect

C:\>"C:\Program Files (x86)\Bitcoin
'"C:\Program Files (x86)\Bitcoin' is not recognized as an internal or external c
ommand,
operable program or batch file.

C:\>cd "C:\Program Files (x86)\Bitcoin

C:\Program Files (x86)\Bitcoin>bitcoin-qt.exe -server -rpcport=9876 -rpcuser=MYU
SERNAME -rpcpassword=MYPASSWORD -rpcallowip=127.0.0.1

C:\Program Files (x86)\Bitcoin>cd \

C:\>java -cp MartinBot.jar MartinBot http://127.0.0.1:9876 MYUSERNAME MYPASSWORD
 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp 0.003 3.3
----------
{"method":"sendtoaddress","params":["1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp",0.003]}
{"id":null,"result":"9ce841babde110db1360056cb863d4f2f876a6158a010653e7aa2797a3e
f161d","error":null}

My hard drive died and I lost all my bitcoins, help me out? 19BsFvdjtVDPHhdcYqBUi1bZ9xRopzbRjC
frozenkai
Member
**
Offline Offline

Activity: 86
Merit: 10



View Profile
January 29, 2013, 02:18:12 AM
 #35

NOTE: I don't think this is designed to be used by people with 10btc or less, I had 5btc and lost all of them

My hard drive died and I lost all my bitcoins, help me out? 19BsFvdjtVDPHhdcYqBUi1bZ9xRopzbRjC
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 30, 2013, 05:22:16 AM
 #36

It was designed when min bet was 0.001 BTC. Now it's 0.01 BTC.
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
February 11, 2013, 11:45:07 AM
 #37

NOTE: I don't think this is designed to be used by people with 10btc or less, I had 5btc and lost all of them
The less you have, the more likely you are to lose everything. However, if you lose everything, you lose less. There's no such thing as a free lunch.

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
Pages: 1 2 [All]
  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!