Getting Started
OnchainKit is your go-to SDK for building beautiful onchain applications. Ship in minutes, not weeks.
Anyone can build an onchain app in 15 minutes with OnchainKit. No blockchain experience required.
Why OnchainKit?
OnchainKit streamlines app development by providing a comprehensive toolkit that combines powerful onchain features with developer-friendly design:
- Ergonomic design: Full-stack tools that make complex onchain interactions intuitive
- Battle-tested patterns: Industry best practices packaged into ready-to-use solutions
- Purpose-built components: Pre-built modules for common onchain workflows
- Framework agnostic: Compatible with any React-supporting framework
- Supercharged by Base: Deep integration with Base's protocol features and ecosystem
Automatic Installation
We recommend starting a new OnchainKit app using create onchain
, which sets up everything automatically for you. To create a project, run:
npm create onchain@latest
After the prompts, create onchain
will create a folder with your project name and install the required dependencies.
You can also checkout our pre-built templates:
Manual Installation
Add OnchainKit to your existing project manually.
Start building!
Explore our ready-to-use onchain components:
Identity
- Show Basenames, avatars, badges, and addresses.Wallet
- Create or connect wallets with Connect Wallet.Transaction
- Handle transactions using EOAs or Smart Wallets.Checkout
- Integrate USDC checkout flows with ease.Fund
- Create a funding flow to onboard users.Tokens
- Search and display tokens with various components.Swap
- Enable token swaps in your app.Mint
- View and Mint NFTs in your app.