1.1.2 • Published 1 year ago

api.slm.games v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Community

SLM.Games - Best Crypto Casino for Web3 with NFT

Official Website: https://slm.games

Telegram: https://t.me/slm_games

Installation

  • Using npm:
  npm i api.slm.games
  • Using yarn
  yarn add api.slm.games

Get 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't show it to anyone

  • Token Expiration By default, the token for API is valid for 86400 seconds (24 hours).

    We recommend that you refresh token expiration by call userGetInfo API every minute;

API

  • userGetInfo Get current user's information

    const info = await ins.userGetInfo();
  • walletGetBalance Get balance of symbol

    const balance = await ins.walletGetBalance("SLM");
  • diceBet Bet on dice game

    const rsp = await ins.diceBet("over", 50, "SLM", 100);
1.1.1

1 year ago

1.1.2

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago