An Onchain App Template build with OnchainKit, and ready to be deployed to Vercel.
The template is a simple swap app made with the OnchainKit Swap component.
To ensure all components work seamlessly, set the following environment variables in your .env
file using .local.env.example
as a reference.
You can find the API key on the Coinbase Developer Portal's OnchainKit page. If you don't have an account, you will need to create one.
You can find your Wallet Connector project ID at Wallet Connect.
# See https://portal.cdp.coinbase.com/products/onchainkit
NEXT_PUBLIC_CDP_API_KEY="GET_FROM_COINBASE_DEVELOPER_PLATFORM"
# See https://cloud.walletconnect.com
NEXT_PUBLIC_WC_PROJECT_ID="GET_FROM_WALLET_CONNECT"
# Install bun in case you don't have it
curl -fsSL https://bun.sh/install | bash # for macOS, Linux, and WSL
# to install a specific version
curl -fsSL https://bun.sh/install | bash -s "bun-v1.0.0"
# Install packages
bun i
# Run Next app
bun run dev
This project is licensed under the MIT License - see the LICENSE.md file for details