605 B
605 B
Economy Module
Module Description
Manages in-game economic transactions, resource management, and market interactions.
API Endpoints
-
GET /economy/state
- Purpose: Retrieve current economic state
- Auth: Required (JWT token)
- Payload: None
- Response:
{"credits": "int", "resources": {"ore": "int", "crystal": "int"}}
-
POST /economy/transaction
- Purpose: Execute resource transaction
- Auth: Required (JWT token)
- Payload:
{"type": "string", "amount": "int", "target": "string"} - Response:
{"status": "string", "transaction_id": "string"}