After getting started with WalletKit in your project, you can add session keys to your users’ smart accounts. Session keys enable you to ask once for scoped permission to sign on behalf of the wallet for the remainder of the user’s session.

If a session key is available for a user, it is automatically used in existing signature and transaction hooks, leaving your developer experience untouched.


Prompt users to approve a session key with the useSessionKeys hook.

import { useSessionKeys } from "@groupos/walletkit";

function Page() {
  const { requestSessionKey } = useSessionKeys();

  return (
        <div>Enable 1-click trading</div>
            onClick={() => requestSessionKey({ scope: { contract: "0x..." } })}
            Add Device