Skip to content

Commit 2141242

Browse files
authored
add soneium api and rpc (#1719)
* add soneium api and rpc * add changset
1 parent fda9827 commit 2141242

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/honest-beans-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphprotocol/graph-cli": minor
3+
---
4+
5+
add soneium api and rpc

packages/cli/src/command-helpers/abi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
318318
return 'https://xt4scan.ngd.network/api/ngd/api';
319319
case 'arbitrum-nova':
320320
return 'https://api-nova.arbiscan.io/api';
321+
case 'soneium-testnet':
322+
return 'https://explorer-testnet.soneium.org/api';
321323
default:
322324
return `https://api-${network}.etherscan.io/api`;
323325
}
@@ -450,6 +452,8 @@ const getPublicRPCEndpoint = (network: string) => {
450452
return 'https://neoxt4seed1.ngd.network';
451453
case 'arbitrum-nova':
452454
return 'https://nova.arbitrum.io/rpc';
455+
case 'soneium-testnet':
456+
return 'https://rpc.minato.soneium.org/';
453457
default:
454458
throw new Error(`Unknown network: ${network}`);
455459
}

0 commit comments

Comments
 (0)