@evefrontier/dapp-kit - v0.0.1
    Preparing search index...

    Function getDatahubGameInfo

    • Fetch game type information from the EVE Frontier Datahub API.

      Retrieves metadata about a game type by its ID, including display name, description, icon URL, and physical properties. This data is used to enrich on-chain objects with human-readable information.

      Parameters

      • typeId: number

        The numeric type ID (from on-chain type_id field)

      Returns Promise<DatahubGameInfo>

      Promise resolving to the type's game info

      const typeInfo = await getDatahubGameInfo(83463);
      console.log(typeInfo.name); // "Smart Storage Unit"
      console.log(typeInfo.iconUrl); // URL to icon
      console.log(typeInfo.description); // Description text
      const inventoryItem = { type_id: 12345, quantity: 100 };
      const info = await getDatahubGameInfo(inventoryItem.type_id);
      console.log(`${info.name} x${inventoryItem.quantity}`);