Polywrap Ethereum Wallet
This package provides a Polywrap plugin for interacting with EVM networks.
The Ethereum wallet plugin implements the ethereum-provider-interface @ wrapscan.io/polywrap/ethereum-wallet@1.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_wallet import ethereum_wallet_plugin >>> from polywrap_ethereum_wallet.connection import Connection >>> from polywrap_ethereum_wallet.connections import Connections >>> from polywrap_ethereum_wallet.networks import KnownNetwork >>> from polywrap_client_config_builder import ( ... PolywrapClientConfigBuilder ... )
Configure Client
>>> ethreum_provider_interface_uri = Uri.from_str("wrapscan.io/polywrap/ethereum-wallet@1.0")
>>> ethereum_wallet_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_wallet_plugin_uri,
... ethereum_wallet_plugin(connections=connections)
... )
... .add_interface_implementations(
... ethreum_provider_interface_uri,
... [ethereum_wallet_plugin_uri]
... )
... .set_redirect(ethreum_provider_interface_uri, ethereum_wallet_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-wallet 0.1.2
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_wallet-0.1.2.tar.gz | 9.0 kB | Without provenance | Details for polywrap_ethereum_wallet-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polywrap_ethereum_wallet-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for polywrap_ethereum_wallet-0.1.2-py3-none-any.whl |
Total release size: 19.0 kB
Release files / polywrap_ethereum_wallet-0.1.2.tar.gz
| Download URL | polywrap_ethereum_wallet-0.1.2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
631348d0a4a48157b6b027d6cdc7c3a5d2c6e7722f3fb7043699874932b564a4
|
|
BLAKE2b-256 checksum How to use checksums |
b9f625deb7f079a14f43fe546b4b39988db48047af1ef2ccf6cdcfbda5cfafe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Linux/5.15.0-1041-azure
|
Release files / polywrap_ethereum_wallet-0.1.2-py3-none-any.whl
| Download URL | polywrap_ethereum_wallet-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70b48a50d0b937b2556b867f6bfb27782238368e8c9e4420753247e02ef95e34
|
|
BLAKE2b-256 checksum How to use checksums |
a1cccf05c6537165cb26da77adf202aa325a27c496e9b9d8bce27e87b3d822a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Linux/5.15.0-1041-azure
|
Security for polywrap-ethereum-wallet 0.1.2
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.