Configuration
Controller provides several configuration options related to chains, sessions, and theming.
ControllerOptions
export type ControllerOptions = {
// Provider options
chains: [
{ rpcUrl: "https://api.cartridge.gg/x/starknet/sepolia" },
{ rpcUrl: "https://api.cartridge.gg/x/starknet/mainnet" },
],
defaultChainId: constants.StarknetChainId.SN_SEPOLIA,
// Session options
policies?: SessionPolicies; // Session policies
propagateSessionErrors?: boolean; // Propagate transaction errors back to caller
// Preset options
preset?: string; // The preset name
};
The configuration options are organized into several categories:
- Provider Options: Core RPC configuration
- Session Options: Session and transaction related settings
- Preset Options: Configure a custom theme and verified session policies using Presets