Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.generalmarket.io/llms.txt

Use this file to discover all available pages before exploring further.

Batch State

The complete state of a single batch — every player, every balance, every commitment. A snapshot of collective conviction at one moment in time.

Get Batch State

GET /vision/batch/{id}/state Returns every player’s position, balance, and bitmap status. Live data from the in-memory tick scheduler — the truth, as of right now.
id
number
required
The batch ID to query. Must be a valid, existing batch.
curl https://generalmarket.io/api/vision/batch/1/state

Response Fields

FieldTypeDescription
idnumberBatch ID
creatorstringEthereum address of the batch creator
market_idsstring[]Market identifiers in this batch
tick_durationnumberSeconds between tick resolutions
created_at_ticknumberThe tick number when the batch was created
pausedbooleanWhether the batch is paused
player_countnumberNumber of active players
next_ticknumberUnix timestamp of the next tick resolution
playersobject[]Array of player positions (see below)

Player Object

FieldTypeDescription
addressstringPlayer’s Ethereum address
stake_per_tickstringAmount staked per tick per market, in wei
balancestringCurrent balance in the batch, in wei
start_ticknumberThe tick number when the player joined
has_bitmapbooleanWhether the player has submitted a bitmap for the current tick
Players with has_bitmap: false forfeit their stake without participating in outcomes. To have no opinion is not to be safe — it is to lose by default.

Errors

StatusCondition
404Batch with the given ID does not exist