Skip to content

Commit a05db7b

Browse files
authored
add chiliz testnet rpc and api (#1728)
* add chiliz testnet rpc and api * add changeset
1 parent 271cb63 commit a05db7b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/slimy-crabs-fail.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 chiliz testnet rpc and api

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
322322
return 'https://explorer-testnet.soneium.org/api';
323323
case 'chiliz':
324324
return 'https://scan.chiliz.com/api';
325+
case 'chiliz-testnet':
326+
return 'https://spicy-explorer.chiliz.com/api';
325327
default:
326328
return `https://api-${network}.etherscan.io/api`;
327329
}
@@ -458,6 +460,8 @@ const getPublicRPCEndpoint = (network: string) => {
458460
return 'https://rpc.minato.soneium.org/';
459461
case 'chiliz':
460462
return 'https://rpc.ankr.com/chiliz';
463+
case 'chiliz-testnet':
464+
return 'https://spicy-rpc.chiliz.com';
461465
default:
462466
throw new Error(`Unknown network: ${network}`);
463467
}

0 commit comments

Comments
 (0)