https://github.com/sam0x17/substrate-spec-version
An extremely simple CLI utility that allows you to query the current spec version from a live substrate (polkadot-sdk)-based chain based on the websocket URL for the chain
https://github.com/sam0x17/substrate-spec-version
Last synced: 24 days ago
JSON representation
An extremely simple CLI utility that allows you to query the current spec version from a live substrate (polkadot-sdk)-based chain based on the websocket URL for the chain
- Host: GitHub
- URL: https://github.com/sam0x17/substrate-spec-version
- Owner: sam0x17
- License: mit
- Created: 2024-05-15T21:04:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-15T21:17:38.000Z (over 1 year ago)
- Last Synced: 2025-02-28T07:33:18.131Z (11 months ago)
- Language: Rust
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# substrate-spec-version
[](https://crates.io/crates/substrate-spec-version)
[](https://docs.rs/substrate-spec-version/latest/substrate-spec-version/)
[](https://github.com/sam0x17/substrate-spec-version/actions/workflows/ci.yaml?query=branch%3Amain)
[](https://github.com/sam0x17/substrate-spec-version/blob/main/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
```sh
cargo install substrate-spec-version
```
## Usage
```sh
substrate-spec-version wss://rpc.polkadot.io
100200
```