onchainkit
Skill17 starsChanged 5 months agoMITView on GitHub
Build onchain applications with React components and TypeScript utilities from Coinbase's OnchainKit. Use when users want to create crypto wallets, swap tokens, mint NFTs, build payments, display blockchain identities, or develop any onchain app functionality. Supports wallet connection, transaction building, token operations, identity management, and complete onchain app development workflows.
- Reads credentials
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Mindrally/skillstheir own version, first seen Oct 8, 2026
- BankrBot/openclaw-skillsword for word, first seen Oct 8, 2026
- BankrBot/skillsword for word, first seen Apr 28, 2026
- basezh/agent-skills-on-baseword for word, first seen Mar 8, 2026
Other versions4 projects use a version of this.
Word for word · 3
- BankrBot/openclaw-skills★ 1.2k100% same
- BankrBot/skills★ 1.2k100% same
- basezh/agent-skills-on-base★ 15100% same
Edited · 0
None found.
Wrote their own version · 1
- Mindrally/skills★ 275same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository84 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- .cursor/rules/codegraph.mdcCursor rule
- 0xworkSkill
- aeon-autoresearchSkill
- aeon-deal-flowSkill
- aeon-deep-researchSkill
- aeon-defi-monitorSkill
- aeon-defi-overviewSkill
- aeon-distribute-tokensSkill
- aeon-hacker-news-digestSkill
- aeon-huggingface-trendingSkill
- aeon-last30Skill
- aeon-monitor-kalshiSkill
- aeon-monitor-polymarketSkill
- aeon-monitor-runnersSkill
- aeon-narrative-trackerSkill
- aeon-on-chain-monitorSkill
- aeon-paper-pickSkill
- aeon-reg-monitorSkill
- aeon-rss-digestSkill
- aeon-skill-evalsSkill
- aeon-skill-repairSkill
- aeon-skill-security-scanSkill
- aeon-token-moversSkill
- aeon-token-pickSkill
- aeon-unlock-monitorSkill
- aeon-vuln-scannerSkill
- agenticbetsSkill
- agent-wormholeSkill
- alchemySkill
- bankr-shopifySkill
- bankrSkill
- token-scam-analysisSkill
- twitter-agentSkill
- baseSkill
- blueagent-x402Skill
- botchanSkill
- botcoin-minerSkill
- capacitrSkill
- cattownSkill
- checkrSkill
- clankerSkill
- codegridSkill
- darksol-random-oracleSkill
- endaomentSkill
- ens-primary-nameSkill
- erc-8004Skill
- gem-minerSkill
- get-api-docsSkill
- gitlawbSkill
- helixaSkill
- hydrexSkill
- litcoin-minerSkill
- megapotSkill
- moltycashSkill
- nexusSkill
- neynarSkill
- nookplotSkill
- opensea-apiSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 101
Create and execute blockchain transactions:
- Very specific: line 157
Start with swap app template from assets/templates/swap-app/
- Distinctive: line 159
Add wallet connection flow
- Very specific: line 164
Use NFT template from assets/templates/nft-mint/
- Distinctive: line 208
Start simple, add features as needed:
- Very specific: line 258
Use component-level imports: import { Wallet } from '@coinbase/onchainkit/wallet'
- Distinctive: line 264
Never expose private keys in client code
- Distinctive: line 266
Use official OnchainKit providers
- Distinctive: line 280
Wallet connection fails: Check WalletConnect configuration
- Distinctive: line 281
API errors: Verify API key and network settings
- Distinctive: line 283
Styling issues: Import OnchainKit CSS properly
- Distinctive: line 286
Check browser console for errors
- Distinctive: line 288
Test with different wallets
- Distinctive: line 289
Use validation script to check setup
- Very specific: line 362
💡 Pro Tip: Start with npm create onchain to bootstrap a working app, then customize components as needed.
- Distinctive: line 364
🚀 Quick Win: Use the validation script after setup to ensure everything is working correctly before building custom features.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OnchainKit
Build production-ready onchain applications using Coinbase's comprehensive React component library and TypeScript utilities.
Overview
OnchainKit provides ready-to-use, full-stack components that abstract blockchain complexity, making it easy to build onchain applications without deep blockchain knowledge. It offers AI-friendly components that work automatically on Base, requires no backend infrastructure, and provides cost-effective transactions (< $0.01 fees).
Quick Start
New Project Setup
# Create a new onchain app with all batteries included
scripts/create-onchain-app.py <project-name>
# Verify setup
scripts/validate-setup.pyAdd to Existing Project
npm install @coinbase/onchainkit
# Setup configuration and providers
scripts/setup-environment.pyCore Capabilities
1. Wallet Connection & Management
Connect users to their crypto wallets with minimal code:
import { Wallet, ConnectWallet } from '@coinbase/onchainkit/wallet';
function WalletConnection() {
return (
<Wallet>
<ConnectWallet />
</Wallet>
);
}Use cases:
- Wallet connection flows
- Display wallet status
- Manage connection state
- Handle multiple wallets
Reference: references/wallet-integration.md
2. Identity Display
Show blockchain identities with ENS names, avatars, and verification badges:
import { Identity, Avatar, Name, Badge } from '@coinbase/onchainkit/identity';
function UserProfile({ address }) {
return (
<Identity address={address}>
<Avatar />
<Name />
<Badge />
</Identity>
);
}Reference: references/identity-components.md
3. Token Operations
Handle token swaps, purchases, and transfers:
import { Swap, SwapAmountInput, SwapButton } from '@coinbase/onchainkit/swap';
function TokenSwap() {
return (
<Swap>
<SwapAmountInput />
<SwapButton />
</Swap>
);
}Supported operations:
- Token swaps (any ERC-20)
- Token purchases with fiat
- Balance displays
- Price feeds
Reference: references/token-operations.md
4. Transaction Building
Create and execute blockchain transactions:
import { Transaction, TransactionButton } from '@coinbase/onchainkit/transaction';
function SendTransaction({ calls }) {
return (
<Transaction calls={calls}>
<TransactionButton />
</Transaction>
);
}Reference: references/transactions.md
5. Payment Processing
Build checkout flows and payment processing:
import { Checkout, CheckoutButton } from '@coinbase/onchainkit/checkout';
function PaymentFlow() {
return (
<Checkout>
<CheckoutButton />
</Checkout>
);
}Reference: references/payments.md
6. NFT Integration
Display, mint, and manage NFTs:
import { NFTCard } from '@coinbase/onchainkit/nft';
function NFTDisplay({ contract, tokenId }) {
return <NFTCard contract={contract} tokenId={tokenId} />;
}Reference: references/nft-integration.md
Common Workflows
Setting Up a Complete App
- Initialize project with
create-onchain-app.py - Configure providers using setup templates
- Add wallet connection with Wallet components
- Implement core features (swap, buy, identity)
- Test and deploy with validation scripts
Building a Token Swap App
- Start with swap app template from
assets/templates/swap-app/ - Configure token lists and supported chains
- Add wallet connection flow
- Implement swap interface
- Add transaction confirmations
Creating an NFT Marketplace
- Use NFT template from
assets/templates/nft-mint/ - Set up NFT contract integration
- Build minting interface
- Add payment processing
- Implement collection browsing
Configuration & Setup
Environment Variables
# Required for API access
NEXT_PUBLIC_CDP_API_KEY="your-api-key"
NEXT_PUBLIC_WC_PROJECT_ID="your-walletconnect-id"
# Optional configurations
NEXT_PUBLIC_CHAIN_ID="8453" # Base mainnetReference: references/configuration.md
Provider Setup
OnchainKit requires proper React provider configuration:
import { OnchainKitProvider } from '@coinbase/onchainkit';
import { WagmiProvider } from 'wagmi';
function App() {
return (
<WagmiProvider config={wagmiConfig}>
<OnchainKitProvider
apiKey={process.env.NEXT_PUBLIC_CDP_API_KEY}
chain={base}
>
{/* Your app components */}
</OnchainKitProvider>
</WagmiProvider>
);
}Component Patterns
Progressive Enhancement
Start simple, add features as needed:
// Basic wallet connection
<ConnectWallet />
// Enhanced with custom styling
<ConnectWallet className="custom-wallet-button" />
// Full wallet interface with status
<Wallet>
<ConnectWallet />
<WalletDropdown>
<Identity />
<WalletDropdownDisconnect />
</WalletDropdown>
</Wallet>Composable Architecture
Mix and match components for custom workflows:
function CustomApp() {
return (
<div>
{/* User identity */}
<Identity address={address}>
<Avatar />
<Name />
</Identity>
{/* Token operations */}
<Swap>
<SwapAmountInput />
<SwapButton />
</Swap>
{/* Payment processing */}
<Checkout>
<CheckoutButton />
</Checkout>
</div>
);
}Best Practices
Performance
- Use component-level imports:
import { Wallet } from '@coinbase/onchainkit/wallet' - Implement proper loading states
- Cache API responses appropriately
- Optimize for mobile experiences
Security
- Never expose private keys in client code
- Validate all transaction parameters
- Use official OnchainKit providers
- Implement proper error boundaries
User Experience
- Provide clear transaction confirmations
- Show loading states during blockchain operations
- Handle wallet connection failures gracefully
- Support multiple wallet types
Reference: references/best-practices.md
Troubleshooting
Common Issues
- Wallet connection fails: Check WalletConnect configuration
- API errors: Verify API key and network settings
- Transaction reverts: Validate contract calls and gas limits
- Styling issues: Import OnchainKit CSS properly
Debug Steps
- Check browser console for errors
- Verify environment variables
- Test with different wallets
- Use validation script to check setup
Reference: references/troubleshooting.md
Templates & Examples
Quick Start Templates
- Basic App:
assets/templates/basic-app/- Minimal onchain app - Token Swap:
assets/templates/swap-app/- Complete swap interface - NFT Minting:
assets/templates/nft-mint/- NFT marketplace - Commerce:
assets/templates/commerce/- Onchain store
Real-World Examples
- Wallet connection with identity display
- Multi-token swap interface
- NFT collection with minting
- Payment processing with receipts
Reference: references/examples.md
Advanced Features
Custom Chains
Support additional EVM chains beyond Base:
const customChain = {
id: 123456,
name: 'Custom Chain',
// ... chain configuration
};
<OnchainKitProvider chain={customChain}>MiniKit Integration
Build Farcaster Frame applications:
import { useMiniKit } from '@coinbase/onchainkit/minikit';
function FrameApp() {
const { isReady } = useMiniKit();
return isReady ? <YourFrameContent /> : <Loading />;
}Reference: references/advanced-features.md
API Reference
OnchainKit provides both React components and utility functions:
- Components: Pre-built UI components for common onchain operations
- Hooks: React hooks for blockchain state management
- Utilities: TypeScript utilities for data formatting and validation
- Types: Complete TypeScript definitions
Reference: references/api-reference.md
Resources
Documentation
- Official docs: onchainkit.xyz
- GitHub: github.com/coinbase/onchainkit
- Examples: OnchainKit playground
Support
- Discord: Coinbase Developer Platform
- Twitter: @OnchainKit
💡 Pro Tip: Start with npm create onchain to bootstrap a working app, then customize components as needed. The quickstart template includes all necessary configuration and examples.
🚀 Quick Win: Use the validation script after setup to ensure everything is working correctly before building custom features.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

