Skip to content

Commit

Permalink
Add blockscout apis (#22)
Browse files Browse the repository at this point in the history
* add blockscout apis

* update near firehose first block

* add etherscan check script
  • Loading branch information
YaroShkvorets authored Dec 1, 2024
1 parent 8c3e317 commit f316ad5
Show file tree
Hide file tree
Showing 40 changed files with 147 additions and 38 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.6.9",
"version": "0.6.10",
"private": true,
"type": "module",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/arbitrum-nova.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
{
"url": "https://arbitrum-nova.abi.pinax.network/api",
"kind": "etherscan"
}
},
{ "url": "https://nova-explorer.arbitrum.io/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
6 changes: 5 additions & 1 deletion registry/eip155/arbitrum-one.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"https://arbone.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://arbitrum-one.abi.pinax.network/api", "kind": "etherscan" }
{
"url": "https://arbitrum-one.abi.pinax.network/api",
"kind": "etherscan"
},
{ "url": "https://arbitrum.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/arbitrum-sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
{
"url": "https://arbitrum-sepolia.abi.pinax.network/api",
"kind": "etherscan"
}
},
{ "url": "https://sepolia-explorer.arbitrum.io/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/astar-zkevm-mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"apiUrls": [
{
"url": "https://astar-zkevm.explorer.startale.com/api",
"kind": "etherscan"
"kind": "blockscout"
}
],
"services": {
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/aurora-testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"explorerUrls": ["https://explorer.testnet.aurora.dev"],
"rpcUrls": ["https://testnet.aurora.dev"],
"apiUrls": [
{ "url": "https://explorer.testnet.aurora.dev/api", "kind": "etherscan" }
{ "url": "https://explorer.testnet.aurora.dev/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "testnet",
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/aurora.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"explorerUrls": ["https://explorer.aurora.dev"],
"rpcUrls": ["https://mainnet.aurora.dev"],
"apiUrls": [
{ "url": "https://explorer.mainnet.aurora.dev/api", "kind": "etherscan" }
{ "url": "https://explorer.mainnet.aurora.dev/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "mainnet",
Expand Down
6 changes: 5 additions & 1 deletion registry/eip155/base-sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
"https://basesepolia.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://base-sepolia.abi.pinax.network/api", "kind": "etherscan" }
{
"url": "https://base-sepolia.abi.pinax.network/api",
"kind": "etherscan"
},
{ "url": "https://base-sepolia.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"https://base.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://base.abi.pinax.network/api", "kind": "etherscan" }
{ "url": "https://base.abi.pinax.network/api", "kind": "etherscan" },
{ "url": "https://base.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/blast-mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"https://rpc.ankr.com/blast"
],
"apiUrls": [
{ "url": "https://blast.abi.pinax.network/api", "kind": "etherscan" }
{ "url": "https://blast.abi.pinax.network/api", "kind": "etherscan" },
{ "url": "https://blast.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/blast-testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
{
"url": "https://blast-testnet.abi.pinax.network/api",
"kind": "etherscan"
}
},
{ "url": "https://blast-testnet.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/celo-alfajores.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
{
"url": "https://celo-alfajores.abi.pinax.network/api",
"kind": "etherscan"
}
},
{ "url": "https://celo-alfajores.blockscout.com/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"issuanceRewards": false,
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/celo.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"https://celo.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://celo.abi.pinax.network/api", "kind": "etherscan" }
{ "url": "https://celo.abi.pinax.network/api", "kind": "etherscan" },
{ "url": "https://explorer.celo.org/mainnet/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "mainnet",
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/clover.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"graphNode": { "protocol": "ethereum" },
"explorerUrls": ["https://clvscan.com"],
"rpcUrls": ["https://api-para.clv.org"],
"apiUrls": [{ "url": "https://clvscan.com/api", "kind": "etherscan" }],
"apiUrls": [{ "url": "https://clvscan.com/api", "kind": "blockscout" }],
"networkType": "mainnet",
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"issuanceRewards": false,
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/cronos.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"https://cronos.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://explorer-api.cronos.org/mainnet/api/v1", "kind": "other" }
{ "url": "https://cronos.org/explorer/api", "kind": "blockscout" }
],
"services": {},
"networkType": "mainnet",
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/etherlink-mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"explorerUrls": ["https://explorer.etherlink.com"],
"rpcUrls": ["https://node.mainnet.etherlink.com"],
"apiUrls": [
{ "url": "https://explorer.etherlink.com/api", "kind": "etherscan" }
{ "url": "https://explorer.etherlink.com/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "mainnet",
Expand Down
5 changes: 4 additions & 1 deletion registry/eip155/etherlink-testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"explorerUrls": ["https://testnet.explorer.etherlink.com"],
"rpcUrls": ["https://node.ghostnet.etherlink.com"],
"apiUrls": [
{ "url": "https://testnet.explorer.etherlink.com/api", "kind": "etherscan" }
{
"url": "https://testnet.explorer.etherlink.com/api",
"kind": "blockscout"
}
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "testnet",
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/gnosis-chiado.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"https://chiado.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://gnosis-chiado.blockscout.com/api", "kind": "etherscan" }
{ "url": "https://gnosis-chiado.blockscout.com/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "testnet",
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/gnosis.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"https://rpc.ankr.com/gnosis"
],
"apiUrls": [
{ "url": "https://gnosis.abi.pinax.network/api", "kind": "etherscan" }
{ "url": "https://gnosis.abi.pinax.network/api", "kind": "etherscan" },
{ "url": "https://gnosis.blockscout.com/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "mainnet",
Expand Down
4 changes: 3 additions & 1 deletion registry/eip155/holesky.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"https://rpc.holesky.ethpandaops.io",
"https://holesky.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [],
"apiUrls": [
{ "url": "https://eth-holesky.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
"sps": ["https://api.thegraph.com/deploy"],
Expand Down
4 changes: 4 additions & 0 deletions registry/eip155/linea-sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
{
"url": "https://linea-sepolia.abi.pinax.network/api",
"kind": "etherscan"
},
{
"url": "https://api-explorer.sepolia.linea.build/api",
"kind": "blockscout"
}
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/linea.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"https://linea-mainnet.infura.io/v3/${INFURA_API_KEY}"
],
"apiUrls": [
{ "url": "https://linea.abi.pinax.network/api", "kind": "etherscan" }
{ "url": "https://linea.abi.pinax.network/api", "kind": "etherscan" },
{ "url": "https://api-explorer.linea.build/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/matic.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"https://rpc.ankr.com/polygon"
],
"apiUrls": [
{ "url": "https://polygon.abi.pinax.network/api", "kind": "etherscan" }
{ "url": "https://polygon.abi.pinax.network/api", "kind": "etherscan" },
{ "url": "https://polygon.blockscout.com/api", "kind": "blockscout" }
],
"networkType": "mainnet",
"services": {
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/mode-mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"https://mode.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://explorer.mode.network/api", "kind": "etherscan" }
{ "url": "https://explorer.mode.network/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/mode-sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"explorerUrls": ["https://sepolia.explorer.mode.network"],
"rpcUrls": ["https://sepolia.mode.network"],
"apiUrls": [
{ "url": "https://sepolia.explorer.mode.network/api", "kind": "etherscan" }
{ "url": "https://sepolia.explorer.mode.network/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "testnet",
Expand Down
4 changes: 4 additions & 0 deletions registry/eip155/optimism-sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
{
"url": "https://optimism-sepolia.abi.pinax.network/api",
"kind": "etherscan"
},
{
"url": "https://optimism-sepolia.blockscout.com/api",
"kind": "blockscout"
}
],
"services": {
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/optimism.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"https://optimism.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://optimism.abi.pinax.network/api", "kind": "etherscan" }
{ "url": "https://optimism.abi.pinax.network/api", "kind": "etherscan" },
{ "url": "https://optimism.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/polygon-zkevm-cardona.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"apiUrls": [
{
"url": "https://api-cardona-zkevm.polygonscan.com/api",
"kind": "etherscan"
"kind": "blockscout"
},
{
"url": "https://polygon-zkevm-cardona.abi.pinax.network/api",
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/polygon-zkevm.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
{
"url": "https://polygon-zkevm.abi.pinax.network/api",
"kind": "etherscan"
}
},
{ "url": "https://zkevm.blockscout.com/api", "kind": "blockscout" }
],
"networkType": "mainnet",
"services": {
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/rootstock.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"https://rootstock.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://rootstock.blockscout.com/api", "kind": "etherscan" }
{ "url": "https://rootstock.blockscout.com/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "mainnet",
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/scroll-sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"https://scrsepolia.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://api-sepolia.scrollscan.com/api", "kind": "etherscan" }
{ "url": "https://api-sepolia.scrollscan.com/api", "kind": "etherscan" },
{ "url": "https://scroll-sepolia.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
5 changes: 4 additions & 1 deletion registry/eip155/scroll.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
"https://scroll.rpc.pinax.network/v1/{PINAX_API_KEY}",
"https://rpc.ankr.com/scroll"
],
"apiUrls": [{ "url": "https://api.scrollscan.com/api", "kind": "etherscan" }],
"apiUrls": [
{ "url": "https://api.scrollscan.com/api", "kind": "etherscan" },
{ "url": "https://scroll.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
"sps": ["https://api.thegraph.com/deploy"],
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"https://sepolia.infura.io/v3/${INFURA_API_KEY}"
],
"apiUrls": [
{ "url": "https://sepolia.abi.pinax.network/api", "kind": "etherscan" }
{ "url": "https://sepolia.abi.pinax.network/api", "kind": "etherscan" },
{ "url": "https://eth-sepolia.blockscout.com/api", "kind": "blockscout" }
],
"services": {
"subgraphs": ["https://api.thegraph.com/deploy"],
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/xai.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"https://xai.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://explorer.xai-chain.net/api", "kind": "etherscan" }
{ "url": "https://explorer.xai-chain.net/api", "kind": "blockscout" }
],
"services": {
"firehose": ["xai.firehose.pinax.network:443"],
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/zksync-era-sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
{
"url": "https://block-explorer-api.sepolia.zksync.dev/api",
"kind": "etherscan"
}
},
{ "url": "https://zksync-sepolia.blockscout.com/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "testnet",
Expand Down
3 changes: 2 additions & 1 deletion registry/eip155/zksync-era.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
{
"url": "https://block-explorer-api.mainnet.zksync.io/api",
"kind": "etherscan"
}
},
{ "url": "https://zksync.blockscout.com/api", "kind": "blockscout" }
],
"services": { "subgraphs": ["https://api.thegraph.com/deploy"] },
"networkType": "mainnet",
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/zkyoto-testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"https://zkyoto.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://zkyoto.explorer.startale.com/api", "kind": "etherscan" }
{ "url": "https://zkyoto.explorer.startale.com/api", "kind": "blockscout" }
],
"services": {
"firehose": ["zkyoto.firehose.pinax.network:443"],
Expand Down
2 changes: 1 addition & 1 deletion registry/eip155/zora.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"https://zora.rpc.pinax.network/v1/{PINAX_API_KEY}"
],
"apiUrls": [
{ "url": "https://explorer.zora.energy/api/v2", "kind": "etherscan" }
{ "url": "https://explorer.zora.energy/api", "kind": "blockscout" }
],
"services": {
"firehose": ["zora.firehose.pinax.network:443"],
Expand Down
4 changes: 2 additions & 2 deletions registry/near/near-mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"nativeToken": "NEAR",
"docsUrl": "https://docs.near.org",
"genesis": {
"hash": "0xa7110b9052e1be68f7fa8bb4065bf54e731205801878e708db7464ec4b9b8014",
"height": 9820214
"hash": "0xc6fdf91c8e82f8f917cc1975e9de1c64be11899e321dfdf5febcfbb7313f1486",
"height": 9820210
},
"firehose": {
"blockType": "sf.near.type.v1.Block",
Expand Down
Loading

0 comments on commit f316ad5

Please sign in to comment.