gold

Gold held, across the backpack and every stash.

Refreshes the stash first, so the figure is current rather than cached. `totalGold` includes spectral coins, matching the number the game's own stash shows; the split is returned beside it for callers that need to tell them apart — only regular gold pays on the marketplace.

In Session & character.

Request

POST /api/v1/sessions/{accountKey}/actions/gold

Takes no arguments.

Response

`{ totalGold, regularGold, spectralGold, containers }`.

FieldTypeMeaning
totalGoldintegerRegular plus spectral — the in-game headline figure.
regularGoldintegerWhat can actually be spent on the marketplace.
containers[]object[]Each purse, pouch, bag or chest holding gold, and where it lives.

Example response

{
  "totalGold": 184320,
  "regularGold": 181320,
  "spectralGold": 3000,
  "containers": [
    { "name": "GoldCoinChest", "amount": 150000, "inventoryId": 4 },
    { "name": "GoldCoinPurse", "amount": 31320, "inventoryId": 4 },
    { "name": "SpectralCoinBag", "amount": 3000, "inventoryId": 4 }
  ]
}

Errors

CodeWhen
action_failedNo character is in the lobby.

See also

DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.