Skip to content

Commit 687bbd0

Browse files
authored
add iotex testnet rpc and api url (#1710)
* add iotex testnet rpc and api url * add changeset
1 parent 927a985 commit 687bbd0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/neat-planets-lie.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 iotex testnet rpc and api url

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
310310
return 'https://explorer-sepolia.gravity.xyz/api';
311311
case 'etherlink-mainnet':
312312
return 'https://explorer.etherlink.com/api';
313+
case 'iotex-testnet':
314+
return 'https://testnet.index.iotexscan.io/api';
313315

314316
default:
315317
return `https://api-${network}.etherscan.io/api`;
@@ -435,6 +437,8 @@ const getPublicRPCEndpoint = (network: string) => {
435437
return 'https://rpc-sepolia.gravity.xyz';
436438
case 'etherlink-mainnet':
437439
return 'https://node.mainnet.etherlink.com';
440+
case 'iotex-testnet':
441+
return 'https://babel-api.testnet.iotex.io';
438442
default:
439443
throw new Error(`Unknown network: ${network}`);
440444
}

0 commit comments

Comments
 (0)