Add nativeCurrency - closes #66 and add chains_mini.json

also improves #61 - at least now mainnet is on top again ;-)
This commit is contained in:
ligi 2019-05-22 22:47:45 +02:00
parent c8abbaf42f
commit 150aa21bd1
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D
61 changed files with 553 additions and 330 deletions

View File

@ -12,11 +12,14 @@ assignees: ''
```
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1,
"rpc": ["https://mainnet.infura.io"]
"chainId": 1,
"networkId": 1,
"rpc": ["https://mainnet.infura.io"],
"faucets": [],
"infoURL: "https://ethereum.org",
"nativeCurrency": {"name":"Ether","symbol":"ETH","decimals":18}
}
```

View File

@ -9,16 +9,17 @@ Data source available on `_data/chains.json`
```json
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1,
"chainId": 1,
"networkId": 1,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"
],
"faucets": [],
"info_url": "https://ethereum.org"
"infoURL": "https://ethereum.org",
"nativeCurrency": {"name":"Ether","symbol":"ETH","decimals":18}
}
```

View File

@ -1,14 +1,16 @@
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"
],
"rpc": ["https://mainnet.infura.io/v3/${INFURA_API_KEY}", "https://api.mycryptoapi.com/eth"],
"faucets": [],
"info_url": "https://ethereum.org"
}
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"infoURL": "https://ethereum.org",
"shortName": "eth",
"chainId": 1,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "xDAI Chain",
"short_name": "xdai",
"chain": "XDAI",
"network": "mainnet",
"chain_id": 100,
"network_id": 1,
"rpc": ["https://dai.poa.network"],
"faucets": [],
"info_url": "https://forum.poa.network/c/xdai-chain"
}
"nativeCurrency": {
"name": "xDAI",
"symbol": "xDAI",
"decimals": 18
},
"infoURL": "https://forum.poa.network/c/xdai-chain",
"shortName": "xdai",
"chainId": 100,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "EtherInc",
"short_name": "eti",
"chain": "ETI",
"network": "mainnet",
"chain_id": 101,
"network_id": 1,
"rpc": ["https://api.einc.io/jsonrpc/mainnet"],
"faucets": [],
"info_url": "https://einc.io"
}
"nativeCurrency": {
"name": "EtherInc Ether",
"symbol": "ETI",
"decimals": 18
},
"infoURL": "https://einc.io",
"shortName": "eti",
"chainId": 101,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "ThunderCore Mainnet",
"short_name": "TT",
"chain": "TT",
"network": "mainnet",
"chain_id": 108,
"network_id": 108,
"rpc": ["https://mainnet-rpc.thundercore.com"],
"faucets": ["https://faucet-testnet.thundercore.com"],
"info_url": "https://thundercore.com"
}
"nativeCurrency": {
"name": "ThunderCore Mainnet Ether",
"symbol": "TT",
"decimals": 18
},
"infoURL": "https://thundercore.com",
"shortName": "TT",
"chainId": 108,
"networkId": 108
}

View File

@ -1,11 +1,16 @@
{
"name": "Metadium Mainnet",
"short_name": "meta",
"chain": "META",
"network": "mainnet",
"chain_id": 11,
"network_id": 11,
"rpc": ["https://api.metadium.com/prod"],
"faucets": [],
"info_url": "https://metadium.com"
}
"nativeCurrency": {
"name": "Metadium Mainnet Ether",
"symbol": "META",
"decimals": 18
},
"infoURL": "https://metadium.com",
"shortName": "meta",
"chainId": 11,
"networkId": 11
}

View File

@ -1,11 +1,16 @@
{
"name": "IPOS Network",
"short_name": "ipos",
"chain": "IPOS",
"network": "mainnet",
"chain_id": 1122334455,
"network_id": 1122334455,
"rpc": ["https://rpc.iposlab.com","https://rpc2.iposlab.com"],
"rpc": ["https://rpc.iposlab.com", "https://rpc2.iposlab.com"],
"faucets": [],
"info_url": "https://iposlab.com"
}
"nativeCurrency": {
"name": "IPOS Network Ether",
"symbol": "IPOS",
"decimals": 18
},
"infoURL": "https://iposlab.com",
"shortName": "ipos",
"chainId": 1122334455,
"networkId": 1122334455
}

View File

@ -1,11 +1,16 @@
{
"name": "Metadium Testnet",
"short_name": "kal",
"chain": "META",
"network": "testnet",
"chain_id": 12,
"network_id": 12,
"rpc": ["https://api.metadium.com/dev"],
"faucets": [],
"info_url": "https://metadium.com"
}
"nativeCurrency": {
"name": "Metadium Testnet Ether",
"symbol": "KAL",
"decimals": 18
},
"infoURL": "https://metadium.com",
"shortName": "kal",
"chainId": 12,
"networkId": 12
}

View File

@ -1,11 +1,16 @@
{
"name": "Ether-1",
"short_name": "etho",
"chain": "ETHO",
"network": "mainnet",
"chain_id": 1313114,
"network_id": 1313114,
"rpc": ["https://rpc.ether1.org"],
"faucets": [],
"info_url": "https://ether1.org"
}
"nativeCurrency": {
"name": "Ether-1 Ether",
"symbol": "ETHO",
"decimals": 18
},
"infoURL": "https://ether1.org",
"shortName": "etho",
"chainId": 1313114,
"networkId": 1313114
}

View File

@ -1,11 +1,16 @@
{
"name": "PepChain Churchill",
"short_name": "tpep",
"chain": "PEP",
"network": "testnet",
"chain_id": 13371337,
"network_id": 13371337,
"rpc": ["https://churchill-rpc.pepchain.io"],
"faucets": [],
"info_url": "https://pepchain.io"
}
"nativeCurrency": {
"name": "PepChain Churchill Ether",
"symbol": "TPEP",
"decimals": 18
},
"infoURL": "https://pepchain.io",
"shortName": "tpep",
"chainId": 13371337,
"networkId": 13371337
}

View File

@ -1,11 +1,16 @@
{
"name": "Atheios",
"short_name": "ath",
"chain": "ATH",
"network": "mainnet",
"chain_id": 1620,
"network_id": 11235813,
"rpc": ["https://wallet.atheios.com:8797"],
"faucets": [],
"info_url": "https://atheios.com"
}
"nativeCurrency": {
"name": "Atheios Ether",
"symbol": "ATH",
"decimals": 18
},
"infoURL": "https://atheios.com",
"shortName": "ath",
"chainId": 1620,
"networkId": 11235813
}

View File

@ -1,11 +1,16 @@
{
"name": "ThunderCore Testnet",
"short_name": "TST",
"chain": "TST",
"network": "testnet",
"chain_id": 18,
"network_id": 18,
"rpc": ["https://testnet-rpc.thundercore.com:8544"],
"faucets": [],
"info_url": "https://thundercore.com"
}
"nativeCurrency": {
"name": "ThunderCore Testnet Ether",
"symbol": "TST",
"decimals": 18
},
"infoURL": "https://thundercore.com",
"shortName": "TST",
"chainId": 18,
"networkId": 18
}

View File

@ -1,11 +1,16 @@
{
"name": "IOLite",
"short_name": "ilt",
"chain": "ILT",
"network": "mainnet",
"chain_id": 18289463,
"network_id": 18289463,
"rpc": ["https://net.iolite.io"],
"faucets": [],
"info_url": "https://iolite.io"
}
"nativeCurrency": {
"name": "IOLite Ether",
"symbol": "ILT",
"decimals": 18
},
"infoURL": "https://iolite.io",
"shortName": "ilt",
"chainId": 18289463,
"networkId": 18289463
}

View File

@ -1,11 +1,16 @@
{
"name": "Teslafunds",
"short_name": "tsf",
"chain": "TSF",
"network": "mainnet",
"chain_id": 1856,
"network_id": 1,
"rpc": ["https://tsfapi.europool.me"],
"faucets": [],
"info_url": "https://teslafunds.io"
}
"nativeCurrency": {
"name": "Teslafunds Ether",
"symbol": "TSF",
"decimals": 18
},
"infoURL": "https://teslafunds.io",
"shortName": "tsf",
"chainId": 1856,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "EtherGem",
"short_name": "egem",
"chain": "EGEM",
"network": "mainnet",
"chain_id": 1987,
"network_id": 1987,
"rpc": ["https://jsonrpc.egem.io/custom"],
"faucets": [],
"info_url": "https://egem.io"
}
"nativeCurrency": {
"name": "EtherGem Ether",
"symbol": "EGEM",
"decimals": 18
},
"infoURL": "https://egem.io",
"shortName": "egem",
"chainId": 1987,
"networkId": 1987
}

View File

@ -1,11 +1,16 @@
{
"name": "Expanse Network",
"short_name": "exp",
"chain": "EXP",
"network": "mainnet",
"chain_id": 2,
"network_id": 1,
"rpc": ["https://node.expanse.tech"],
"faucets": [],
"info_url": "https://expanse.tech"
}
"nativeCurrency": {
"name": "Expanse Network Ether",
"symbol": "EXP",
"decimals": 18
},
"infoURL": "https://expanse.tech",
"shortName": "exp",
"chainId": 2,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "Akaroma",
"short_name": "aka",
"chain": "AKA",
"network": "mainnet",
"chain_id": 200625,
"network_id": 200625,
"rpc": ["https://remote.akroma.io"],
"faucets": [],
"info_url": "https://akroma.io"
}
"nativeCurrency": {
"name": "Akaroma Ether",
"symbol": "AKA",
"decimals": 18
},
"infoURL": "https://akroma.io",
"shortName": "aka",
"chainId": 200625,
"networkId": 200625
}

View File

@ -1,11 +1,16 @@
{
"name": "Webchain",
"short_name": "web",
"chain": "WEB",
"network": "mainnet",
"chain_id": 24484,
"network_id": 37129,
"rpc": ["https://node1.webchain.network"],
"faucets": [],
"info_url": "https://webchain.network"
}
"nativeCurrency": {
"name": "Webchain Ether",
"symbol": "WEB",
"decimals": 18
},
"infoURL": "https://webchain.network",
"shortName": "web",
"chainId": 24484,
"networkId": 37129
}

View File

@ -1,11 +1,16 @@
{
"name": "ARTIS sigma1",
"short_name": "ats",
"chain": "ARTIS",
"network": "sigma1",
"chain_id": 246529,
"network_id": 246529,
"rpc": ["https://rpc.sigma1.artis.network"],
"faucets": [],
"info_url": "https://artis.eco"
}
"nativeCurrency": {
"name": "ARTIS sigma1 Ether",
"symbol": "ATS",
"decimals": 18
},
"infoURL": "https://artis.eco",
"shortName": "ats",
"chainId": 246529,
"networkId": 246529
}

View File

@ -1,11 +1,16 @@
{
"name": "ARTIS tau1",
"short_name": "ats",
"chain": "ARTIS",
"network": "tau1",
"chain_id": 246785,
"network_id": 246785,
"rpc": ["https://rpc.tau1.artis.network"],
"faucets": [],
"info_url": "https://artis.network"
}
"nativeCurrency": {
"name": "ARTIS tau1 Ether",
"symbol": "ATS",
"decimals": 18
},
"infoURL": "https://artis.network",
"shortName": "ats",
"chainId": 246785,
"networkId": 246785
}

View File

@ -1,11 +1,16 @@
{
"name": "High Performance Blockchain",
"short_name": "hpb",
"chain": "HPB",
"network": "mainnet",
"chain_id": 269,
"network_id": 100,
"rpc": ["https://node.hpb.blue"],
"faucets": [],
"info_url": "https://hpb.io"
}
"nativeCurrency": {
"name": "High Performance Blockchain Ether",
"symbol": "HPB",
"decimals": 18
},
"infoURL": "https://hpb.io",
"shortName": "hpb",
"chainId": 269,
"networkId": 100
}

View File

@ -1,11 +1,16 @@
{
"name": "Ethereum Testnet Ropsten",
"short_name": "rop",
"chain": "ETH",
"network": "ropsten",
"chain_id": 3,
"network_id": 3,
"rpc": ["https://ropsten.infura.io/v3/${INFURA_API_KEY}"],
"faucets": ["https://faucet.ropsten.be?${ADDRESS}"],
"info_url": "https://github.com/ethereum/ropsten"
}
"nativeCurrency": {
"name": "Ropsten Ether",
"symbol": "ROP",
"decimals": 18
},
"infoURL": "https://github.com/ethereum/ropsten",
"shortName": "rop",
"chainId": 3,
"networkId": 3
}

View File

@ -1,11 +1,16 @@
{
"name": "RSK Mainnet",
"short_name": "rsk",
"chain": "RSK",
"network": "mainnet",
"chain_id": 30,
"network_id": 775,
"rpc": ["https://public-node.rsk.co", "https://mycrypto.rsk.co"],
"faucets": [],
"info_url": "https://rsk.co"
}
"nativeCurrency": {
"name": "RSK Mainnet Ether",
"symbol": "RSK",
"decimals": 18
},
"infoURL": "https://rsk.co",
"shortName": "rsk",
"chainId": 30,
"networkId": 775
}

View File

@ -1,14 +1,16 @@
{
"name": "RSK Testnet",
"short_name": "trsk",
"chain": "RSK",
"network": "testnet",
"chain_id": 31,
"network_id": 8052,
"rpc": [
"https://public-node.testnet.rsk.co",
"https://mycrypto.testnet.rsk.co"
],
"rpc": ["https://public-node.testnet.rsk.co", "https://mycrypto.testnet.rsk.co"],
"faucets": ["https://faucet.testnet.rsk.co"],
"info_url": "https://rsk.co"
}
"nativeCurrency": {
"name": "RSK Testnet Ether",
"symbol": "TRSK",
"decimals": 18
},
"infoURL": "https://rsk.co",
"shortName": "trsk",
"chainId": 31,
"networkId": 8052
}

View File

@ -1,12 +1,16 @@
{
"name": "Ethersocial Network",
"short_name": "esn",
"chain": "ESN",
"network": "mainnet",
"chain_id": 31102,
"network_id": 1,
"rpc": ["https://api.esn.gonspool.com"],
"faucets": [],
"info_url": "https://ethersocial.org"
}
"nativeCurrency": {
"name": "Ethersocial Network Ether",
"symbol": "ESN",
"decimals": 18
},
"infoURL": "https://ethersocial.org",
"shortName": "esn",
"chainId": 31102,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "Pirl",
"short_name": "pirl",
"chain": "PIRL",
"network": "mainnet",
"chain_id": 3125659152,
"network_id": 3125659152,
"rpc": ["https://wallrpc.pirl.io"],
"faucets": [],
"info_url": "https://pirl.io"
}
"nativeCurrency": {
"name": "Pirl Ether",
"symbol": "PIRL",
"decimals": 18
},
"infoURL": "https://pirl.io",
"shortName": "pirl",
"chainId": 3125659152,
"networkId": 3125659152
}

View File

@ -1,11 +1,16 @@
{
"name": "Lisinski",
"short_name": "lisinski",
"chain": "CRO",
"network": "mainnet",
"chain_id": 385,
"network_id": 385,
"rpc": ["https://rpc-bitfalls1.lisinski.online"],
"faucets": ["https://pipa.lisinski.online"],
"info_url": "https://lisinski.online"
}
"nativeCurrency": {
"name": "Lisinski Ether",
"symbol": "LISINSKI",
"decimals": 18
},
"infoURL": "https://lisinski.online",
"shortName": "lisinski",
"chainId": 385,
"networkId": 385
}

View File

@ -1,11 +1,16 @@
{
"name": "Ethereum Testnet Rinkeby",
"short_name": "rin",
"chain": "ETH",
"network": "rinkeby",
"chain_id": 4,
"network_id": 4,
"rpc": ["https://rinkeby.infura.io/v3/${INFURA_API_KEY}"],
"faucets": ["https://faucet.rinkeby.io"],
"info_url": "https://www.rinkeby.io"
}
"nativeCurrency": {
"name": "Rinkeby Ether",
"symbol": "RIN",
"decimals": 18
},
"infoURL": "https://www.rinkeby.io",
"shortName": "rin",
"chainId": 4,
"networkId": 4
}

View File

@ -1,14 +1,16 @@
{
"name": "Ethereum Testnet Kovan",
"short_name": "kov",
"chain": "ETH",
"network": "kovan",
"chain_id": 42,
"network_id": 42,
"rpc": ["https://kovan.infura.io/v3/${INFURA_API_KEY}"],
"faucets": [
"https://faucet.kovan.network",
"https://gitter.im/kovan-testnet/faucet"
],
"info_url": "https://kovan-testnet.github.io/website"
}
"faucets": ["https://faucet.kovan.network", "https://gitter.im/kovan-testnet/faucet"],
"nativeCurrency": {
"name": "Kovan Ether",
"symbol": "KOV",
"decimals": 18
},
"infoURL": "https://kovan-testnet.github.io/website",
"shortName": "kov",
"chainId": 42,
"networkId": 42
}

View File

@ -1,18 +1,16 @@
{
"name": "Ethereum Testnet Görli",
"short_name": "gor",
"chain": "ETH",
"network": "goerli",
"chain_id": 5,
"network_id": 5,
"rpc": [
"https://rpc.goerli.mudit.blog/",
"https://rpc.slock.it/goerli ",
"https://goerli.prylabs.net/"
],
"faucets": [
"https://goerli-faucet.slock.it/?address=${ADDRESS}",
"https://faucet.goerli.mudit.blog"
],
"info_url": "https://goerli.net/#about"
}
"rpc": ["https://rpc.goerli.mudit.blog/", "https://rpc.slock.it/goerli ", "https://goerli.prylabs.net/"],
"faucets": ["https://goerli-faucet.slock.it/?address=${ADDRESS}", "https://faucet.goerli.mudit.blog"],
"nativeCurrency": {
"name": "Görli Ether",
"symbol": "GOR",
"decimals": 18
},
"infoURL": "https://goerli.net/#about",
"shortName": "gor",
"chainId": 5,
"networkId": 5
}

View File

@ -1,11 +1,16 @@
{
"name": "Ethereum Classic Testnet Kotti",
"short_name": "kot",
"chain": "ETC",
"network": "kotti",
"chain_id": 6,
"network_id": 6,
"rpc": [],
"faucets": [],
"info_url": "https://kottiexplorer.ethernode.io"
}
"nativeCurrency": {
"name": "Kotti Ether",
"symbol": "KOT",
"decimals": 18
},
"infoURL": "https://kottiexplorer.ethernode.io",
"shortName": "kot",
"chainId": 6,
"networkId": 6
}

View File

@ -1,11 +1,16 @@
{
"name": "GoChain",
"short_name": "go",
"chain": "GO",
"network": "mainnet",
"chain_id": 60,
"network_id": 60,
"rpc": ["https://rpc.gochain.io"],
"faucets": [],
"info_url": "https://gochain.io"
}
"nativeCurrency": {
"name": "GoChain Ether",
"symbol": "GO",
"decimals": 18
},
"infoURL": "https://gochain.io",
"shortName": "go",
"chainId": 60,
"networkId": 60
}

View File

@ -1,11 +1,16 @@
{
"name": "Ethereum Classic Mainnet",
"short_name": "etc",
"chain": "ETC",
"network": "mainnet",
"chain_id": 61,
"network_id": 1,
"rpc": ["https://ethereumclassic.network"],
"faucets": [],
"info_url": "https://ethereumclassic.org"
}
"nativeCurrency": {
"name": "Ethereum Classic Ether",
"symbol": "ETC",
"decimals": 18
},
"infoURL": "https://ethereumclassic.org",
"shortName": "etc",
"chainId": 61,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "Aquachain",
"short_name": "aqua",
"chain": "AQUA",
"network": "mainnet",
"chain_id": 61717561,
"network_id": 61717561,
"rpc": ["https://c.onical.org", "https://tx.aquacha.in/api"],
"faucets": ["https://aquacha.in/faucet"],
"info_url": "https://aquachain.github.io"
}
"nativeCurrency": {
"name": "Aquachain Ether",
"symbol": "AQUA",
"decimals": 18
},
"infoURL": "https://aquachain.github.io",
"shortName": "aqua",
"chainId": 61717561,
"networkId": 61717561
}

View File

@ -1,11 +1,16 @@
{
"name": "Ethereum Classic Testnet",
"short_name": "tetc",
"chain": "ETC",
"network": "testnet",
"chain_id": 62,
"network_id": 2,
"rpc": [],
"faucets": [],
"info_url": "https://ethereumclassic.org"
}
"nativeCurrency": {
"name": "Ethereum Classic Testnet Ether",
"symbol": "TETC",
"decimals": 18
},
"infoURL": "https://ethereumclassic.org",
"shortName": "tetc",
"chainId": 62,
"networkId": 2
}

View File

@ -1,11 +1,16 @@
{
"name": "Ellaism",
"short_name": "ella",
"chain": "ELLA",
"network": "mainnet",
"chain_id": 64,
"network_id": 1,
"rpc": ["https://jsonrpc.ellaism.org"],
"faucets": [],
"info_url": "https://ellaism.org"
}
"nativeCurrency": {
"name": "Ellaism Ether",
"symbol": "ELLA",
"decimals": 18
},
"infoURL": "https://ellaism.org",
"shortName": "ella",
"chainId": 64,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "Mix",
"short_name": "mix",
"chain": "MIX",
"network": "mainnet",
"chain_id": 76,
"network_id": 1,
"rpc": ["https://rpc2.mix-blockchain.org:8647"],
"faucets": [],
"info_url": "https://mix-blockchain.org"
}
"nativeCurrency": {
"name": "Mix Ether",
"symbol": "MIX",
"decimals": 18
},
"infoURL": "https://mix-blockchain.org",
"shortName": "mix",
"chainId": 76,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "POA Network Sokol",
"short_name": "poa",
"chain": "POA",
"network": "sokol",
"chain_id": 77,
"network_id": 1,
"rpc": ["https://sokol.poa.network"],
"faucets": ["https://faucet-sokol.herokuapp.com"],
"info_url": "https://poa.network"
}
"nativeCurrency": {
"name": "POA Sokol Ether",
"symbol": "POA",
"decimals": 18
},
"infoURL": "https://poa.network",
"shortName": "poa",
"chainId": 77,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "Musicoin",
"short_name": "music",
"chain": "MUSIC",
"network": "mainnet",
"chain_id": 7762959,
"network_id": 7762959,
"rpc": ["https://mewapi.musicoin.tw"],
"faucets": [],
"info_url": "https://musicoin.tw"
}
"nativeCurrency": {
"name": "Musicoin",
"symbol": "MUSIC",
"decimals": 18
},
"infoURL": "https://musicoin.tw",
"shortName": "music",
"chainId": 7762959,
"networkId": 7762959
}

View File

@ -1,11 +1,16 @@
{
"name": "Ubiq Network Mainnet",
"short_name": "ubq",
"chain": "UBQ",
"network": "mainnet",
"chain_id": 8,
"network_id": 1,
"rpc": ["https://pyrus2.ubiqscan.io"],
"faucets": [],
"info_url": "https://ubiqsmart.com"
}
"nativeCurrency": {
"name": "Ubiq Ether",
"symbol": "UBQ",
"decimals": 18
},
"infoURL": "https://ubiqsmart.com",
"shortName": "ubq",
"chainId": 8,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "Callisto Mainnet",
"short_name": "clo",
"chain": "CLO",
"network": "mainnet",
"chain_id": 820,
"network_id": 1,
"rpc": ["https://clo-geth.0xinfra.com"],
"faucets": [],
"info_url": "https://callisto.network"
}
"nativeCurrency": {
"name": "Callisto Mainnet Ether",
"symbol": "CLO",
"decimals": 18
},
"infoURL": "https://callisto.network",
"shortName": "clo",
"chainId": 820,
"networkId": 1
}

View File

@ -1,11 +1,16 @@
{
"name": "Callisto Testnet",
"short_name": "tclo",
"chain": "CLO",
"network": "testnet",
"chain_id": 821,
"network_id": 2,
"rpc": [],
"faucets": [],
"info_url": "https://callisto.network"
}
"nativeCurrency": {
"name": "Callisto Testnet Ether",
"symbol": "TCLO",
"decimals": 18
},
"infoURL": "https://callisto.network",
"shortName": "tclo",
"chainId": 821,
"networkId": 2
}

View File

@ -1,11 +1,16 @@
{
"name": "TomoChain",
"short_name": "tomo",
"chain": "TOMO",
"network": "mainnet",
"chain_id": 88,
"network_id": 88,
"rpc": ["https://core.tomocoin.io"],
"faucets": [],
"info_url": "https://tomocoin.io"
}
"nativeCurrency": {
"name": "TomoChain Ether",
"symbol": "TOMO",
"decimals": 18
},
"infoURL": "https://tomocoin.io",
"shortName": "tomo",
"chainId": 88,
"networkId": 88
}

View File

@ -1,11 +1,16 @@
{
"name": "Ubiq Network Testnet",
"short_name": "tubq",
"chain": "UBQ",
"network": "mainnet",
"chain_id": 9,
"network_id": 2,
"rpc": [],
"faucets": [],
"info_url": "https://ethersocial.org"
}
"nativeCurrency": {
"name": "Ubiq Testnet Ether",
"symbol": "TUBQ",
"decimals": 18
},
"infoURL": "https://ethersocial.org",
"shortName": "tubq",
"chainId": 9,
"networkId": 2
}

View File

@ -1,14 +1,16 @@
{
"name": "Nepal Blockchain Network",
"short_name": "yeti",
"chain": "YETI",
"network": "mainnet",
"chain_id": 977,
"network_id": 977,
"rpc": [
"https://api.nepalblockchain.dev",
"https://api.nepalblockchain.network"
],
"rpc": ["https://api.nepalblockchain.dev", "https://api.nepalblockchain.network"],
"faucets": ["https://faucet.nepalblockchain.network"],
"info_url": "https://nepalblockchain.network"
}
"nativeCurrency": {
"name": "Nepal Blockchain Network Ether",
"symbol": "YETI",
"decimals": 18
},
"infoURL": "https://nepalblockchain.network",
"shortName": "yeti",
"chainId": 977,
"networkId": 977
}

View File

@ -1,11 +1,16 @@
{
"name": "POA Network Core",
"short_name": "skl",
"chain": "POA",
"network": "core",
"chain_id": 99,
"network_id": 2,
"rpc": ["https://core.poa.network"],
"faucets": [],
"info_url": "https://poa.network"
}
"nativeCurrency": {
"name": "POA Network Core Ether",
"symbol": "SKL",
"decimals": 18
},
"infoURL": "https://poa.network",
"shortName": "skl",
"chainId": 99,
"networkId": 2
}

View File

@ -2,16 +2,17 @@
layout: none
permalink: chains.json
---
[{% for json in site.data.chains %}{% assign chain = json[1] %}
[{% assign chains = site.data.chains | sort %}{% for json in chains %}{% assign chain = json[1] %}
{
"name": "{{ chain.name }}",
"chain_id": {{ chain.chain_id }},
"short_name": "{{ chain.short_name }}",
"chainId": {{ chain.chainId }},
"shortName": "{{ chain.shortName }}",
"chain": "{{ chain.chain }}",
"network": "{{ chain.network }}",
"network_id": {{ chain.network_id }},
"rpc": [{% for rpc in chain.rpc %}"{{ rpc }}"{% unless forloop.last %},{% endunless %}{%endfor%}],
"networkId": {{ chain.networkId }},
"nativeCurrency": {"name":"{{chain.nativeCurrency["name"]}}","symbol":"{{chain.nativeCurrency["symbol"]}}","decimals":{{chain.nativeCurrency["decimals"]}}},
"rpc": [{% for rpc in chain.rpc %}"{{ rpc }}"{% unless forloop.last %},{% endunless %}{%endfor%}],
"faucets": [{% for faucet in chain.faucets %}"{{ faucet }}"{% unless forloop.last %},{% endunless %}{%endfor%}],
"info_url": "{{ chain.info_url }}"
"infoURL": "{{ chain.infoURL }}"
}{% unless forloop.last %},{% endunless %}{% endfor %}
]

View File

@ -15,11 +15,11 @@ List of chains in block format. You can link directly to each section using the
<h2><a href="#{{ chainlink }}">{{ chain.name }} ({{ chain.short_name }})</a></h2>
<ul>
<li>Short Name: {{ chain.short_name }}</li>
<li>Short Name: {{ chain.shortName }}</li>
<li>Chain: {{ chain.chain }}</li>
<li>Chain ID: {{ chain.chain_id }}</li>
<li>Chain ID: {{ chain.chainId }}</li>
<li>Network: {{ chain.network }}</li>
<li>Network ID: {{ chain.network_id }}</li>
<li>Network ID: {{ chain.networkId }}</li>
<li>File: <pre style="display: inline">{{ json[0] }}.json</pre> </li>
</ul>
<hr />

5
chains_mini.json Normal file
View File

@ -0,0 +1,5 @@
---
layout: none
permalink: chains_mini.json
---
[{% assign chains = site.data.chains | sort %}{% for json in chains %}{% assign chain = json[1] %}{"name":"{{chain.name}}","chainId":{{chain.chainId}},"shortName":"{{chain.shortName}}","networkId":{{chain.networkId}},"nativeCurrency":{"name":"{{chain.nativeCurrency["name"]}}","symbol":"{{chain.nativeCurrency["symbol"]}}","decimals":{{chain.nativeCurrency["decimals"]}}},"rpc":[{% for rpc in chain.rpc %}"{{rpc}}"{% unless forloop.last %},{% endunless %}{%endfor%}],"faucets":[{% for faucet in chain.faucets %}"{{faucet}}"{% unless forloop.last %},{% endunless %}{%endfor%}],"infoURL":"{{chain.infoURL}}"}{% unless forloop.last %},{% endunless %}{% endfor %}]

View File

@ -19,15 +19,16 @@ This table is also available as a JSON feed at [chains.json](/chains.json).
<th>Network</th>
<th>Network ID</th>
</tr>
{% for json in site.data.chains %}
{% assign chains = site.data.chains | sort %}
{% for json in chains %}
{% assign chain = json[1] %}
<tr>
<td>{{ chain.chain_id }}</td>
<td>{{ chain.chainId }}</td>
<td>{{ chain.name }}</td>
<td>{{ chain.short_name }}</td>
<td>{{ chain.shortName }}</td>
<td>{{ chain.chain }}</td>
<td>{{ chain.network }}</td>
<td>{{ chain.network_id }}</td>
<td>{{ chain.networkId }}</td>
</tr>
{% endfor %}
</table>

View File

@ -8,27 +8,28 @@ import java.math.BigInteger
val all_fields = listOf(
"name",
"short_name",
"shortName",
"chain",
"network",
"chain_id",
"network_id",
"chainId",
"networkId",
"rpc",
"faucets",
"info_url"
"infoURL",
"nativeCurrency"
)
class FileNameMustMatchChainId : Exception("chain_id must match the filename")
class FileNameMustMatchChainId : Exception("chainId must match the filename")
class ExtensionMustBeJSON : Exception("filename extension must be json")
class ShouldHaveNoExtraFields(fields: Set<String>) : Exception("should have no extra field $fields")
class ShouldHaveNoMissingFields(fields: Set<String>) : Exception("missing field(s) $fields")
class RPCMustBeList : Exception("rpc must be a list")
class RPCMustBeListOfStrings : Exception("rpc must be a list of strings")
fun checkChain(it: File) {
fun checkChain(it: File, connectRPC: Boolean) {
println("processing $it")
val jsonObject = Klaxon().parseJsonObject(it.reader())
val chainAsLong = getNumber(jsonObject, "chain_id")
val chainAsLong = getNumber(jsonObject, "chainId")
if (chainAsLong != it.nameWithoutExtension.toLongOrNull()) {
throw(FileNameMustMatchChainId())
@ -38,7 +39,7 @@ fun checkChain(it: File) {
throw(ExtensionMustBeJSON())
}
getNumber(jsonObject, "network_id")
getNumber(jsonObject, "networkId")
val extraFields = jsonObject.map.keys.subtract(all_fields)
if (extraFields.isNotEmpty()) {
@ -49,22 +50,23 @@ fun checkChain(it: File) {
if (missingFields.isNotEmpty()) {
throw ShouldHaveNoMissingFields(missingFields)
}
if (jsonObject["rpc"] is List<*>) {
(jsonObject["rpc"] as List<*>).forEach {
if (it !is String) {
throw(RPCMustBeListOfStrings())
} else {
println("connecting to $it")
val ethereumRPC = EthereumRPC(it)
println("Client:" + ethereumRPC.clientVersion()?.result)
println("BlockNumber:" + ethereumRPC.blockNumber()?.result?.tryBigint())
println("GasPrice:" + ethereumRPC.gasPrice()?.result?.tryBigint())
if (connectRPC) {
if (jsonObject["rpc"] is List<*>) {
(jsonObject["rpc"] as List<*>).forEach {
if (it !is String) {
throw(RPCMustBeListOfStrings())
} else {
println("connecting to $it")
val ethereumRPC = EthereumRPC(it)
println("Client:" + ethereumRPC.clientVersion()?.result)
println("BlockNumber:" + ethereumRPC.blockNumber()?.result?.tryBigint())
println("GasPrice:" + ethereumRPC.gasPrice()?.result?.tryBigint())
}
}
println()
} else {
throw(RPCMustBeList())
}
println()
} else {
throw(RPCMustBeList())
}
}
@ -78,6 +80,7 @@ fun String.tryBigint() = if (startsWith("0x")) {
} else {
null
}
private fun getNumber(jsonObject: JsonObject, field: String): Long {
return when (val chainId = jsonObject[field]) {
is Int -> chainId.toLong()

View File

@ -6,7 +6,7 @@ import java.io.File
fun main() {
File("_data/chains").listFiles().forEach {
checkChain(it)
checkChain(it, false)
}
}

View File

@ -1,4 +1,3 @@
import org.ethereum.lists.chains.*
import org.junit.Test
import java.io.File
@ -9,42 +8,42 @@ class TheChainChecker {
fun shouldPassForValidChain() {
val file = getFile("valid/1.json")
checkChain(file)
checkChain(file, false)
}
@Test(expected = FileNameMustMatchChainId::class)
fun shouldFailForInvalidFilename() {
val file = getFile("invalid/invalid_filename.json")
checkChain(file)
checkChain(file, false)
}
@Test(expected = FileNameMustMatchChainId::class)
fun shouldFailForChainNotMatchingFilename() {
val file = getFile("invalid/3.json")
checkChain(file)
checkChain(file, false)
}
@Test(expected = ShouldHaveNoExtraFields::class)
fun shouldFailForExtraField() {
val file = getFile("invalid/1.json")
checkChain(file)
checkChain(file, false)
}
@Test(expected = ShouldHaveNoMissingFields::class)
fun shouldFailForMissingField() {
val file = getFile("invalid/4.json")
checkChain(file)
checkChain(file, false)
}
@Test(expected = ExtensionMustBeJSON::class)
fun shouldFailFoNonJSON() {
val file = getFile("invalid/1.nojson")
checkChain(file)
checkChain(file, false)
}

View File

@ -1,15 +1,15 @@
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1,
"chainId": 1,
"networkId": 1,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"
],
"faucets": [],
"info_url": "https://ethereum.org",
"infoURL": "https://ethereum.org",
"extra_field": "should_fail"
}

View File

@ -1,14 +1,14 @@
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1,
"chainId": 1,
"networkId": 1,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"
],
"faucets": [],
"info_url": "https://ethereum.org"
"infoURL": "https://ethereum.org"
}

View File

@ -1,14 +1,14 @@
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1,
"chainId": 1,
"networkId": 1,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"
],
"faucets": [],
"info_url": "https://ethereum.org"
"infoURL": "https://ethereum.org"
}

View File

@ -1,14 +1,14 @@
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1,
"chainId": 1,
"networkId": 1,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"
],
"faucets": [],
"info_url": "https://ethereum.org"
"infoURL": "https://ethereum.org"
}

View File

@ -1,10 +1,10 @@
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 4,
"network_id": 4,
"chainId": 4,
"networkId": 4,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"

View File

@ -1,14 +1,14 @@
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1,
"chainId": 1,
"networkId": 1,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"
],
"faucets": [],
"info_url": "https://ethereum.org"
"infoURL": "https://ethereum.org"
}

View File

@ -1,14 +1,19 @@
{
"name": "Ethereum Mainnet",
"short_name": "eth",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chain_id": 1,
"network_id": 1,
"chainId": 1,
"networkId": 1,
"rpc": [
"https://mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://api.mycryptoapi.com/eth"
],
"faucets": [],
"info_url": "https://ethereum.org"
"infoURL": "https://ethereum.org",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
}
}