Wowpedia
Advertisement
Wowpedia
240,458
pages
Shadowlands-Icon-Inline.png
Bc icon.gif
C_CurrencyInfo.GetCurrencyInfo
+ 9.0.1 / 2.5.1   Townlong-Yak Globe.png  Townlong-Yak BAD.png  ProfIcons engineering.png
Shadowlands-Icon-Inline.png
Bc icon.gif
C_CurrencyInfo.GetCurrencyInfoFromLink
+ 9.0.1 / 2.5.1   Townlong-Yak Globe.png  Townlong-Yak BAD.png  ProfIcons engineering.png
GetCurrencyInfo
+ 4.0.1   - 9.0.1   Townlong-Yak Globe.png  Wowprogramming.png

Returns information about currencies in the currency tab.

info = C_CurrencyInfo.GetCurrencyInfo(type)
     = C_CurrencyInfo.GetCurrencyInfoFromLink(link)

Arguments

GetCurrencyInfo

type 
number : CurrencyID

GetCurrencyInfoFromLink

link 
string : currencyLink

Returns

info 
CurrencyInfo
Key Type Description
name string Localized name of the currency
isHeader boolean Used by currency window (some currency IDs are the headers)
isHeaderExpanded boolean Whether header is expanded or collapsed in currency window
isTypeUnused boolean Sorts currency at the bottom of currency window in "Unused" header
isShowInBackpack boolean Shows currency on Blizzard backpack frame
quantity number Current amount of the currency
trackedQuantity number Added in 9.1.5
iconFileID number FileID
maxQuantity number Total maximum currency possible
canEarnPerWeek boolean Whether the currency is limited per week
quantityEarnedThisWeek number 0 if canEarnPerWeek is false
isTradeable boolean
quality Enum.ItemQuality Enum.ItemQuality
maxWeeklyQuantity number 0 if canEarnPerWeek is false
totalEarned number Added in 9.0.2; Returns 0 if useTotalEarnedForMaxQty is false, prevents earning if equal to maxQuantity
discovered boolean Whether the character has ever earned the currency
useTotalEarnedForMaxQty boolean Added in 9.0.2; Whether the currency has a moving maximum (e.g. seasonal)

Patch changes

  • Shadowlands Patch 9.0.1 / API (2020-10-13): Moved to C_CurrencyInfo.GetCurrencyInfo() and returns structured data.
  • Cataclysm Patch 4.0.1 / API (2010-10-12): Added as name, currentAmount, texture, earnedThisWeek, weeklyMax, totalMax, isDiscovered, rarity = GetCurrencyInfo(id)
Advertisement