Blockscout RPC endpoint for Classic

This commit is contained in:
Victor Baranov 2019-03-29 01:36:10 +03:00
parent 2c3bba312b
commit c5dbc0eb6f
4 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ function getRPCEndpoints(network) {
case RSK_TESTNET_CODE:
return ['https://public-node.testnet.rsk.co']
case CLASSIC_CODE:
return ['https://etc-parity.0xinfra.com']
return ['https://classic.blockscout.com/']
default:
return []
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "eth-net-props",
"version": "1.0.20",
"version": "1.0.21",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "eth-net-props",
"version": "1.0.20",
"version": "1.0.21",
"description": "Get properties of EMV-based network",
"main": "index.js",
"directories": {

View File

@ -242,7 +242,7 @@ describe('eth-net-props', () => {
const ETCRPCEndpoints = RPCEndpoints.getRPCEndpoints(61)
assert.equal(ETCRPCEndpoints.length, 1)
if (ETCRPCEndpoints.length > 0) {
assert.equal(ETCRPCEndpoints[0], 'https://etc-parity.0xinfra.com')
assert.equal(ETCRPCEndpoints[0], 'https://classic.blockscout.com/')
}
})
})