PeerPet Api 1.0

PeerDice Api 1.0

Bit777 Api v1.0

Please follow the minimum advised interval between requests, or you might experience some latency!

Peerbet Api v1.0: Dice Documentation

Roll dice

URL
https://www.peerbet.org/api/dice/?action=roll
Minimum interval between requests
1 second
Request parameters
  • key API key used to authenticate user.
  • roll Roll type. Choices are: 0=Low, 1=High.
  • target Roll target number. Example: 49.5000.
  • cur Placed bet currency code. Choices are: 10=BTC, 11=LTC, READ MORE. Default is 10/BTC.
  • bet Placed bet for current roll. Minimum 0.00000010 BTC (0.0001 LTC/PTC/NTC/...).
  • seed Client side seed. Format Integer/Int32. Range 1 - 999,999,999.
Optional parameters
  • stat (Optional) Option to show statistics. Choices are: on, off. Format String. Default is 'off'.
Response
  • status 1 if successful, 0 otherwise.
  • game_cur Rolled dice currency code (10=BTC, 11=LTC, READ MORE).
  • game_bet Rolled dice placed bet.
  • game_pay Rolled dice multiplier result.
  • game_won Rolled dice total payout.
  • dice_roll Rolled dice number.
  • dice_target Rolled dice targeted number.
  • user_balance Updated user balance value.
  • server_seed Next roll server SHA256 seed.
  • client_seed Next roll client seed.
  • If stat option is on then:

  •    stat_myrolls Customer total roll count.
  •    stat_mybets Customer total bet value.
  •    stat_mywins Customer total win value.
  •    stat_totrolls Dice total roll count.
  •    stat_totwager Dice total wagered currency.

{"status":1,
"game_cur":10,"game_bet":"0.10000000","game_pay":"0.10000000","game_won":"0.20000000",
"dice_roll":17.7777,"dice_target":"< 49.5000",
"user_balance":"7.00000000",
"server_seed":"c288c0677466650578089c92f5135afb6cacb4488b0f41701ba24b9ef265c4ca",
"client_seed":"777777777",
"stat_myrolls":777,"stat_mybets":7.77,"stat_mywins":7.77,
"stat_totrolls":777,"stat_totwager":"7.777"}

Note: Bets Priority
Depending of your bet value you may experience some extra delay
Currency: BTC/10
  • bet less than 0.00001 are delayed by 2.5 seconds.
  • bet less than 0.0001 are delayed by 1.5 seconds.
  • bet less than 0.001 are delayed by 1.0 seconds.
  • bet higher than 0.001 are not delayed.
Currencies: LTC/11, PPC/12, NMC/13, ...
  • bet less than 0.001 are delayed by 2.5 seconds.
  • bet less than 0.01 are delayed by 1.5 seconds.
  • bet less than 1.0 are delayed by 1.0 seconds.
  • bet higher than 1.0 are not delayed.

Server side randomize

URL
https://www.peerbet.org/api/dice/?action=randomize
Minimum interval between requests
1 seconds
Request parameters
  • key API key used to authenticate user.
Optional parameters
  • seed (Optional) Client seed. Format Integer/Int32. Range 1 - 999,999,999.
Response
  • status 1 if successful, 0 otherwise.
  • server_seed Next roll server SHA256 seed.
  • client_seed Next roll client seed.

{"status":1,
"server_seed":"c288c0677466650578089c92f5135afb6cacb4488b0f41701ba24b9ef265c4ca",
"client_seed":"777777777"}

Get Server and Client seeds

URL
https://www.peerbet.org/api/dice/?action=getseed
Minimum interval between requests
1 seconds
Request parameters
  • key API key used to authenticate user.
Response
  • status 1 if successful, 0 otherwise.
  • server_seed Next roll server SHA256 seed.
  • client_seed Next roll client seed.

{"status":1,
"server_seed":"c288c0677466650578089c92f5135afb6cacb4488b0f41701ba24b9ef265c4ca",
"client_seed":"777777777"}

Game Fair check

URL
https://www.peerbet.org/api/dice/?action=faircheck
Minimum interval between requests
2 seconds
Request parameters
Response
  • status 1 if successful, 0 otherwise.
  • server_seed Server seed number. Format Number-String. String which insures client-side fairness.
  • server_hash The initial array and server seed encrypted in SHA256 hash.
  • client_seed Client seed number.

{"status":1,
"server_seed":"406238599-EXTRA_INSURANCE_STRING",
"server_hash":"a7d39a58eb48b3bbeb550c0bd6ee33f5e9327c334af434236d7d21217e77a8f3",
"client_seed":"821293206"}

Activity & Leaderboards List

URL
https://www.peerbet.org/api/dice/?action=myrolls
https://www.peerbet.org/api/dice/?action=recentrolls
https://www.peerbet.org/api/dice/?action=leaderboard
Minimum interval between requests
2 seconds
Request parameters for myrolls action
  • key API key used to authenticate user.
Response
  • status 1 if successful, 0 otherwise.
  • stat_myrolls Customer total roll count (if kay parameter is provided).
  • stat_mybets Customer total bet value.
  • stat_mywins Customer total win value.
  • stat_totrolls Dice total roll count.
  • stat_totwager Dice total wagered currency.
  • games_list An array, containing games data:
  •    id ID of the game.
  •    user Username of the user who played this game.
  •    cur Rolled dice currency code (10=BTC, 11=LTC, READ MORE).
  •    bet Rolled dice placed bet.
  •    roll Rolled dice number.
  •    target Rolled dice target.
  •    won Rolled dice total payout.
  •    date Date and Time of the roll. Format yyyy-MM-dd HH:mm:ss.

{"status":1,
"stat_myrolls":777,"stat_mybets":7.77,"stat_mywins":7.77,
"stat_totrolls":777,"stat_totwager":"7.777",
"games_list":
[{"id":778,"user":"Peerbet","cur":10,"bet":"0.10000000","roll":17.7777,"target":"< 49.5000","won":"0.20000000","date":"2013-10-12 09:00:38"},
{"id":777,"user":"Peerbet","cur":11,"bet":"0.10000000","roll":17.7777,"target":"< 49.5000","won":"0.20000000","date":"2013-10-12 09:00:36"}]
}

My History

URL
https://www.peerbet.org/api/dice/?action=history
Minimum interval between requests
2 seconds
Request parameters
  • key API key used to authenticate user.
Optional parameters
  • count Number of rolls per request. Range is from 10 to 70. Default is 30.
  • before Unique Number of the roll.
Response
  • status 1 if successful, 0 otherwise.
  • games_list An array, containing games data:
  •    id Unique Number of the game.
  •    game_cur Rolled dice currency code (10=BTC, 11=LTC, READ MORE).
  •    game_bet Rolled dice placed bet.
  •    game_pay Rolled dice multiplier result.
  •    game_won Rolled dice total payout.
  •    dice_roll Rolled dice number.
  •    dice_target Rolled dice targeted number.
  •    server_seed Server seed number.
  •    client_seed Client seed number.
  •    date Date and Time of the roll. Format yyyy-MM-dd HH:mm:ss.

{"status":1,"games_list":
[{"id":1,"game_cur":10,"game_bet":"0.10000000","game_pay":"2.0","game_won":"0.20000000",
"dice_roll":0,"dice_target":"< 49.5000",
"server_seed":"406238599-EXTRA_INSURANCE_STRING",
"server_hash":"a7d39a58eb48b3bbeb550c0bd6ee33f5e9327c334af434236d7d21217e77a8f3",
"client_seed":"821293206"}]
}