Skip to content

serializeItems

serializeItems(itemIds, timeoutMs?): Promise<Buffer>

Serializes the named items into a signed buffer, so that another player can verify ownership with deserializeResult().

Read-only. It builds a small result with getItemsByID, as the SDK recommends, and then serializes it. Steam marks the buffer expired after one hour; the check in deserializeResult() then still returns the items, with expired set. Rejects when an id is invalid, when Steam reports an error, or when no answer arrives in time.

bigint[]

The instance ids of the items to prove, as bigint values.

number | null

How long to wait for Steam, in milliseconds. Defaults to 30000.

Promise<Buffer>

the serialized, signed result.

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.