
- React
- wagmi
WalletKitLinkProvider accepts an externalConnectors prop that can be used to inject buttons with customizable behavior.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Onboard users using their existing wallets via MetaMask, Coinbase, or WalletConnect

WalletKitLinkProvider accepts an externalConnectors prop that can be used to inject buttons with customizable behavior.const externalConnectors = [
{
id: 'metaMask',
name: 'MetaMask',
logo: ({className}: { className: string }) => <MetaMaskLogo className={className}/>,
onClick: async () => {
await window.ethereum.request({
method: "eth_requestAccounts",
});
},
}
]
export function App() {
return (
<WalletKitLinkProvider link={..} externalConnectors={externalConnectors}>
...
</WalletKitLinkProvider>;
)
}
Add connectors to wagmi
export const wagmiConfig = createConfig({
chains: [..],
transports: {..},
connectors: [
coinbaseWallet({
appName: 'My Wagmi App',
}),
walletConnect({
projectId: '<My Wallet Connect ID>',
}),
walletKitLink({
projectId: '<My WalletKit Project ID>',
}),
]
});
Configure WalletKitLinkWagmiProvider
WalletKitWagmiProvider accepts an externalConnectorIds prop that can be used to filter and order which connectors should be displayed in the WalletKit Link modal.For example, to support MetaMask, Coinbase, and Wallet Connect (in that order), use the following:export function App() {
return (
<WagmiProvider config={wagmiConfig}>
<QueryClientProvider client={queryClient}>
<WalletKitLinkWagmiProvider
externalConnectorIds={[
"io.metamask",
"coinbaseWalletSDK",
"walletConnect",
]}
>
...
</WalletKitLinkWagmiProvider>
</QueryClientProvider>
</WagmiProvider>
);
}