app.startale.com. The user signs in with Google, LINE, or Apple, or links an existing wallet (MetaMask, Rabby, or WalletConnect), and approves the connection. After approval, your app receives the address of their smart account.
With wagmi
With the raw provider
eth_requestAccounts opens the popup. Subsequent calls return the cached address without re-prompting.
Reading connection state
eth_accounts returns an array. It is empty when disconnected and contains a single element, the smart-account address, when connected.
Listening to connection events
Disconnecting
disconnect() from useDisconnect(). Both clear local connection state. The user’s Startale account is unchanged.