Skip to content

Commit 3a96771

Browse files
authored
added rootstock blockexplorer api and public rpc url (#1688)
* added rootstock blockexplorer api and public rpc url * added changeset
1 parent d46830e commit 3a96771

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/sixty-starfishes-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+
added rootstock blockexplorer api and public rpc url

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
298298
return `https://api-cardona-zkevm.polygonscan.com/api`;
299299
case 'sei-mainnet':
300300
return `https://seitrace.com/pacific-1/api`;
301+
case 'rootstock':
302+
return 'https://rootstock.blockscout.com/api';
301303
default:
302304
return `https://api-${network}.etherscan.io/api`;
303305
}
@@ -410,6 +412,8 @@ const getPublicRPCEndpoint = (network: string) => {
410412
return `https://rpc.cardona.zkevm-rpc.com`;
411413
case 'sei-mainnet':
412414
return `https://evm-rpc.sei-apis.com`;
415+
case 'rootstock':
416+
return 'https://public-node.rsk.co';
413417
default:
414418
throw new Error(`Unknown network: ${network}`);
415419
}

0 commit comments

Comments
 (0)