Version: 1.0.0
Category: core
Description: Complete catalog of all game entities for AI agents. See schemas/formats.md for format specifications.
| Category | Entities |
|---|---|
| core | Player, Planet, Struct, StructType, Fleet, Address, Permission |
| social | Guild |
| resource | Reactor, Substation |
| economic | Provider, Agreement, Allocation, Infusion |
| Pattern | Format |
|---|---|
| Single entity | {endpoint}/{id} |
| List all | {listEndpoint} |
| Filtered | {endpoint}_by_{filter}/{filterValue} |
| Attributes | {endpoint}_attribute/{entityId}/{attributeType} |
| All attributes | {endpoint}_attribute |
player/structs/player/{id}/structs/playerRelationships:
| Relationship | Target Entities |
|---|---|
| owns | Planet, Struct, Fleet, Reactor, Substation, Provider |
| memberOf | Guild |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/player/{id} |
| all | /structs/player |
| online (derived) | structsd query structs player [id] — (load+structsLoad) <= (capacity+capacitySecondary); there is no halted field or player_halted query |
planet/structs/planet/{id}/structs/planetSector: On-chain sector is uint64 127, 999, or 44 (decimal string in LCD JSON). It is assigned at creation, has no player setter, and has no effect on consensus combat, mining, travel, or permissions.
Relationships:
| Relationship | Target Entities |
|---|---|
| ownedBy | Player |
| contains | Struct, Reactor, Substation |
| hasAttributes | PlanetAttribute |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/planet/{id} |
| all | /structs/planet |
| byPlayer | /structs/planet_by_player/{playerId} |
| attributes | /structs/planet_attribute/{planetId}/{attributeType} |
| allAttributes | /structs/planet_attribute |
Starting Properties (all newly explored planets start with identical properties):
| Property | Value |
|---|---|
| maxOre | 5 |
| spaceSlots | 4 |
| airSlots | 4 |
| landSlots | 4 |
| waterSlots | 4 |
Ownership Rules:
struct/structs/struct/{id}/structs/structRelationships:
| Relationship | Target Entities |
|---|---|
| ownedBy | Player |
| typeOf | StructType |
| locatedOn | Planet, Fleet |
| hasAttributes | StructAttribute |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/struct/{id} |
| all | /structs/struct |
| attributes | /structs/struct_attribute/{structId}/{attributeType} |
| allAttributes | /structs/struct_attribute |
struct-type/structs/struct_type/{id}/structs/struct_typeRelationships:
| Relationship | Target Entities |
|---|---|
| instances | Struct |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/struct_type/{id} |
| all | /structs/struct_type |
fleet/structs/fleet/{id}/structs/fleetRelationships:
| Relationship | Target Entities |
|---|---|
| ownedBy | Player |
| contains | Struct |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/fleet/{id} |
| byIndex | /structs/fleet_by_index/{index} |
| all | /structs/fleet |
guild/structs/guild/{id}/structs/guildRelationships:
| Relationship | Target Entities |
|---|---|
| hasMembers | Player |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/guild/{id} |
| all | /structs/guild |
reactor/structs/reactor/{id}/structs/reactorRelationships:
| Relationship | Target Entities |
|---|---|
| ownedBy | Player |
| locatedOn | Planet |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/reactor/{id} |
| all | /structs/reactor |
substationgridAttributes.connectionCapacity is the usable per-player share, capped by nonzero connectionCapacityMaximum (mW; zero means unlimited)./structs/substation/{id}/structs/substationRelationships:
| Relationship | Target Entities |
|---|---|
| ownedBy | Player |
| locatedOn | Planet |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/substation/{id} |
| all | /structs/substation |
provider/structs/provider/{id}/structs/providerRelationships:
| Relationship | Target Entities |
|---|---|
| ownedBy | Player |
| hasAgreements | Agreement |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/provider/{id} |
| all | /structs/provider |
agreement/structs/agreement/{id}/structs/agreementRelationships:
| Relationship | Target Entities |
|---|---|
| providedBy | Provider |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/agreement/{id} |
| all | /structs/agreement |
| byProvider | /structs/agreement_by_provider/{providerId} |
allocation/structs/allocation/{id}/structs/allocationRelationships:
| Relationship | Target Entities |
|---|---|
| from | Provider, Reactor |
| to | Player, Struct |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/allocation/{id} |
| all | /structs/allocation |
| bySource | /structs/allocation_by_source/{sourceId} |
| byDestination | /structs/allocation_by_destination/{destinationId} |
address/structs/address/{address}/structs/addressFields (flat response — playerId is top-level camelCase, not nested under an Address wrapper):
| Field | Type | Notes |
|---|---|---|
| address | string | The blockchain address |
| playerId | string | Owning player entity ID (e.g. 1-11) |
| permissions | string | uint64 permission bitmask, serialized as a string |
{ "address": "structs1...", "playerId": "1-11", "permissions": "1" }
(Verified in proto/structs/structs/query.proto QueryAddressResponse.)
Relationships:
| Relationship | Target Entities |
|---|---|
| belongsTo | Player |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byAddress | /structs/address/{address} |
| all | /structs/address |
| byPlayer | /structs/address_by_player/{playerId} |
permissionPermAll = 33554431. Bit 24 (PermGuildUGCUpdate = 16777216) gates guild-moderated UGC updates. See knowledge/mechanics/permissions.md for the full reference./structs/permission/{permissionId}/structs/permissionRelationships:
| Relationship | Target Entities |
|---|---|
| grantedTo | Player |
| appliesTo | Guild, Planet, Struct, Fleet, Substation, Allocation, Reactor, Provider, Agreement |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byId | /structs/permission/{permissionId} |
| all | /structs/permission |
| byObject | /structs/permission/object/{objectId} |
| byPlayer | /structs/permission/player/{playerId} |
| guildRankByObject | /structs/guild_rank_permission_by_object/{objectId} |
| guildRankByObjectAndGuild | /structs/guild_rank_permission_by_object_and_guild/{objectId}/{guildId} |
infusion/structs/infusion/{destinationId}/{address}/structs/infusionRelationships:
| Relationship | Target Entities |
|---|---|
| toDestination | Player, Struct |
| fromAddress | Address |
Query Patterns:
| Pattern | Endpoint |
|---|---|
| byDestinationAndAddress | /structs/infusion/{destinationId}/{address} |
| all | /structs/infusion |
| byDestination | /structs/infusion_by_destination/{destinationId} |
Code Reference: x/structs/types/player.pb.go, x/structs/keeper/player_cache.go
Description: Complete Player entity with verified field definitions
Required Fields: id
| Field | Type | Format | Pattern | Description |
|---|---|---|---|---|
| id | string | entity-id | ^1-[0-9]+$ |
Unique player identifier in format ‘type-index’ (e.g., ‘1-11’). Type 1 = Player. |
| index | string | – | – | Player index number |
| guildId | string | entity-id | ^0-[0-9]+$ |
Guild ID if player is a member, empty string if not. Type 0 = Guild. |
| substationId | string | entity-id | ^4-[0-9]+$ |
Substation ID if connected, empty string if not. Type 4 = Substation. |
| creator | string | blockchain-address | – | Blockchain address that created this player |
| primaryAddress | string | blockchain-address | – | Primary blockchain address for this player |
| planetId | string | entity-id | ^2-[0-9]+$ |
Planet ID if player owns a planet, empty string if not. Type 2 = Planet. |
| fleetId | string | entity-id | ^9-[0-9]+$ |
Fleet ID if player owns a fleet, empty string if not. Type 9 = Fleet. |
| capacity | integer | milliwatts | – | Personal generation — energy the player produces via their own infusions (reactor/generator). Only this can be allocated out. |
| capacitySecondary | integer | milliwatts | – | Substation-provided — energy received from the player’s connected substation. Matches substation connectionCapacity. |
| load | integer | milliwatts | – | Energy allocated out — total power routed to others via allocations the player created. |
| structsLoad | integer | milliwatts | – | Struct consumption — sum of PassiveDraw from all the player’s online structs. |
| availableCapacity | integer | milliwatts | – | Available power capacity. Formula: (Capacity + CapacitySecondary) - (Load + StructsLoad) |
| allocatableCapacity | integer | milliwatts | – | Allocatable capacity (primary capacity only). Formula: Capacity - Load |
| playerOnline | boolean | – | – | Player online status. Formula: (Load + StructsLoad) <= (Capacity + CapacitySecondary) |
| lastActionBlock | integer | – | – | Block height of last action (gridAttributes.lastAction in live JSON). Missing key ⇒ 0 ⇒ full charge (omitempty) |
| charge | integer | – | – | Current charge (blocks since last action). Formula: CurrentBlockHeight - lastAction (missing lastAction ⇒ 0) |
| storedOre | integer | ore | – | Raw ore stored by player (can be stolen in raids). Separate from refined Alpha Matter. |
| (removed) | — | No halted field; online = (load+structsLoad) <= (capacity+capacitySecondary) |
||
| nonce | integer | – | – | Nonce for randomness generation (increments with each use) |
| username | string | – | – | Player display name (UGC; see knowledge/mechanics/ugc-moderation.md). Set via MsgPlayerUpdateName. |
| pfp | string | – | – | Profile picture reference (opaque content id or allow-listed URL). Set via MsgPlayerUpdatePfp. |
| pfpClientRenderAttributes | string | – | – | Optional render hints (compacted JSON object, ≤512 bytes) for a locally-rendered pfp. JSON.parse to read; the webapp convention is 5 layer indices {head, neck, body, arms, background}. Owner-only; set via MsgPlayerUpdatePfpClientRenderAttributes. See knowledge/mechanics/ugc-moderation.md#official-webapp-client-convention-the-5-layer-avatar. |
Code Reference: x/structs/types/planet.pb.go, x/structs/keeper/planet_cache.go
Description: Complete Planet entity with verified field definitions
Required Fields: id
| Field | Type | Format | Pattern | Default | Description |
|---|---|---|---|---|---|
| id | string | entity-id | ^2-[0-9]+$ |
– | Unique planet identifier. Type 2 = Planet. |
| ownerId | string | entity-id | ^1-[0-9]+$ |
– | Player who owns this planet. Type 1 = Player. |
| status | string | enum | active, complete |
– | Planet status (active = has ore, complete = depleted) |
| gridAttributes.ore | integer | ore | – | – | Unmined ore remaining. A grid attribute, not a Planet field — there is no remainingOre on the wire. |
| maxOre | integer | ore | – | 5 | Ore capacity; every planet starts at 5 (PlanetStartingOre). There is no startingOre field. |
| spaceSlots | integer | – | – | 4 | Number of space slots available |
| airSlots | integer | – | – | 4 | Number of air slots available |
| landSlots | integer | – | – | 4 | Number of land slots available |
| waterSlots | integer | – | – | 4 | Number of water slots available |
| planetaryShieldBase | integer | – | – | – | Base planetary shield damage |
Code Reference: x/structs/types/struct.pb.go, x/structs/keeper/struct_cache.go
Description: Complete Struct entity with verified field definitions
Required Fields: id, typeId, ownerId
| Field | Type | Format | Pattern | Default | Description |
|---|---|---|---|---|---|
| id | string | entity-id | ^5-[0-9]+$ |
– | Unique struct identifier. Type 5 = Struct. |
| typeId | string | struct-type-id | – | – | Type of struct (references StructType) |
| ownerId | string | entity-id | ^1-[0-9]+$ |
– | Player who owns this struct. Type 1 = Player. |
| locationType | integer | – | – | – | Type of location (9 = fleet, 1 = planet, etc.) |
| locationId | string | – | – | – | ID of location where struct is located |
| operatingAmbit | integer | – | – | – | Operating range/ambit (space/air/land/water) |
| status | string | enum | building, built, online, offline, hidden |
– | Struct status |
| buildDraw | integer | milliwatts | – | – | Power draw during building |
| passiveDraw | integer | milliwatts | – | – | Power draw when active (online) |
| buildDifficulty | integer | – | – | – | Proof-of-work difficulty for building |
| activateCharge | integer | – | – | – | Charge cost to activate struct. Genesis sets activateCharge = 2 for all struct types. |
| buildCharge | integer | – | – | – | Charge cost to build struct |
| oreMiningCharge | integer | – | – | – | Charge cost for ore mining |
| oreRefiningCharge | integer | – | – | – | Charge cost for ore refining |
| oreMiningDifficulty | integer | – | – | 14000 | Proof-of-work difficulty for ore mining |
| oreRefiningDifficulty | integer | – | – | 28000 | Proof-of-work difficulty for ore refining |
| stealthActivateCharge | integer | – | – | – | Charge cost to activate stealth |
| hasStealthSystem | boolean | – | – | – | Whether struct has stealth system |
| isHidden | boolean | – | – | – | Whether struct is currently hidden (stealth active) |
Code Reference: x/structs/types/fleet.pb.go, x/structs/keeper/fleet_cache.go
Description: Complete Fleet entity with verified field definitions
Required Fields: id, ownerId
| Field | Type | Format | Pattern | Description |
|---|---|---|---|---|
| id | string | entity-id | ^9-[0-9]+$ |
Unique fleet identifier. Type 9 = Fleet. |
| ownerId | string | entity-id | ^1-[0-9]+$ |
Player who owns this fleet. Type 1 = Player. |
| slots | array[string] | entity-id | ^5-[0-9]+$ |
Structs in this fleet (array of Struct IDs) |
| status | string | enum | onStation, away |
Fleet status (onStation = home, away = raiding/elsewhere) |
| canMove | boolean | – | – | Whether fleet can move (readiness check) |
Fleet Movement Requirements (canMove):
| Field | Value |
|---|---|
| Verified | true |
| Verified By | GameCodeAnalyst |
| Verified Date | 2025-01-01 |
| Method | code-analysis |
| Confidence | high |
| Note | Field definitions verified against codebase. Some entities need additional field verification. |