Client to interact with multiple EVM blockchain
Project description
Easy to use Python client to interact with multiple EVM blockchain.
Features
- Easily create a client to interact with EVM-compatible chains.
- Preconfigured for the most popular chains: Ethereum, Binance, Avalanche, Cronos, etc.
- Exposes the underlying web3.py client to allow for more flexibility
Examples
Get the latest block on both Ethereum and Avalanche:
from web3factory.factory import make_client
print(make_client('ethereum').getLatestBlock())
print(make_client('avalanche').getLatestBlock())
Use your RPC for better performance:
print(make_client('ethereum', 'https://mainnet.infura.io/v3/<api-key>').getLatestBlock())
Install
pip3 install -U web3client
It doesn't work 😡
Don't panic! Instead...
- Please check if your issue is listed in the Issues tab.
- If not, consider writing a new issue 🙂
Testing
pytest tests
TO DO
- Test ERC20 read functions
- Harmonize between camel case and snake case
- Easy accessors for token and network props
- Add BNB chain
- Add write examples and tests
- Add Uniswap V2 LP contracts
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
web3client-0.3.0.tar.gz
(13.3 kB
view hashes)
Built Distribution
web3client-0.3.0-py3-none-any.whl
(15.1 kB
view hashes)
Close
Hashes for web3client-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e930872a65e1ddaede81bbe99ecf4745437587acf695e6f55bc3f51891ae382 |
|
MD5 | fa7e5ccf8105928eeb4c17db6780219a |
|
BLAKE2b-256 | 95f60b7fe417a40f8ad1d226f6b06147ca0082f8b1c3f0179bb5a9444a48219f |