Ethereal
Ethereal is a lightweight wrapper around the Web3 class that simplifies working with Ethereum smart contracts.
To use it, simply create a regular Web3 instance and write w3 = Ethereal(w3).
Then, you can use w3 as usual, but with additional methods
accessible under the e property.
For example, you can call w3.e.get_abi("0x...") or
w3.e.list_events("0x...", "Mint", "2023-01-01", "2023-02-14").
For more available methods, please refer to the EtherealFacade class.
Demo
Example
from web3.auto import w3
from ethereal import Ethereal
from ethereal import load_provider_from_uri
# If WEB3_PROVIDER_URI env is not set, uncomment the lines below
# w3 = Web3(load_provider_from_uri("https://alchemy.com/..."))
w3 = Ethereal(w3)
ADDRESS = "0xB0B195aEFA3650A6908f15CdaC7D92F8a5791B0B"
print(w3.e.list_events(ADDRESS))
# Lists event signatures for the contract at ADDRESS
events = w3.e.get_events(ADDRESS, "Transfer", "2023-01-01", "2023-02-14")
# Gets all Transfer events for the contract at ADDRESS between 2023-01-01 and 2023-02-14
print(events[:10])
Install
pip install ethereal
Supported networks
- Ethereum
- Polygon
- Avalanche
- Fantom
- Arbitrum
- Optimism
Contributing
Feel free to create feature requests or pull requests :D
Metadata
Release files for ethereal 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ethereal-0.1.9.tar.gz | 12.0 kB | Without provenance | Details for ethereal-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ethereal-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for ethereal-0.1.9-py3-none-any.whl |
Total release size: 26.4 kB
Release files / ethereal-0.1.9.tar.gz
| Download URL | ethereal-0.1.9.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45eeb40b85c92d4605a4877bd464b291a86b978a200c243f4746c3ba784888b0
|
|
BLAKE2b-256 checksum How to use checksums |
c198f529f5feaf284cccf4f9f1042b6bae8a354c7d42af8d21d8966969935404
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.9 Darwin/22.3.0
|
Release files / ethereal-0.1.9-py3-none-any.whl
| Download URL | ethereal-0.1.9-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e09d32ff2343e9982a5656c29cdc420b5f7230ae94aa95336b964d3e953ddf71
|
|
BLAKE2b-256 checksum How to use checksums |
871514706538a1469d098aaaa0ea7dc4035ea686ef65998a6e95cca1612a78b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.9 Darwin/22.3.0
|
Security for ethereal 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.