Skip to content

Commit

Permalink
Partial
Browse files Browse the repository at this point in the history
  • Loading branch information
briandoyle81CB committed Nov 20, 2023
1 parent eb16417 commit fbe7381
Showing 1 changed file with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,33 @@ To test this out, comment out `publicProvider()`, and switch networks a few time

### Blockdaemon

[Blockdaemon] also needs to be set up as a JSON RPC provider. Log in, [or create an account], navigate to the `API Suite` tab on the left, and click `Create API Key`.
You'll also need an account with [Blockdaemon], if you want to use it as a JSON RPC provider. Log in, [or create an account], navigate to the `API Suite` tab on the left, and click `Create API Key`.

![Create api key](../../assets/images/connecting-to-the-blockchain/blockdaemon-create-key.png)

You can find the [urls for different networks] in their docs. To connect to Base, add the below to your list of providers:

```typescript
const { chains, publicClient, webSocketPublicClient } = configureChains(
[mainnet, optimism, base],
[
// other providers
jsonRpcProvider({
rpc: () => ({
http: 'https://svc.blockdaemon.com/base/mainnet/native/http-rpc?apiKey=<replace with your api key>',
}),
}),
publicProvider(),
],
);
```

:::caution

This key is also exposed publicly! Be sure to configure an allowlist before deploying!

:::

TODO PENDING MORE INFORMATION!!!

### Alchemy
Expand Down Expand Up @@ -233,3 +256,5 @@ In this guide, you've learned how to connect your app to the blockchain using se
[allowlist]: https://docs.alchemy.com/docs/how-to-add-allowlists-to-your-apps-for-enhanced-security
[baked into wagmi]: https://wagmi.sh/react/providers/alchemy
[create an account]: https://app.blockdaemon.com/signin/register

[urls for different networks]

0 comments on commit fbe7381

Please sign in to comment.