Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs for keysurl #116

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions docs/pages/guides/spend-permissions/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,16 @@ export async function getSpenderWalletClient() {

### Configure the Smart Wallet URL

In `app/providers.tsx`, update the chain configuration to use Base Sepolia testnet by replacing all instances of `base` with `baseSepolia` in this file (including the import).
In `app/providers.tsx`, update your configuration based on your environment:

Your config in `app/providers.tsx` should now look like this:
- For testnets:
- Set `keysUrl: "https://keys-dev.coinbase.com/connect"`
- Replace all instances of `base` with `baseSepolia` (including the import)
- For mainnets:
- Leave `keysUrl` undefined (defaults to keys.coinbase.com)
- Keep the default `base` chain from the template

Your config in `app/providers.tsx` should look like this for testnet:

```ts
const config = createConfig({
Expand All @@ -92,6 +99,8 @@ const config = createConfig({
preference: process.env.NEXT_PUBLIC_ONCHAINKIT_WALLET_CONFIG as
| "smartWalletOnly"
| "all",
// @ts-ignore
keysUrl: "https://keys-dev.coinbase.com/connect"
}),
],
storage: createStorage({
Expand Down
Loading