A lightweight Ethereum-compatible blockchain fork with P2P networking
Project description
NanoPy
Ethereum-compatible PoS blockchain in Python.
Install
pip install nanopy-chain
nanopy-node
Features
- PoS consensus
- EVM compatible
- libp2p P2P networking
- JSON-RPC (HTTP + WebSocket on same port)
eth_subscribefor real-time events
RPC
Single port serves HTTP and WebSocket:
# HTTP
curl -X POST http://localhost:8545 -d '{"method":"eth_blockNumber",...}'
# WebSocket (same port)
wscat -c ws://localhost:8545
> {"method":"eth_subscribe","params":["newHeads"],...}
Subscriptions: newHeads, newPendingTransactions, logs
Network
| Property | Value |
|---|---|
| Chain ID | 7770 |
| Token | NPY |
| RPC | 8545 |
| P2P | 30303 |
CLI
nanopy-node # Start node
nanopy-node --testnet # Testnet
nanopy wallet # Generate wallet
nanopy balance 0x... # Check balance
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nanopy_chain-1.2.86.tar.gz
(534.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nanopy_chain-1.2.86-py3-none-any.whl
(666.2 kB
view details)
File details
Details for the file nanopy_chain-1.2.86.tar.gz.
File metadata
- Download URL: nanopy_chain-1.2.86.tar.gz
- Upload date:
- Size: 534.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
396ea4b2ae33f6307786a7ed58101053e45d16752e96d8ec0d54fd0cbcaedb9a
|
|
| MD5 |
3b2d7d07cad8faf87d3ca5a8f632a0b0
|
|
| BLAKE2b-256 |
57d5d69aa4e4488a33f4a729c55ce4d15413b2a3f6f623e72f56e18c2b0cbcd3
|
File details
Details for the file nanopy_chain-1.2.86-py3-none-any.whl.
File metadata
- Download URL: nanopy_chain-1.2.86-py3-none-any.whl
- Upload date:
- Size: 666.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7c14a6d3f1d6cb5f01e27757750e39e1e53df83786edac5565b87af621a67bf
|
|
| MD5 |
8ef5a2e94c89d647a86e29aabd06194f
|
|
| BLAKE2b-256 |
f9213949226637935fb21ef63b001913cd513e4abef14d6231059c031cddac06
|