Skip to content

Commit

Permalink
feat: update to Use Snowtrace as Default Block Explorer (#2334)
Browse files Browse the repository at this point in the history
* Setting the right Defult explorers for avalacnhe

* api url

* testnet url

* testnet url

* Update avalanche.ts

* Update avalancheFuji.ts

* Create tidy-toes-scream.md

---------

Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
Migl992 and jxom committed May 29, 2024
1 parent d946d55 commit d4f34cb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-toes-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Updated Avalanche explorer URLs.
6 changes: 3 additions & 3 deletions src/chains/definitions/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export const avalanche = /*#__PURE__*/ defineChain({
},
blockExplorers: {
default: {
name: 'SnowScan',
url: 'https://snowscan.xyz',
apiUrl: 'https://api.snowscan.xyz/api',
name: 'SnowTrace',
url: 'https://snowtrace.io',
apiUrl: 'https://api.snowtrace.io',
},
},
contracts: {
Expand Down
6 changes: 3 additions & 3 deletions src/chains/definitions/avalancheFuji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export const avalancheFuji = /*#__PURE__*/ defineChain({
},
blockExplorers: {
default: {
name: 'SnowScan',
url: 'https://testnet.snowscan.xyz',
apiUrl: 'https://api-testnet.snowscan.xyz',
name: 'SnowTrace',
url: 'https://testnet.snowtrace.io',
apiUrl: 'https://api-testnet.snowtrace.io',
},
},
contracts: {
Expand Down

0 comments on commit d4f34cb

Please sign in to comment.