useConnectors

Hook to work with connectors.

This hook is the recommended way to interact with the connectors.

Notice that the available connectors are computed as soon as the hook is rendered, which could happen before the browser wallets had the opportunity to inject themselves in the page.

The best practice is to periodically refresh the available connectors.

Examples

This example shows all registered connectors and connects to the specified one.

This example shows how to refresh the available connectors every 5 seconds.