ThorPulse NATS
ThorPulse NATS documentation
Last updated
go get github.com/thorlabsDev/thorpulse-goimport "github.com/thorlabsDev/thorpulse-go"
c, err := client.Connect(client.DefaultConfig("nats://ny-rpc.thornode.io:4222"))
defer c.Close()
c.SubscribeSlots(func(slot *client.SlotUpdate) {
fmt.Printf("Slot %d: %s\n", slot.Slot, slot.Status)
})[dependencies]
thorpulse-client = "0.1"use thorpulse_client::ThorPulseClient;
let client = ThorPulseClient::connect_simple("nats://ny-rpc.thornode.io:4222").await?;
let mut slots = client.subscribe_slots().await?;
while let Some(slot) = slots.recv().await {
println!("Slot {}: {:?}", slot?.slot, slot?.status);
}docs/
├── getting-started/
│ ├── quickstart.md # 5-minute quick start
│ └── authentication.md # JWT credentials and tiers
├── reference/
│ ├── topics.md # Complete topic schema
│ └── subscriptions.md # Subscription patterns and filters