Docs

smartWalletConfig

Integrate a smart wallet connection using a personal wallet (acting as the key to the smart wallet) in ConnectButton or ConnectEmbed by configuring it in ThirdwebProvider .

A Smart Wallet is a wallet that is controlled by a smart contract following the ERC-4337 specification .

Example

import {
ThirdwebProvider,
metamaskConfig,
smartWalletConfig,
} from "thirdweb/react";
function Example() {
return (
<ThirdwebProvider
client={client}
wallets={[
smartWalletConfig(metamaskConfig(), smartWalletOptions),
smartWalletConfig(coinbaseConfig(), smartWalletOptions),
]}
>
<App />
</ThirdwebProvider>
);
}

Parameters

Returns

WalletConfig object to be passed into ThirdwebProvider