Skip to content

Commit

Permalink
docs: delete provider weight (#2833)
Browse files Browse the repository at this point in the history
  • Loading branch information
siosio34 authored Aug 9, 2023
1 parent 247c5d1 commit 40f9f0c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions docs/pages/react/providers/public.en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,3 @@ const { chains, publicClient } = configureChains(
],
)
```

### weight (optional)

The weight a response from this provider provides. This can be used if a given provider is more trusted.

```ts {7-8}
import { chain, configureChains } from 'wagmi'
import { publicProvider } from 'wagmi/providers/public'

const { chains, publicClient } = configureChains(
[chain.mainnet, chain.polygon],
[
alchemyProvider({ apiKey: 'yourAlchemyApiKey', weight: 1 }),
publicProvider({ weight: 2 }),
],
)
```

0 comments on commit 40f9f0c

Please sign in to comment.