TypeScript SDK

useAddConnectedWallet

A hook to add a connected wallet without setting the active wallet.

Example

import { useAddConnectedWallet } from "thirdweb/react";
const addConnectedWallet = useAddConnectedWallet();
// later in your code
await addConnectedWallet(wallet);
function useAddConnectedWallet(): (wallet: Wallet) => void;

Returns

let returnType: (wallet: Wallet) => void;

A function that lets you add a connected wallet.