varLoot=require('loot.js');// initconstaddress="0x84AB05F09B5ad3a1de6941FBf29BdF77CC7E2100";letloot=newLoot("http://localhost:8545");// get OG Loot balanceconstogCount=awaitloot.numberOfOGBagsInWallet(address);// get More Loot balanceconstmoreCount=awaitloot.numberOfMoreBagsInWallet(address);// get OG and More Loot balanceconstallCount=awaitloot.numberOfBagsInWallet(address,false);// get OG and More LootIdsvarlootIds=awaitloot.lootIdsInWallet(address,false);// ๐๏ธ Bag #1000 (an OG Loot)varbag=awaitloot.bag(1000);console.log(bag);/*{ id: 1000, type: 'Loot', chest: 'Holy Chestplate', foot: 'Leather Boots', hand: 'Leather Gloves', head: 'Ancient Helm', neck: 'Amulet of Giants', ring: 'Platinum Ring', waist: 'Demonhide Belt of the Twins', weapon: '"Gloom Grasp" Katana of the Twins +1'}*/// ๐๏ธ Bag #22791 (a More Loot)varbag=awaitloot.bag(22791);console.log(bag);/*{ id: 22791, type: 'More Loot', chest: '"Gloom Bite" Ring Mail of Perfection +1', foot: 'Chain Boots', hand: 'Holy Gauntlets of Perfection', head: '"Cataclysm Peak" Great Helm of Power +1', neck: '"Rage Grasp" Pendant of Protection +1', ring: '"Skull Moon" Silver Ring of Skill +1', waist: '"Mind Bender" Sash of Enlightenment +1', weapon: 'Book'}*/