ethers-py icon indicating copy to clipboard operation
ethers-py copied to clipboard

Python library for interacting with the Ethereum Blockchain

ethers-py

Python library for interacting with the Ethereum Blockchain and bindings for the great ethers-rs

Install

pip install -U pip
pip install ethers

Getting started

from ethers.providers import HTTPProvider

provider = HTTPProvider("https://mainnet.infura.io/v3/your_infura_id")
block_number = await provider.get_block_number()
# 14429070

Development setup

pip install -r requirements-dev.txt
maturin develop

Features

  • [ ] Ethereum JSON-RPC Client
  • [ ] Interacting and deploying smart contracts
  • [ ] Type safe smart contract bindings code generation
  • [ ] Querying past events
  • [ ] Event monitoring as Streams
  • [ ] ENS as a first class citizen
  • [ ] Celo support
  • [ ] Polygon support
  • [ ] Avalanche support
  • [ ] Websockets / eth_subscribe
  • [ ] Hardware Wallet Support
  • [ ] Parity APIs (tracing, parity_blockWithReceipts)
  • [ ] Geth TxPool API
  • [ ] WASM Bindings (see note)
  • [ ] FFI Bindings (see note)
  • [ ] CLI for common operations