Skip to main content

MiniKitProvider Setup

The MiniKitProvider wraps your app and provides MiniKit context to all child components. It configures wagmi, react-query, and the Farcaster connector automatically.
app/providers.tsx
The provider configures wagmi and react-query and uses the Farcaster connector when available.

Provider Configuration

Required Props

Optional Configuration

Frame Initialization

Initialize MiniKit in your main component to signal frame readiness:
app/App.tsx

useMiniKit Hook

The useMiniKit hook provides access to frame state and user context:
any-component.tsx

Context Properties

Context data can be spoofed and should not be used for authentication. Use useAuthenticate for secure user verification.