This release is a pre-release and may not be stable for production use.
Polywrap Ethereum Provider
This package provides a Polywrap plugin for interacting with EVM networks.
The Ethereum Provider plugin implements the ethereum-provider-interface @ ens/wraps.eth:ethereum-provider@2.0.0 (see ../../interface/polywrap.graphql ). It handles Ethereum wallet transaction signatures and sends JSON RPC requests for the Ethereum wrapper.
Quickstart
Imports
>>> from polywrap_core import Uri >>> from polywrap_client import PolywrapClient >>> from polywrap_ethereum_provider import ethereum_provider_plugin >>> from polywrap_ethereum_provider.connection import Connection >>> from polywrap_ethereum_provider.connections import Connections >>> from polywrap_ethereum_provider.networks import KnownNetwork >>> from polywrap_client_config_builder import ( ... PolywrapClientConfigBuilder ... )
Configure Client
>>> ethreum_provider_interface_uri = Uri.from_str("ens/wraps.eth:ethereum-provider@2.0.0")
>>> ethereum_provider_plugin_uri = Uri.from_str("plugin/ethereum-provider")
>>> connections = Connections(
... connections={
... "sepolia": Connection.from_network(KnownNetwork.sepolia, None)
... },
... default_network="sepolia"
... )
>>> client_config = (
... PolywrapClientConfigBuilder()
... .set_package(
... ethereum_provider_plugin_uri,
... ethereum_provider_plugin(connections=connections)
... )
... .add_interface_implementations(
... ethreum_provider_interface_uri,
... [ethereum_provider_plugin_uri]
... )
... .set_redirect(ethreum_provider_interface_uri, ethereum_provider_plugin_uri)
... .build()
... )
>>> client = PolywrapClient(client_config)
Invocation
>>> result = client.invoke(
... uri=ethreum_provider_interface_uri,
... method="request",
... args={"method": "eth_chainId"},
... encode_result=False,
... )
>>> print(result)
"0xaa36a7"
Metadata
Release files for polywrap-ethereum-provider 0.1.0b7
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 |
|---|---|---|---|---|
| polywrap_ethereum_provider-0.1.0b7.tar.gz | 9.5 kB | Without provenance | Details for polywrap_ethereum_provider-0.1.0b7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polywrap_ethereum_provider-0.1.0b7-py3-none-any.whl | Python 3 | none | any | Details for polywrap_ethereum_provider-0.1.0b7-py3-none-any.whl |
Total release size: 19.6 kB
Release files / polywrap_ethereum_provider-0.1.0b7.tar.gz
| Download URL | polywrap_ethereum_provider-0.1.0b7.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fad34ad3fdf4ead66cda6be3f41615389d0062c2786c8bfa2338e05f929aaaf
|
|
BLAKE2b-256 checksum How to use checksums |
5163f4cc85c1ce09c300b73d179f00e64ebd8d2c0bf7e48cf0d75590446f9dad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure
|
Release files / polywrap_ethereum_provider-0.1.0b7-py3-none-any.whl
| Download URL | polywrap_ethereum_provider-0.1.0b7-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2976b09d6bbe6290ae02ef1f0f14733f3db00a696ef11a2f5677f565f7568d97
|
|
BLAKE2b-256 checksum How to use checksums |
0bb076e2d7b81cd87e4580db59b24209d296ae38dc3d400c8e34ee912df06410
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure
|
Security for polywrap-ethereum-provider 0.1.0b7
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.