Async Web3 library
Project description
This is an opinionated web3 library.
- async as the first citizen.
- websocket support as the first citizen.
- it supports
eth_subscribe()
andeth_unsubscribe()
.
w3 = AsyncWeb3(WebsocketTransport("ws://127.0.0.1:8546"))
await w3.connect()
block_stream = await w3.subscribe_block()
async for new_block in block_stream:
print(f"got new block: {new_block}")
- It has no middleware support.
This library tries to simplify the interaction with the deployed contracts. If you want to deploy a new smart contract, please checkout the awesome brownie
tool.
How to Contribute:
- install
poetry
- under this folder, run
poetry install
- then run
poetry shell
- start the development
- run
poetry run pytest
- send PR
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
async-web3-0.3.0.tar.gz
(9.8 kB
view hashes)
Built Distribution
async_web3-0.3.0-py3-none-any.whl
(11.4 kB
view hashes)
Close
Hashes for async_web3-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b53f2123f1246089c41c9a862c4e13d0615b92b2762f3ae49fba0961591cbf35 |
|
MD5 | c187094d3ef1cc2f409cb7885fcf4cca |
|
BLAKE2b-256 | b2aef4c3b3b5abb23d5a0adc1cd3ae31d3870cb5f4593e10f0d064e25789a237 |