polywrap_ethereum_wallet.connection module

This module contains a connection class for an EVM network.

class polywrap_ethereum_wallet.connection.Connection(provider: JSONBaseProvider | str, signer: str | None)[source]

Bases: object

Defines a connection to an EVM network.

classmethod from_network(network: KnownNetwork, signer: str | None = None)[source]

Create a connection from a known network.

classmethod from_node(node: str, signer: str | None = None)[source]

Create a connection from a node URL.

has_signer() bool[source]

Returns true if the connection has a signer.

property provider: JSONBaseProvider

EVM network provider.

property signer: str

Private key for signing transactions.