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 1 commit
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
10 changes: 9 additions & 1 deletion docs/pages/guides/spend-permissions/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ 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 the value of `keysUrl` based on your environment:

- For testnets: `"https://keys-dev.coinbase.com/connect"`
- For mainnets: Leave `keysUrl` undefined (defaults to keys.coinbase.com)

We also want to point our chain id to Base Sepolia testnet by setting replacing all instances of `base`
with `baseSepolia` in this file (including the import).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this specify that we only want to swap out to baseSepolia in the case that we're wanting to use a testnet and have also specified keys-dev instead of keys? This makes me feel like I'm not sure which combination of URL and chain I should be using. Maybe the bit about sepolia could go directly with.under the "For testnets" line, and the "For mainnets" line could include something like: "the project template will default to base"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated


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

Expand All @@ -92,6 +98,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