0.0.4 • Published 2 months ago
@groupos/smart-accounts v0.0.4
Smart Accounts SDK
@groupos/smart-accounts
is a package for adding and utilizing smart accounts in decentralized applications (dApps). It comes with customization options that meet your needs to offer a seamless user experience — social onboarding, gas sponsorship, and batch transactions.
The package wraps wagmi, leaving the core functionality of requesting signatures and transactions unchanged.
Quickstart
Add Authentication and Smart Accounts
After getting started with wagmi, simply add a SmartAuthBox
to your application:
import { useAccount } from "wagmi";
import { SmartAuthBox } from "@groupos/smart-accounts";
function Page() {
const { address } = useAccount();
return !address ? (
<SmartAuthBox groupId="STATION_GROUP_ID" />
) : (
{
/** ... */
}
);
}
All connected accounts, even EOAs, will get wrapped with a smart account, empowering them to support features like batch transactions and gas sponsorship.