Configuration
Configuration
All options are optional.
tsx
<DecaneKit config={{
// Which wallet types + social
// "all" | "wallets" | "social" | "evm" | "solana" | ... — default: "wallets"
mode: "all",
// Social sign-in config (required when mode includes social)
social: {
apiKey: "dck_live_…",
authMethods: ["google", "email"],
},
// Restrict which built-in chains are available
supportedChainIds: [CHAINS.ETHEREUM, CHAINS.POLYGON],
// UI theme — "light" | "dark" | "auto" — default: "auto"
theme: "auto",
// Default CAIP-2 chain ID to request when connecting
defaultChain: "eip155:1",
}}>mode / networks
Controls which wallets and auth methods appear in the selector.
tsx
// All wallets + social sign-in
<DecaneKit config={{ mode: "all" }}>
// EVM wallets only — all other types hidden
<DecaneKit config={{ mode: "evm" }}>
// Social sign-in only
<DecaneKit config={{ mode: "social" }}>supportedChainIds
Restricts the chain list used throughout the SDK — the wallet selector, provider.chains, and wallet_requestPermissions all respect it.
tsx
import { CHAINS } from "decane-connect-kit";
<DecaneKit config={{
supportedChainIds: [CHAINS.ETHEREUM, CHAINS.BASE, CHAINS.SOLANA],
}}>