Skip to content
For the complete documentation index optimized for AI agents, see llms.txt or llms-full.txt. A markdown version of this page is available by appending .md to the URL or sending Accept: text/markdown.

a4-server

For AI agents: the documentation index is at llms.txt (full corpus: llms-full.txt). A markdown source for this page is /a4-server/overview.md.

a4-server is a Rust crate that lets you run your compiled stack as a standalone WebSocket server. It connects to a Yellowstone gRPC endpoint, processes Solana data through your projections, and streams the results to connected clients.

To run a stack with a4-server, you need:

RequirementDescription
Yellowstone gRPC EndpointA URL to a Solana node running the Yellowstone Geyser plugin. This is your source of blockchain data.
X-TokenAuthentication token for your Yellowstone provider (most providers require this).
Rust 1.75+Required to build the server binary.
A compiled stackYour stack crate with the #[arete(...)] macro, which generates a spec() function.

a4-server reads configuration from environment variables:

VariableRequiredDescription
YELLOWSTONE_ENDPOINTYesYour Yellowstone gRPC endpoint URL
YELLOWSTONE_X_TOKENUsuallyAuthentication token for the endpoint

Use a4-server when:

  • Developing and testing stacks locally
  • Running a single stack in your own infrastructure
  • You need full control over the server deployment
  • You already have Yellowstone gRPC access

Consider Arete Cloud when:

  • You need multi-stack orchestration
  • You want managed Yellowstone infrastructure
  • You need built-in authentication and API keys
  • You prefer zero-config deployment