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=f58***************ba5d#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.
You should not include the "#DoNotShareThisURL" in the secret variable. But it seems you're getting the wrong error message.