Skip to content

Commit e8df718

Browse files
0xdcotakrzkaczor
andauthored
Feat: add sonicscan (#98)
* feat: add sonicscan * Use deth code key * Tweak testnet sonicscan url --------- Co-authored-by: Kris Kaczor <[email protected]>
1 parent ee0380f commit e8df718

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/ethereum-viewer/src/explorer/networks.ts

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export const explorerApiUrls = {
2828
"holesky.fraxscan": "https://api-holesky.fraxscan.com/api",
2929
blastscan: "https://api.blastscan.io/api",
3030
"sepolia.blastscan": "https://api-sepolia.blastscan.io/api",
31+
sonicscan: "https://api.sonicscan.org/api",
32+
"testnet.sonicscan": "https://api-testnet.sonicscan.org/api",
3133
};
3234

3335
/**
@@ -64,6 +66,8 @@ export const networkNames: Record<ApiName, string> = {
6466
"holesky.fraxscan": "fraxHolesky",
6567
blastscan: "blast",
6668
"sepolia.blastscan": "blastSepolia",
69+
sonicscan: "sonic",
70+
"testnet.sonicscan": "sonicTestnet",
6771
};
6872

6973
const ETHERSCAN_KEY = "862Y3WJ4JB4B34PZQRFEV3IK6SZ8GNR9N5";
@@ -79,6 +83,7 @@ const BASESCAN_KEY = "ICQQDUA1C8R2EZY6M4QIIV7WUEZM8INNA7";
7983
const GNOSISSCAN_KEY = "7PWN1FIPXW6WDSGH3PIHRW1EEU4A882QSQ";
8084
const FRAXSCAN_KEY = "TEUJWRCAKIXQCUR7XZRKCFRH3QHH344PAM";
8185
const BLASTSCAN_KEY = "G6DR1ZFYP54GG49SJ9GID37SFQPV96H77E";
86+
const SONICSCAN_KEY = "QTH3YA3WFHJH76EV6KWN2PQTDJKA85PN4D";
8287

8388
// @todo this should be possible to override using VSCode settings
8489
export const explorerApiKeys: Record<ApiName, string> = {
@@ -119,4 +124,7 @@ export const explorerApiKeys: Record<ApiName, string> = {
119124

120125
blastscan: BLASTSCAN_KEY,
121126
"sepolia.blastscan": BLASTSCAN_KEY,
127+
128+
sonicscan: SONICSCAN_KEY,
129+
"testnet.sonicscan": SONICSCAN_KEY,
122130
};

0 commit comments

Comments
 (0)