elyase / ethers-py

Python library for interacting with the Ethereum Blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Python library for interacting with the Ethereum Blockchain

License:MIT License


Languages

Language:Python 81.5%Language:Rust 18.5%