A minimal Yellowstone gRPC client in Zig that actually compiles and runs. No AI-slop, no vibe-coded skeleton — just a working example I couldn't find when I needed it.
sudo apt install libgrpc-devYS_ENDPOINT=<endpoint> YS_TOKEN=<token> zig build runThe main.zig contains a subscription to Orca Whirlpools Program(whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc) transactions
and to slots, you should see something like this:
zig build run 2>&1
info(grpc): slot: 418824409 signature: 3oei8Lw9eJiwDBCkHrafgDq7fM8RRZu8yVBGW9JnRtVvPnBE8RDM8AE4W2WRMz8YEy9UuBCpvtw9K6jCG4PsgF4r
info(grpc): slot: 418824409 signature: 4SbQ3Xk93wD9PVcLHUqrf74YKG8JMU7GczHAvVJ16nxWmJasHjtf5buSUJQCa2gr264i8r63cdcV7giCLBHBiujh
info(grpc): slot: 418824410
info(grpc): slot: 418824410 signature: PPYrKmeGEHYBLchrueKceXfTvuVfmUDV2ezcG6NtHiyyTMw3f51GskjuQroRFyZLrX8nm2VFxd8N2f9covZihJ4
info(grpc): slot: 418824410 signature: 4763m2vX55K1nBw8MuX62NUiU4UuwH3q98ZQPKxPsDa7dVMEL2renA1se8i7QDXWrN3KWSnL7gak9jN83iooZxGC
info(grpc): slot: 418824410 signature: 2eXJ2syCPS7LCj4UGzNzJjpMapyGYFVu6U8ckWKN9cSx18BKyYMbZDWPk5Uzv7WkgCfBDaYMupKWo5vwZVoW4gLu
info(grpc): slot: 418824411
info(grpc): slot: 418824411 signature: 5f44uTukLGfRUa1Y9vLfxKvJpZHcLMUjGv6PNwhELtg2wd2bUQAgEwtvUKrMbRexawgAkacTM4cA5DWPvAMD5p4X
info(grpc): slot: 418824412
info(grpc): slot: 418824412 signature: 2gsaEGJ1gRFZbsrauJqWfrPP1W91iEzLtvikUhF4HVmqZXMpymqp7BQXUg3sg6nMWa82t8K4V4PGgVkcEw4FqN99
info(grpc): slot: 418824412 signature: 3QCNaL822s6CeQkknWFJQheTqMz6E6ckDn9UvecHqqEkxhcWLcpUhdnzCYXgCRqUGkgDzbL8SDRZVh9GgaaqaRPiFeel free to fork modify or whatever you have in mind, hope this save you some Google search or Ai time.