Skip to content

Commit e12ddb3

Browse files
committed
Update the OnchainKit getting started guide
1 parent fa8be67 commit e12ddb3

File tree

4 files changed

+49
-26
lines changed

4 files changed

+49
-26
lines changed

docs/pages/guides/create-app/using-boat.mdx

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Getting started with Onchain App Template
2+
This guide uses [Onchain App Template](https://github.com/coinbase/onchain-app-template/tree/main).
3+
4+
::::steps
5+
## Create project
6+
Clone the repository using the command below.
7+
8+
```bash
9+
git clone https://github.com/coinbase/onchain-app-template.git
10+
```
11+
12+
## Setup project
13+
To ensure all components work seamlessly, set the following environment variables in your `.env` file:
14+
15+
- `API KEY`: Find this on the API page at the [Coinbase Dev Portal](https://portal.cdp.coinbase.com/access/api).
16+
17+
- `WALLET_CONNECTOR_PROJECT ID`: Create a project at [Wallet Connect](https://cloud.walletconnect.com) to obtain this.
18+
19+
Add theses to you `.env` file:
20+
21+
```bash
22+
NEXT_PUBLIC_CDP_API_KEY=ADD_YOUR_API_KEY_HERE
23+
WALLET_CONNECTOR_PROJECT_ID=ADD_YOUR_PROJECT_ID_HERE
24+
```
25+
26+
## Install dependencies and run dev server
27+
Execute the following commands:
28+
29+
```bash
30+
# Install bun in case you don't have it
31+
bun curl -fsSL <https://bun.sh/install> | bash
32+
33+
# Install packages
34+
bun i
35+
36+
# Run Next app
37+
bun run dev
38+
```
39+
40+
## Test Your Setup
41+
42+
Visit your site locally and click the "Log in" button.
43+
- A popup window will appear, displaying a Smart Wallet connection option.
44+
- After connecting, click the "Transact" button.
45+
- This action will initiate a transaction on Base Sepolia.
46+
- The gas fees for this transaction will be sponsored by the Coinbase Developer Platform Paymaster.
47+
::::

docs/pages/quick-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Quick Start
22
You can try Smart Wallet today on [any supported chain](/FAQ#what-networks-are-supported)! Checkout our guides
3-
- [Create a new app using Build Onchain Template](/guides/create-app/using-boat)
3+
- [Create a new app using Onchain App Template](/guides/create-app/using-onchain-app-template)
44
- [Create a new app using Wagmi Template](/guides/create-app/using-wagmi)
55
- [Update an existing app](/guides/update-existing-app)
66

vocs.config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default defineConfig({
6060
{
6161
text: "Create a New App",
6262
items: [
63-
{ text: "Using Build Onchain Template", link: "/guides/create-app/using-boat" },
63+
{ text: "Using Onchain App Template", link: "/guides/create-app/using-onchain-app-template" },
6464
{ text: "Using Wagmi Template", link: "/guides/create-app/using-wagmi" },
6565
],
6666
},

0 commit comments

Comments
 (0)