This demo project demonstrates smoldot
- Node.js (version 16 or higher)
- npm or yarn
Install the project dependencies:
npm install
npm run poc
This runs the main smoldot proof-of-concept that:
- Connects to the Polkadot network using the Westend chain specification
- Establishes a
chainHead_v1_follow
subscription to monitor blockchain events - Automatically restarts the subscription if it gets stopped by the server
- Displays real-time blockchain events including:
- New blocks
- Best block changes
- Finalized blocks
- Retracted blocks
References json-rpc-interface-spec json-rpc-docs