Batteries-included client to interact with blockchains and smart contracts
Project description
Batteries-included client to interact with blockchains and smart contracts; used by web3cli
and crabada.py.
Features
- Easily create a client to interact with EVM-compatible chains
- Works with Ethereum, Binance, Avalanche, Arbitrum One, zkSync Era, etc.
- Subscribe to pending transactions in the mempool and new blocks
- Flexible logging of RPC calls and transactions
- Interact with tokens and ETH with the same dual interface
- Includes a client for Compound V2 operations, and its clones
- Save gas by setting an upper limit on the base fee
- Need more flexibility? Use directly the underlying web3.py client
Install
pip3 install -U web3client
Examples
I am working on a tutorial, but in the meantime, you can find some examples
- in the examples folder, and
- in the tests folder.
Test suite web3test
web3client
comes with several pytest plugins you can use to test your scripts:
web3test-ape
: fixtures of accounts and smart contracts (erc20, compound, etc)web3test-web3client
: fixtures of clients for various smart contractsweb3test-web3factory
: fixtures of clients for various chains
To use one or more plugins in your script, add the following lines at the top of your `conftest.py``:
pytest_plugins = [
"web3test-ape", "web3test-web3client", "web3test-web3factory"
]
The order of the plugins in the aray is important.
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 🙂
Contributing
All contributions are welcome! To start improving web3client
, please refer to our contribution guide.
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-1.2.9.tar.gz
(655.0 kB
view hashes)
Built Distribution
web3client-1.2.9-py3-none-any.whl
(47.2 kB
view hashes)
Close
Hashes for web3client-1.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d960845b23e448db285a1d48c72aae3e08b585431d0deb34d534dcbcb652d7d |
|
MD5 | 9d0166deeae4e84ec534b2c5c031dc40 |
|
BLAKE2b-256 | 8c7806c398f6506af2893dfa017678d6d77691c656bbbdebd44ae26f8ceb4e40 |