Jump to content
McKay Development

Recommended Posts

Posted (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 by Zreex

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...