Help us shape the future of Go! Take the 2026 Go Developer Survey

chain

package
v0.1.115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package chain implements the cast-familiar CometBFT-facing subcommands of `polycli heimdall`: block, block-number, age, find-block, chain-id, chain, client. All calls target the CometBFT JSON-RPC endpoint — the REST gateway is unused here.

The subcommands live at the top level of the heimdall tree (for cast parity) rather than under an intermediate `chain` group. Callers register them with Register(parent).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(parent *cobra.Command, f *config.Flags)

Register attaches the chain-group subcommands directly to parent and binds the shared flag struct for config resolution. parent is typically the root heimdall cobra command.

Every chain subcommand is read-only, so we wire in render.EnableWatch to give them a `--watch DURATION` flag that repeats the call.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL