Post
Topic
Board Gambling
Re: SatoshiDICE.com - The World's Most Popular Bitcoin Game
by
LiQuidx
on 10/09/2015, 10:51:41 UTC
I've been playing around with the Satoshidice APIs and have gotten stumped on placing a bet.  The string I'm sending is:

https://session.satoshidice.com/userapi/placebet.php?secret=f58fa54291a6f3fd5439513d35eeba5d#DoNotShareThisURL&betInSatoshis=100&id=52682211&serverHash=8e0ee37b2169ee39f950a92e24b254231db6a05ac5e0ba7419368a73c99a1b52&clientRoll=8237&belowRollToWin=32000

There are no coins at this address, if you were wondering.  The error that is being returned is :

[nextRound] => Array
        (
            [id] => 52682211
            [hash] => 8e0ee37b2169ee39f950a92e24b254231db6a05ac5e0ba7419368a73c99a1b52
            [welcomeMessage] =>
            [maxProfitInSatoshis] => 2491925551
        )

    [status] => fail
    [failcode] => 2
    [verbose] => Invalid belowRollToWin
    [processLog] => Array
        (
           
  • => onlyAvailableIfDebugTrue
        )

I've tried everything I can think of to get past the "Invalid belowRollToWin" and I am making no progress.  I get the same error whether the account has coins or not, so that's not it.  You can paste that url in your browser and see if you get the same error.  If I can get to a "failcode = 19 Bet is bigger than balance" then I've made progress.


I think there's an issue with the bets now in general so you should wait until that it's fixed in order to re-try placing bets with the API.