#substrate #polkadot #blockchain #crypto

app substrate-spec-version

A dead-simple CLI tool to get the spec version of a substrate-based blockchain from the specified websocket URL

1 unstable release

0.1.0 May 15, 2024

#287 in #substrate

Download history 1/week @ 2024-06-05 13/week @ 2024-06-12 9/week @ 2024-06-19 3/week @ 2024-06-26 41/week @ 2024-07-03 36/week @ 2024-07-10 26/week @ 2024-07-17 22/week @ 2024-07-24 29/week @ 2024-07-31 24/week @ 2024-08-07 23/week @ 2024-08-14 20/week @ 2024-08-21 30/week @ 2024-08-28 22/week @ 2024-09-04 47/week @ 2024-09-11 18/week @ 2024-09-18

127 downloads per month

MIT license

24KB

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

Dependencies

~20–31MB
~469K SLoC