Skip to content

Commit 6f84e7a

Browse files
authored
add iotex urls (#1692)
* add iotex urls * add changset
1 parent 716cdf3 commit 6f84e7a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/fair-humans-end.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 urls

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
300300
return `https://seitrace.com/pacific-1/api`;
301301
case 'rootstock':
302302
return 'https://rootstock.blockscout.com/api';
303+
case 'iotex':
304+
return 'https://index.iotexscan.io/api';
303305
default:
304306
return `https://api-${network}.etherscan.io/api`;
305307
}
@@ -414,6 +416,8 @@ const getPublicRPCEndpoint = (network: string) => {
414416
return `https://evm-rpc.sei-apis.com`;
415417
case 'rootstock':
416418
return 'https://public-node.rsk.co';
419+
case 'iotex':
420+
return 'https://iotexrpc.com';
417421
default:
418422
throw new Error(`Unknown network: ${network}`);
419423
}

0 commit comments

Comments
 (0)