Skip to content

Commit f49aab9

Browse files
committed
fix: blast etherscan and rpc url
1 parent 6d0586f commit f49aab9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/tough-teachers-kneel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': patch
3+
---
4+
5+
fix blast testnet etherscan and RPC URL

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
227227
return `https://api.lineascan.build/api`;
228228
case 'linea-goerli':
229229
return `https://api.linea-goerli.build/api`;
230+
case 'blast-testnet':
231+
return `https://api.routescan.io/v2/network/testnet/evm/168587773/etherscan/api`;
230232
default:
231233
return `https://api-${network}.etherscan.io/api`;
232234
}
@@ -313,6 +315,8 @@ const getPublicRPCEndpoint = (network: string) => {
313315
return 'https://linea-mainnet.public.blastapi.io';
314316
case 'linea-goerli':
315317
return 'https://linea-goerli.public.blastapi.io';
318+
case 'blast-testnet':
319+
return 'https://sepolia.blast.io';
316320
default:
317321
throw new Error(`Unknown network: ${network}`);
318322
}

0 commit comments

Comments
 (0)