Skip to main content

Configure interfaces in the client

The Polywrap Client can be configured to use one or more implementations for an abstract interface.

You can use the Client Config Builder to register implementations for an interface URI.

const config = new ClientConfigBuilder()
.addDefaults()
.addInterfaceImplementations(
"wrap://ens/wrap.interface.eth",
[
"wrap://ens/wrap.implementation1.eth",
"wrap://ens/wrap.implementation2.eth",
"wrap://ens/wrap.implementation3.eth",
]
)
.build();