Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.31 KB

File metadata and controls

38 lines (28 loc) · 1.31 KB

subscribe — Real-Time Event Streaming

Subscribe to finalized blocks or filtered chain events in real-time. Useful for monitoring, alerting, and integration pipelines.

Subcommands

subscribe blocks

Watch finalized blocks as they are produced (~12s intervals).

agcli subscribe blocks

subscribe events

Stream chain events with optional filtering.

agcli subscribe events [--filter staking] [--netuid 1] [--account SS58]

Filter Categories

Filter Events Included
all Everything
staking StakeAdded, StakeRemoved, StakeMoved
registration NeuronRegistered, BulkNeuronsRegistered
transfer Transfer, Deposit, Withdraw
weights WeightsSet, WeightsCommitted, WeightsRevealed
subnet NetworkAdded, NetworkRemoved, hyperparameter changes

Source Code

agcli handler: src/cli/network_cmds.rshandle_subscribe() at L284, subcommands: Blocks L292, Events L293

On-chain: uses subxt subscription APIs (subscribe_finalized_blocks, subscribe_events) — no extrinsics.

Related Commands

  • agcli subnet monitor — Higher-level subnet monitoring with anomaly detection
  • agcli subnet watch — Tempo countdown and weight window status