The Guild Rapid Alert System Stream (GRASS) provides a constant real-time stream of all updates to the Structs game state.

GRASS, built on NATS, can be consumed by any supported library or client.

<aside> 🔥

GRASS can be expanded by Guilds to stream additional data unique to their players.

</aside>

https://github.com/playstructs/structs-grass

https://github.com/playstructs/docker-structs-grass

Using GRASS

This article on Subject-Based Messaging through NATS best described how the subjects can be used to stream only the exact data needed for your purpose.

Example

Subscribing to structs.consensus will provide you with a constant stream of block height updates.

{
	"subject": "structs.consensus", 
	"category": "block", 
	"height": 105911, 
	"updated_at": "2024-11-08T17:34:19.860779+00:00"
}

GRASS Subjects & Categories

The following list outlines the stock stream subjects available through GRASS, including detailed descriptions of each category message type.

Consensus Engine Network State

Subject: structs.consensus