Supported Connectors In web3-react
This page documents external web3-react connectors as frontend integration options. They are not part of the public Ring SDK package surface.
This guide covers how to connect a dApp to the different connectors that web3-react supports. It is based on the upstream web3-react example, which is still relevant when building a Ring frontend around the public SDK packages.
This example covers:
- Coinbase Wallet
- WalletConnect
- Network
- Gnosis Safe
For help setting up the provider and MetaMask flow first, see Connecting Wallets.
The guide covers:
- Building a Coinbase Wallet connector
- Building a WalletConnect connector
- Building a Network connector
- Building a Gnosis Safe connector
For this guide, the following external packages are used:
@web3-react/core@web3-react/types@web3-react/coinbase-wallet@web3-react/walletconnect@web3-react/network@web3-react/gnosis-safe
Coinbase Wallet
The example connector list includes a Coinbase Wallet connector:
loading...
Install the Coinbase Wallet packages, then import CoinbaseWallet and initializeConnector:
loading...
Initialize the connector with the required options:
loading...
Then build the Connection wrapper:
loading...
WalletConnect
To connect to WalletConnect, import the connector type and initialize it with the RPC map and QR-code options:
loading...
loading...
The example uses a chain-to-RPC map from its constants file, then surfaces the connector through the UI:
loading...
Network Connector
The Network connector is usually connected programmatically instead of through a button-driven UI. The example eagerly attempts to connect to it from the provider layer:
loading...
Import and initialize it like this:
loading...
loading...
Then wrap it as a Connection:
loading...
Gnosis Safe
The Gnosis Safe connector follows the same pattern, but requires less parameterization:
loading...
loading...
loading...
Ring Integration Note
These connectors solve wallet connectivity. Ring-specific protocol behavior should still live in the public Ring SDK packages and your frontend integration code.
Next Steps
Continue to Switching Chains.