(async () => {
const { RiotApiClient, Region } = require("valorant.js");
try {
const client = new RiotApiClient({
username: "MY_USERNAME", // your username
password: "MY_PASSWORD", // your password
region: Region.MY_REGION, // Available regions: EU, NA, AP
});
await client.login();
console.log(client.user);
const balance = await client.storeApi.getWallet(client.user.Subject);
console.log(balance);
} catch(err) {
console.error(err);
}
})();
npm install valorant.js --save
@MarcelWRLD#0999
@Pilica#8525
@RumbleMike#5406
(API Documentation)