Zreex Posted 1 hour ago Report Posted 1 hour ago (edited) Steam introduced an update some time ago that exposes both float and seed values. Could you advise how to access these values using this module, without creating an external request to the Steam Web API? #getAssetsProperties = async (contextId) => { try { const { data } = await axios.get( `${SteamWrapper.#apiOrigin}/IEconService/GetInventoryItemsWithDescriptions/v1`, { params: { 'access_token': this.#accessToken, 'steamid': String(this.#userClient.steamID), 'appid': 730, 'contextid': contextId, 'get_asset_properties': true, }, }, ); const raw = data?.response?.asset_properties; const assetProperties = Array.isArray(raw) ? raw : []; return [assetProperties, null]; } catch (error) { return [null, error]; } } Edited 33 minutes ago by Zreex Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.