Skip to content

About

Read-only CLI for the FLOP Testnet genesis, finalized block and runtime version.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

FLOP Testnet Status

A community CLI for FLOP Testnet operators. It checks the RPC endpoint's genesis against the expected network, then reads the last finalized block and its runtime version. It uses read-only WebSocket methods and requires no wallet, credentials, or npm dependencies.

Run

With Node.js 24 or newer:

node --use-system-ca flop_status.mjs

The script uses the public WebSocket and opening genesis in the FLOP Testnet documentation. Supply --rpc wss://your-node.example to check another node on the same chain. If FLOP Labs announces a reset, verify the new hash in the official documentation and pass it with --expected-genesis.

The JSON output includes genesis, finalized_hash, finalized_height (a decimal string), and runtime. The script reads the header and runtime at the same finalized hash, so the output stays consistent if finality advances mid-check. A genesis mismatch, invalid response, or transport error exits with status 1. Set --timeout-ms to adjust the per-step timeout.

Test

node --test test_flop_status.mjs

About

Read-only CLI for the FLOP Testnet genesis, finalized block and runtime version.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages