What problem does it solve?
Provides step-by-step guidance to integrate the Cartridge Controller smart contract wallet into Starknet applications so developers can enable session-key transactions, passkey authentication, and paymaster flows without breaking local development or runtime initialization. It addresses common integration friction such as choosing the right connector for web vs native apps, configuring session policies, setting RPC endpoints, and resolving local Katana deployment issues.
Core Features & Use Cases
- Installation & Packages: Lists the required packages and compatible versions for controller and connector libraries.
- Connector Selection: Explains when to use ControllerConnector for web apps and SessionConnector for native/mobile apps with local keypairs.
- Session Policies & Execution: Describes why session policies are required, how missing policies cause execute() to fail, and how to configure them.
- Chain & Local Dev Configuration: Covers custom chains, RPC overrides, and necessary Katana settings (paymaster/controllers) to deploy Controller contracts at genesis.
- Performance & Troubleshooting: Advises lazy loading, cookie/HTTPS requirements, and common pitfalls like connector recreation in React.
Quick Start
Install the controller and connector packages, define session policies, configure your chain RPC or local Katana with paymaster/controllers enabled, then instantiate Controller or the appropriate connector and call connect() to begin executing session-based transactions.