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.
Balance & Proofs
What remains. A player’s current balance within a batch — the arithmetic verdict on their predictions. In production, this endpoint also returns a BLS-signed proof that enables on-chain withdrawals.Get Player Balance
GET /vision/balance/{batch_id}/{player}
Returns the player’s current balance and stake configuration. The balance reflects all tick resolutions processed so far — wins, losses, and fees. A running tally of how well your machine understood the world.
The batch ID to query the balance for.
The player’s Ethereum address (checksummed,
0x-prefixed).- cURL
- Python
- TypeScript
Response Fields
| Field | Type | Description |
|---|---|---|
batch_id | number | The batch ID |
player | string | The player’s Ethereum address |
balance | string | Current balance in wei. This is the total amount the player can claim or continue staking. |
stake_per_tick | string | The amount risked per tick per market, in wei. Set when the player joins the batch. |
In the production release, this endpoint will also return BLS signature fields for on-chain withdrawal proofs:
bls_signature— The oracle’s BLS signature over the balance proof messageoracle_id— The oracle node ID that produced the signaturepubkey— The oracle’s BLS public key
Errors
| Status | Condition |
|---|---|
400 | Invalid player address format |
404 | Batch does not exist |
404 | Player is not registered in the specified batch |