Skip to content

Commit

Permalink
added rootstock blockexplorer api and public rpc url (graphprotocol#1688
Browse files Browse the repository at this point in the history
)

* added rootstock blockexplorer api and public rpc url

* added changeset
  • Loading branch information
alinobrasil authored Jun 19, 2024
1 parent d46830e commit 3a96771
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sixty-starfishes-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphprotocol/graph-cli": minor
---

added rootstock blockexplorer api and public rpc url
4 changes: 4 additions & 0 deletions packages/cli/src/command-helpers/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
return `https://api-cardona-zkevm.polygonscan.com/api`;
case 'sei-mainnet':
return `https://seitrace.com/pacific-1/api`;
case 'rootstock':
return 'https://rootstock.blockscout.com/api';
default:
return `https://api-${network}.etherscan.io/api`;
}
Expand Down Expand Up @@ -410,6 +412,8 @@ const getPublicRPCEndpoint = (network: string) => {
return `https://rpc.cardona.zkevm-rpc.com`;
case 'sei-mainnet':
return `https://evm-rpc.sei-apis.com`;
case 'rootstock':
return 'https://public-node.rsk.co';
default:
throw new Error(`Unknown network: ${network}`);
}
Expand Down

0 comments on commit 3a96771

Please sign in to comment.