Skip to content

deserializeResult

deserializeResult(data, expectedSteamId): InventoryResultData | null

Checks a buffer made by serializeItems() and reads the items in it. This runs synchronously and does not wait for Steam.

Read-only. Returns null when Steam rejects the buffer (for example because it was altered), when Steam is offline and needs a full online check, or when the items belong to a different user than expectedSteamId. Always pass the id of the player who sent the buffer, so that nobody can pass off another player’s items.

Buffer

The buffer received from another player.

bigint

The 64-bit Steam id of the player who should own the items, as a bigint.

InventoryResultData | null

the verified items with expired set when the buffer is out of date, or null when verification fails.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.