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.
With Node.js 24 or newer:
node --use-system-ca flop_status.mjsThe 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.
node --test test_flop_status.mjs