Skip to content

Commit

Permalink
Update etherscan.ts (#4462)
Browse files Browse the repository at this point in the history
* Update etherscan.ts

* chore: tweaks

* chore: changeset

---------

Co-authored-by: Tom Meagher <[email protected]>
  • Loading branch information
groninge01 and tmm authored Dec 16, 2024
1 parent 6fe8f04 commit 0b2238d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-mayflies-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/cli": patch
---

Added Sonic to Etherscan plugin.
11 changes: 7 additions & 4 deletions packages/cli/src/plugins/etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const apiUrls = {
// Heco Chain
[128]: 'https://api.hecoinfo.com/api',
[256]: 'https://api-testnet.hecoinfo.com/api',
// Sonic
[146]: 'https://api.sonicscan.org/api',
// Fantom
[250]: 'https://api.ftmscan.com/api',
[4_002]: 'https://api-testnet.ftmscan.com/api',
Expand Down Expand Up @@ -57,15 +59,16 @@ export type EtherscanConfig<chainId extends number> = {
* - [__Arbitrum__](https://arbiscan.io/myapikey)
* - [__Avalanche__](https://snowscan.xyz/myapikey)
* - [__BNB Smart Chain__](https://bscscan.com/myapikey)
* - [__Base__](https://basescan.org/myapikey)
* - [__Blast__](https://blastscan.io/myapikey)
* - [__Celo__](https://celoscan.io/myapikey)
* - [__Fantom__](https://ftmscan.com/myapikey)
* - [__Fraxtal__](https://fraxscan.com/myapikey)
* - [__Gnosis__](https://gnosisscan.io/myapikey)
* - [__Heco Chain__](https://hecoinfo.com/myapikey)
* - [__Optimism__](https://optimistic.etherscan.io/myapikey)
* - [__Base__](https://basescan.org/myapikey)
* - [__Polygon__](https://polygonscan.com/myapikey)
* - [__Fraxtal__](https://fraxscan.com/myapikey)
* - [__Gnosis__](https://gnosisscan.io/myapikey)
* - [__Blast__](https://blastscan.io/myapikey)
* - [__Sonic__](https://sonicscan.org/myapikey)
*/
apiKey: string
/**
Expand Down

0 comments on commit 0b2238d

Please sign in to comment.