API
Installation
Using npm:
npm i api.slm.gamesUsing yarn
yarn add api.slm.gamesGet Start
import api from "api.slm.games";
const token = "GET YOUR TOKEN FROM PROFILE PAGE";
async function main() {
const ins = new api("https://api.slm.games", token);
const info = await ins.userGetInfo();
console.log(info);
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});API Token You can get API Token from https://slm.games/profile
And
Don'tshow it to anyoneToken Expiration By default, the token for API is valid for 86400 seconds (24 hours).
We recommend that you refresh token expiration by call
userGetInfoAPI every minute;
API
userGetInfo Get current user's information
walletGetBalance Get balance of symbol
diceBet Bet on dice game
crashBet
Bet on crash game
Last updated
Was this helpful?