Skip to content

Commit cc47bba

Browse files
authored
fix: ankr => thirdweb for default rpc urls (#3475)
* refactor: swap ankr for thirdweb * chore: changeset
1 parent 7f7706e commit cc47bba

File tree

16 files changed

+24
-29
lines changed

16 files changed

+24
-29
lines changed

.changeset/shaggy-ducks-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Swapped defunct Ankr RPC URLs for Thirdweb

site/pages/docs/ethers-migration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Custom Chain:
4747
```ts
4848
import { providers } from 'ethers'
4949

50-
const provider = new providers.JsonRpcProvider('https://rpc.ankr.com/fantom/​', { // [!code hl]
50+
const provider = new providers.JsonRpcProvider('https://250.rpc.thirdweb.com', { // [!code hl]
5151
name: 'Fantom', // [!code hl]
5252
id: 250 // [!code hl]
5353
}) // [!code hl]
@@ -74,7 +74,7 @@ import { fantom } from 'viem/chains'
7474

7575
const client = createPublicClient({ // [!code hl]
7676
chain: fantom, // [!code hl]
77-
transport: http('https://rpc.ankr.com/fantom/​') // [!code hl]
77+
transport: http('https://250.rpc.thirdweb.com') // [!code hl]
7878
}) // [!code hl]
7979
```
8080

site/pages/docs/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const client = createPublicClient({ // [!code focus]
4646
```
4747

4848
:::info
49-
In a production app, it is highly recommended to pass through your authenticated RPC provider URL (Alchemy, Infura, Ankr, etc). If no URL is provided, viem will default to a public RPC provider. [Read more](/docs/clients/transports/http#usage).
49+
In a production app, it is highly recommended to pass through your authenticated RPC provider URL (Alchemy, Infura, Thirdweb, etc). If no URL is provided, viem will default to a public RPC provider. [Read more](/docs/clients/transports/http#usage).
5050
:::
5151

5252
### 2. Consume Actions

site/pages/experimental.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const client = createWalletClient({ // [!code focus]
3131
```
3232

3333
:::info
34-
In a production app, it is highly recommended to pass through your authenticated RPC provider URL (Alchemy, Infura, Ankr, etc). If no URL is provided, viem will default to a public RPC provider. [Read more](/docs/clients/transports/http#usage).
34+
In a production app, it is highly recommended to pass through your authenticated RPC provider URL (Alchemy, Infura, Thirdweb, etc). If no URL is provided, viem will default to a public RPC provider. [Read more](/docs/clients/transports/http#usage).
3535
:::
3636

3737
### 2. Extend Client with Experimental Actions
@@ -76,4 +76,4 @@ const id = await client.sendCalls({ // [!code focus]
7676
}, // [!code focus]
7777
] // [!code focus]
7878
}) // [!code focus]
79-
```
79+
```

site/pages/op-stack.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const client = createPublicClient({ // [!code focus]
2525
```
2626

2727
:::info
28-
In a production app, it is highly recommended to pass through your authenticated RPC provider URL (Alchemy, Infura, Ankr, etc). If no URL is provided, viem will default to a public RPC provider. [Read more](/docs/clients/transports/http#usage).
28+
In a production app, it is highly recommended to pass through your authenticated RPC provider URL (Alchemy, Infura, Thirdweb, etc). If no URL is provided, viem will default to a public RPC provider. [Read more](/docs/clients/transports/http#usage).
2929
:::
3030

3131
### 2. Extend Client with the OP Stack
@@ -61,4 +61,4 @@ const l1Gas = await client.estimateL1Gas({ // [!code hl]
6161
to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', // [!code hl]
6262
value: parseEther('1') // [!code hl]
6363
}) // [!code hl]
64-
```
64+
```

src/chains/definitions/bsc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const bsc = /*#__PURE__*/ defineChain({
99
symbol: 'BNB',
1010
},
1111
rpcUrls: {
12-
default: { http: ['https://rpc.ankr.com/bsc'] },
12+
default: { http: ['https://56.rpc.thirdweb.com'] },
1313
},
1414
blockExplorers: {
1515
default: {

src/chains/definitions/btr.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ export const btr = /*#__PURE__*/ defineChain({
1010
},
1111
rpcUrls: {
1212
default: {
13-
http: [
14-
'https://rpc.bitlayer.org',
15-
'https://rpc.bitlayer-rpc.com',
16-
'https://rpc.ankr.com/bitlayer',
17-
],
13+
http: ['https://rpc.bitlayer.org', 'https://rpc.bitlayer-rpc.com'],
1814
webSocket: ['wss://ws.bitlayer.org', 'wss://ws.bitlayer-rpc.com'],
1915
},
2016
},

src/chains/definitions/chiliz.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ export const chiliz = /*#__PURE__*/ defineChain({
1111
},
1212
rpcUrls: {
1313
default: {
14-
http: [
15-
'https://rpc.ankr.com/chiliz',
16-
'https://chiliz-rpc.publicnode.com',
17-
],
14+
http: ['https://chiliz-rpc.publicnode.com'],
1815
},
1916
},
2017
blockExplorers: {

src/chains/definitions/corn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const corn = /*#__PURE__*/ defineChain({
1111
symbol: 'BTCN',
1212
},
1313
rpcUrls: {
14-
default: { http: ['https://rpc.ankr.com/corn_maizenet'] },
14+
default: { http: ['https://21000000.rpc.thirdweb.com'] },
1515
},
1616
blockExplorers: {
1717
default: {

src/chains/definitions/cornTestnet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const cornTestnet = /*#__PURE__*/ defineChain({
1111
symbol: 'BTCN',
1212
},
1313
rpcUrls: {
14-
default: { http: ['https://rpc.ankr.com/corn_testnet'] },
14+
default: { http: ['https://21000001.rpc.thirdweb.com'] },
1515
},
1616
blockExplorers: {
1717
default: {

0 commit comments

Comments
 (0)