Skip to main content

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_subscribe for 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


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.80.tar.gz (533.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nanopy_chain-1.2.80-py3-none-any.whl (665.5 kB view details)

Uploaded Python 3

File details

Details for the file nanopy_chain-1.2.80.tar.gz.

File metadata

  • Download URL: nanopy_chain-1.2.80.tar.gz
  • Upload date:
  • Size: 533.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nanopy_chain-1.2.80.tar.gz
Algorithm Hash digest
SHA256 a626339fd183d991007734acd21691d97867317ce050c37128b288f8604e90a9
MD5 d8d0cca0e08f4789ba39e7c41709b2ed
BLAKE2b-256 1eda63e6513ba9e460154e9ba748de39d73e1716e12e127bf2f5282efaf6d35b

See more details on using hashes here.

File details

Details for the file nanopy_chain-1.2.80-py3-none-any.whl.

File metadata

  • Download URL: nanopy_chain-1.2.80-py3-none-any.whl
  • Upload date:
  • Size: 665.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nanopy_chain-1.2.80-py3-none-any.whl
Algorithm Hash digest
SHA256 ac496b11837fd08f4020f45f3fc7fa7b6a5a1dfba8b12f71a1a7c27a294d89ff
MD5 d4b7c3243ea55f081267438b45e218fd
BLAKE2b-256 bb38e19955a4834404a7dc8a5b2e13953d0a7706f61f00132b441efa129f6155

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page