By passing the accountAbstraction prop, ALL connected wallets will be converted to smart accounts.
And by setting sponsorGas to true , all transactions done with those smart accounts will be sponsored.
<ConnectEmbed
client={client}
accountAbstraction={{
chain: sepolia,
sponsorGas: true,
}}
/>;
Enabling sign in with ethereum (Auth)
<ConnectEmbed
client={client}
auth={{
isLoggedIn: async (address) => {
console.log("checking if logged in!", { address });
returnawaitisLoggedIn();
},
doLogin: async (params) => {
console.log("logging in!");
awaitlogin(params);
},
getLoginPayload: async ({ address }) =>
generatePayload({ address }),
doLogout: async () => {
console.log("logging out!");
awaitlogout();
},
}}
/>;
Customizing the theme
<ConnectEmbedclient={client}theme="light" />;
For more granular control, you can also pass a custom theme object: