Skip to main content
Session keys only work with CHIPI wallets. This hook requires the owner’s encryptKey (PIN) to sign the registration transaction.

Usage

Parameters

SessionConfig Structure

Return Value

Example Implementation

Restricting Session Permissions

For enhanced security, whitelist specific function selectors:
Limiting allowedEntrypoints restricts what functions the session can call. This is recommended for production to minimize attack surface.

Error Handling

Common errors:
Registration requires a blockchain transaction. The transaction is gas-sponsored but may take 10-30 seconds to confirm.