Configure MiniKitProvider and initialize frame context
Prop | Type | Description |
---|---|---|
apiKey | string | Your OnchainKit API key from Coinbase Developer Platform |
chain | Chain | The blockchain network (typically base ) |
Property | Type | Description |
---|---|---|
config.appearance.mode | ’auto’ | ‘light’ | ‘dark’ | Theme mode for UI components |
config.appearance.theme | string | Theme name for styling |
config.appearance.name | string | App name displayed in UI |
config.appearance.logo | string | Logo URL for branding |
useMiniKit
hook provides access to frame state and user context:
Property | Type | Description |
---|---|---|
context.user.fid | string | Farcaster ID of the current user |
context.client.added | boolean | Whether user has saved the Mini App |
context.location | string | Where the Mini App was launched from |
useAuthenticate
for secure user verification.