Understanding plugins
Polywrap plugins enable existing SDKs implemented in the client's language (e.g. JavaScript) to be queried as if they were normal wrappers.
For information on how to create your own Polywrap plugin, read the guide here.
Plugins can be used to enable any native client functionality that cannot be implemented in WebAssembly, such as sending HTTP requests, or signing with a private key.
#
Default PluginsAll Polywrap clients come equipped with the following default plugins:
ens/ens.web3api.eth
ens/ipfs.web3api.eth
ens/ethereum.web3api.eth
w3/logger
#
Plugin URI RedirectsPlugins are configured using URI Redirects. We would specify the uri
property as the URI of the plugin we want to use, and the plugin
property as the actual plugin.
For example, we can add an Ethereum plugin that uses MetaMask (or any other Ethereum JS provider) for its provider & signer!