Skip to content

Commit

Permalink
Merge pull request #98 from reown-com/feat/add-networks-parameter-inf…
Browse files Browse the repository at this point in the history
…o-to-options

Feat: Add networks information in options
  • Loading branch information
rohit-710 authored Oct 15, 2024
2 parents 1c729fc + 799570d commit 63273ea
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/appkit/shared/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ The following options can be passed to the `createAppKit` function:
createAppKit({ adapters, projectId, networks, ...options })
```

## networks

You can set an array of networks that can be chosen from the `@reown/appkit/networks` library. This library retrieves the list of EVM networks from Viem and also includes the Solana networks.

```ts
import { mainnet, solana } from '@reown/appkit/networks'

createAppKit({
// ...
networks: [mainnet, solana]
})
```

For custom networks, refer to this [doc page](/appkit/react/core/custom-networks).

## defaultNetwork

You can set a desired network for the initial connection as default:
Expand Down

0 comments on commit 63273ea

Please sign in to comment.