Skip to main content

Polywrap System Client Config Bundle

Project description

This package contains the system configuration bundle for Polywrap Client.

Bundled Wraps

wrap

description

http

To make HTTP requests

ipfs_http_client

To add or retrieve items from IPFS

ipfs_resolver

To fetch wraps from IPFS

ethereum_provider

To perform ethereum RPC calls

ethereum-wrapper

A higher level API to perform ethereum operations (like etheres.js)

ens_text_record_resolver

To resolve URIs from ens text record

ens_ipfs_contenthash_resolver

To resolve URIs from ens content hash

ens_resolver

To resolve URIs from ens

Quickstart

Imports

>>> from polywrap_client_config_builder import PolywrapClientConfigBuilder
>>> from polywrap_web3_config_bundle import web3_bundle
>>> from polywrap_client import PolywrapClient
>>> from polywrap_core import Uri, UriPackage

Configure

>>> config = PolywrapClientConfigBuilder().add_bundle(web3_bundle).build()
>>> client = PolywrapClient(config)

Resolve URI with bundled ens resolver

>>> response = client.try_resolve_uri(
...     Uri.from_str("wrap://ens/wrap-link.eth")
... )
>>> assert isinstance(response, UriPackage)

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

polywrap_web3_config_bundle-0.1.0b6.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page