Jump to content

Crash Api


Ghostnipple
 Share

Recommended Posts

does anyone know how to get the latest hash from crash via the bc.game api?

or this something bc don't want players doing.
 

Link to comment
Share on other sites

  • 3 months later...
// game_id is current game id
const res = await axios.get("https://bc.game/api/game/support/bet-log/all-bet/crash/" + game_id + "/")
const response = JSON.parse(JSON.stringify(res.data));
let game_hash = response['data']['gb']['extend']['hash']

 

You can get game_hash until 2022.11.01 but now this api is not working...
If anybody has answer about it, please share it for everyone

Link to comment
Share on other sites

 

my question is why are you needing to get it from something standalone.  If you wanted to use the dev console or inject javascript onto the page you can get all of the information easily for the last 2000 games

crash.history[0].hash  If you truely need that data else where just attach to the on game ended event, write your own webservice and shove the info into a db, or locally use just like sqlite or hell it takes less than a second to export it all as a .csv

 

Link to comment
Share on other sites

  • 5 months later...
  • 4 months later...

You need to be a member in order to leave a comment

Sign up for a new account in our community. It's easy!

Register a new account

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...