substrate-spec-version

Crates.iosubstrate-spec-version
lib.rssubstrate-spec-version
version0.1.0
sourcesrc
created_at2024-05-15 21:17:57.384184
updated_at2024-05-15 21:17:57.384184
descriptionA dead-simple CLI tool to get the spec version of a substrate-based blockchain from the specified websocket URL
homepage
repositoryhttps://github.com/sam0x17/substrate-spec-version
max_upload_size
id1241517
size90,302
Sam Johnson (sam0x17)

documentation

README

substrate-spec-version

Crates.io docs.rs Build Status MIT License

An extremely simple CLI utility that uses subxt to query a live substrate/polkadot-sdk-based blockchain based on the websocket URL for the blockchain and display the current spec version as output. Very useful for CI situations where knowing the live spec version on-chain is desirable.

Installation

cargo install substrate-spec-version

Usage

substrate-spec-version wss://rpc.polkadot.io
100200
Commit count: 9

cargo fmt