Skip to content
This repository was archived by the owner on Feb 16, 2022. It is now read-only.

Example

Sprayxe edited this page Aug 15, 2020 · 1 revision

Example

<> = Replace with your value (remove <>)
Regarding region: Choose between eu (europe), na (north america) and ap (asian pacific).
So:
europe would be: Valorant.region.eu
north america would be: Valorant.region.na
asia pacific would be: Valorant.region.ap

(async () => {
  try {

    const Valorant = require("valorant.js");
  
    const valorant = new Valorant.Client({
      username: "<YOUR_USERNAME>",
      password: "<YOUR_PASSWORD>",
      region: Valorant.region.<YOUR_REGION>
    });

    await valorant.login();
    const balance = await valorant.getWallet();
    console.log(balance);

  } catch(err) {
    console.error(err)
  }
})();
Clone this wiki locally