WowAddons

World of Warcraft Forever API · C_CurrencyInfo.md, for your AI

C_CurrencyInfo

43 functions, 8 events, 6 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_CurrencyInfo.CanTransferCurrency

canTransferCurrency, failureReason = C_CurrencyInfo.CanTransferCurrency(currencyID)

Arguments

currencyIDnumber

Returns

canTransferCurrencybool
failureReasonAccountCurrencyTransferResult may be nil

C_CurrencyInfo.DoesCurrentFilterRequireAccountCurrencyData

doesCurrentFilterRequireAccountCurrencyData = C_CurrencyInfo.DoesCurrentFilterRequireAccountCurrencyData()

Returns

doesCurrentFilterRequireAccountCurrencyDatabool

C_CurrencyInfo.DoesWarModeBonusApply

warModeApplies, limitOncePerTooltip = C_CurrencyInfo.DoesWarModeBonusApply(currencyID)

Arguments

currencyIDnumber

Returns

warModeAppliesbool may be nil
limitOncePerTooltipbool may be nil

C_CurrencyInfo.ExpandCurrencyList

C_CurrencyInfo.ExpandCurrencyList(index, expand)

Arguments

indexluaIndex
expandbool

C_CurrencyInfo.FetchCurrencyDataFromAccountCharacters

accountCurrencyData = C_CurrencyInfo.FetchCurrencyDataFromAccountCharacters(currencyID)

May return nothing.

Arguments

currencyIDnumber

Returns

accountCurrencyDataCharacterCurrencyData[]

C_CurrencyInfo.FetchCurrencyTransferTransactions

currencyTransferTransactions = C_CurrencyInfo.FetchCurrencyTransferTransactions()

Returns

currencyTransferTransactionsCurrencyTransferTransaction[]

C_CurrencyInfo.GetAzeriteCurrencyID

azeriteCurrencyID = C_CurrencyInfo.GetAzeriteCurrencyID()

Returns

azeriteCurrencyIDnumber

C_CurrencyInfo.GetBackpackCurrencyInfo

info = C_CurrencyInfo.GetBackpackCurrencyInfo(index)

May return nothing.

Arguments

indexluaIndex

Returns

infoBackpackCurrencyInfo

C_CurrencyInfo.GetBasicCurrencyInfo

info = C_CurrencyInfo.GetBasicCurrencyInfo(currencyType, [quantity])

May return nothing.

Arguments

currencyTypenumber
quantitynumber may be nil

Returns

infoCurrencyDisplayInfo

C_CurrencyInfo.GetCoinIcon

result = C_CurrencyInfo.GetCoinIcon(amount)

Arguments

amountWOWMONEY

Returns

resultfileID

C_CurrencyInfo.GetCoinText

result = C_CurrencyInfo.GetCoinText(amount, [separator])

Arguments

amountWOWMONEY
separatorcstring default ", "

Returns

resultcstring

C_CurrencyInfo.GetCoinTextureString

result = C_CurrencyInfo.GetCoinTextureString(amount, [fontHeight])

Arguments

amountWOWMONEY
fontHeightnumber default 14

Returns

resultcstring

C_CurrencyInfo.GetCostToTransferCurrency

totalQuantityConsumed = C_CurrencyInfo.GetCostToTransferCurrency(currencyID, quantity)

Arguments

currencyIDnumber
quantitynumber

Returns

totalQuantityConsumednumber may be nil

C_CurrencyInfo.GetCurrencyContainerInfo

info = C_CurrencyInfo.GetCurrencyContainerInfo(currencyType, quantity)

May return nothing.

Arguments

currencyTypenumber
quantitynumber

Returns

infoCurrencyDisplayInfo

C_CurrencyInfo.GetCurrencyDescription

description = C_CurrencyInfo.GetCurrencyDescription(type)

Arguments

typenumber

Returns

descriptioncstring

C_CurrencyInfo.GetCurrencyFilter

filterType = C_CurrencyInfo.GetCurrencyFilter()

Returns

filterTypeCurrencyFilterType

C_CurrencyInfo.GetCurrencyInfo

info = C_CurrencyInfo.GetCurrencyInfo(type)

May return nothing.

Arguments

typenumber

Returns

infoCurrencyInfo

C_CurrencyInfo.GetCurrencyListInfo

info = C_CurrencyInfo.GetCurrencyListInfo(index)

May return nothing.

Arguments

indexluaIndex

Returns

infoCurrencyInfo

C_CurrencyInfo.GetCurrencyListSize

currencyListSize = C_CurrencyInfo.GetCurrencyListSize()

Returns

currencyListSizenumber

C_CurrencyInfo.GetDragonIslesSuppliesCurrencyID

dragonIslesSuppliesCurrencyID = C_CurrencyInfo.GetDragonIslesSuppliesCurrencyID()

Returns

dragonIslesSuppliesCurrencyIDnumber

C_CurrencyInfo.GetFactionGrantedByCurrency

factionID = C_CurrencyInfo.GetFactionGrantedByCurrency(currencyID)

Gets the faction ID for currency that is immediately converted into reputation with that faction instead.

Arguments

currencyIDnumber

Returns

factionIDnumber may be nil

C_CurrencyInfo.GetMaxTransferableAmountFromQuantity

maxTransferableAmount = C_CurrencyInfo.GetMaxTransferableAmountFromQuantity(currencyID, requestedQuantity)

Arguments

currencyIDnumber
requestedQuantitynumber

Returns

maxTransferableAmountnumber may be nil

C_CurrencyInfo.GetPlayerCurrencyCategoryInfo

info = C_CurrencyInfo.GetPlayerCurrencyCategoryInfo(categoryID, [includeAccountWide])

Arguments

categoryIDnumber
includeAccountWidebool default true

Returns

infoPlayerCurrencyCategoryInfo

C_CurrencyInfo.GetWarResourcesCurrencyID

warResourceCurrencyID = C_CurrencyInfo.GetWarResourcesCurrencyID()

Returns

warResourceCurrencyIDnumber

C_CurrencyInfo.IsAccountCharacterCurrencyDataReady

isReady = C_CurrencyInfo.IsAccountCharacterCurrencyDataReady()

Returns

isReadybool

C_CurrencyInfo.IsAccountTransferableCurrency

isAccountTransferableCurrency = C_CurrencyInfo.IsAccountTransferableCurrency(currencyID)

Arguments

currencyIDnumber

Returns

isAccountTransferableCurrencybool

C_CurrencyInfo.IsAccountWideCurrency

isAccountWideCurrency = C_CurrencyInfo.IsAccountWideCurrency(currencyID)

Arguments

currencyIDnumber

Returns

isAccountWideCurrencybool

C_CurrencyInfo.IsCurrencyContainer

isCurrencyContainer = C_CurrencyInfo.IsCurrencyContainer(currencyID, quantity)

Arguments

currencyIDnumber
quantitynumber

Returns

isCurrencyContainerbool

C_CurrencyInfo.IsCurrencyTransferInProgress

currencyTransferInProgress = C_CurrencyInfo.IsCurrencyTransferInProgress()

Returns

currencyTransferInProgressbool

C_CurrencyInfo.IsCurrencyTransferTransactionDataReady

isReady = C_CurrencyInfo.IsCurrencyTransferTransactionDataReady()

Returns

isReadybool

C_CurrencyInfo.PickupCurrency

C_CurrencyInfo.PickupCurrency(type)

Arguments

typenumber

C_CurrencyInfo.PlayerHasMaxQuantity

hasMaxQuantity = C_CurrencyInfo.PlayerHasMaxQuantity(currencyID)

Arguments

currencyIDnumber

Returns

hasMaxQuantitybool

C_CurrencyInfo.PlayerHasMaxWeeklyQuantity

hasMaxWeeklyQuantity = C_CurrencyInfo.PlayerHasMaxWeeklyQuantity(currencyID)

Arguments

currencyIDnumber

Returns

hasMaxWeeklyQuantitybool

C_CurrencyInfo.RequestCurrencyDataForAccountCharacters

C_CurrencyInfo.RequestCurrencyDataForAccountCharacters()

C_CurrencyInfo.RequestCurrencyFromAccountCharacter

C_CurrencyInfo.RequestCurrencyFromAccountCharacter(sourceCharacterGUID, currencyID, quantity)

Arguments

sourceCharacterGUIDWOWGUID
currencyIDnumber
quantitynumber

C_CurrencyInfo.SetCurrencyBackpack

C_CurrencyInfo.SetCurrencyBackpack(index, backpack)

Arguments

indexluaIndex
backpackbool

C_CurrencyInfo.SetCurrencyBackpackByID

C_CurrencyInfo.SetCurrencyBackpackByID(currencyType, backpack)

Arguments

currencyTypenumber
backpackbool

C_CurrencyInfo.SetCurrencyFilter

C_CurrencyInfo.SetCurrencyFilter(filterType)

Arguments

filterTypeCurrencyFilterType

C_CurrencyInfo.SetCurrencyUnused

C_CurrencyInfo.SetCurrencyUnused(index, unused)

Arguments

indexluaIndex
unusedbool

Events

ACCOUNT_CHARACTER_CURRENCY_DATA_RECEIVED

No payload.

ACCOUNT_MONEY

No payload.

CURRENCY_DISPLAY_UPDATE

currencyTypenumber may be nil
quantitynumber may be nil
quantityChangenumber may be nil
quantityGainSourcenumber may be nil
destroyReasonnumber may be nil

CURRENCY_TRANSFER_FAILED

failureReasonAccountCurrencyTransferResult

CURRENCY_TRANSFER_INITIATED

No payload.

CURRENCY_TRANSFER_LOG_UPDATE

No payload.

CURRENCY_TRANSFER_SUCCESS

No payload.

PLAYER_MONEY

No payload.

Tables

BackpackCurrencyInfo structure

namestring
quantitynumber
iconFileIDfileID
currencyTypesIDnumber

CharacterCurrencyData structure

characterGUIDWOWGUID
characterNamestring
fullCharacterNamestring
currencyIDnumber
quantitynumber

CurrencyDisplayInfo structure

namestring
descriptionstring
iconnumber
qualitynumber
displayAmountnumber
actualAmountnumber

CurrencyInfo structure

namecstring
descriptioncstring
currencyIDnumber
isHeaderbool
isHeaderExpandedbool
currencyListDepthnumber
isTypeUnusedbool
isShowInBackpackbool
quantitynumber
trackedQuantitynumber
iconFileIDfileID
maxQuantitynumber
canEarnPerWeekbool
quantityEarnedThisWeeknumber
isTradeablebool
qualityItemQuality
maxWeeklyQuantitynumber
totalEarnednumber
discoveredbool
useTotalEarnedForMaxQtybool
isAccountWidebool
isAccountTransferablebool
transferPercentagenumber may be nil
rechargingCycleDurationMSnumber
rechargingAmountPerCyclenumber

CurrencyTransferTransaction structure

sourceCharacterGUIDWOWGUID
sourceCharacterNamestring default ""
fullSourceCharacterNamestring default ""
destinationCharacterGUIDWOWGUID
destinationCharacterNamestring default ""
fullDestinationCharacterNamestring default ""
currencyTypenumber
quantityTransferrednumber
totalQuantityConsumednumber
timestamptime_t

PlayerCurrencyCategoryInfo structure

categoryNamecstring
currencyTypesnumber[]
childCategoriesnumber[]

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows