get-block-number
OfficialFetch the latest block number quickly.
Authortradingstrategy-ai
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Retrieve the latest block number from a blockchain using Web3.py and JSON-RPC environment variables, enabling real-time chain insights without manual RPC calls.
Core Features & Use Cases
- Retrieve the current block height from configured chains via JSON_RPC_{CHAIN} and a multi-provider.
- Works across Ethereum-compatible networks by leveraging Web3.py for consistent interaction.
- Use cases include monitoring dashboards, on-chain data collection, and lightweight health checks for deployments.
Quick Start
Set JSON_RPC_{CHAIN} environment variable to your node URL and run the provided script to print the latest block number.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: get-block-number Download link: https://github.com/tradingstrategy-ai/web3-ethereum-defi/archive/main.zip#get-block-number Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.