Created
August 8, 2022 07:04
-
-
Save streamerd/d586651568134ced5f678d1820c58306 to your computer and use it in GitHub Desktop.
blockchain network configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ChainId } from '@sushiswap/core-sdk' | |
export const SUPPORTED_NETWORKS = { | |
[ChainId.ETHEREUM]: { | |
chainId: '0x1', | |
chainName: 'Ethereum', | |
nativeCurrency: { | |
name: 'Ethereum', | |
symbol: 'ETH', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://mainnet.infura.io/v3'], | |
blockExplorerUrls: ['https://etherscan.com'], | |
}, | |
[ChainId.ROPSTEN]: { | |
chainId: '0x3', | |
chainName: 'Ropsten', | |
nativeCurrency: { | |
name: 'Ethereum', | |
symbol: 'ETH', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://ropsten.infura.io/v3'], | |
blockExplorerUrls: ['https://ropsten.etherscan.com'], | |
}, | |
[ChainId.RINKEBY]: { | |
chainId: '0x4', | |
chainName: 'Rinkeby', | |
nativeCurrency: { | |
name: 'Ethereum', | |
symbol: 'ETH', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://rinkeby.infura.io/v3'], | |
blockExplorerUrls: ['https://rinkeby.etherscan.com'], | |
}, | |
[ChainId.GÖRLI]: { | |
chainId: '0x5', | |
chainName: 'Görli', | |
nativeCurrency: { | |
name: 'Ethereum', | |
symbol: 'ETH', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://goerli.infura.io/v3'], | |
blockExplorerUrls: ['https://goerli.etherscan.com'], | |
}, | |
[ChainId.KOVAN]: { | |
chainId: '0x2A', | |
chainName: 'Kovan', | |
nativeCurrency: { | |
name: 'Ethereum', | |
symbol: 'ETH', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://kovan.infura.io/v3'], | |
blockExplorerUrls: ['https://kovan.etherscan.com'], | |
}, | |
[ChainId.FANTOM]: { | |
chainId: '0xfa', | |
chainName: 'Fantom', | |
nativeCurrency: { | |
name: 'Fantom', | |
symbol: 'FTM', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://rpcapi.fantom.network'], | |
blockExplorerUrls: ['https://ftmscan.com'], | |
}, | |
[ChainId.BSC]: { | |
chainId: '0x38', | |
chainName: 'Binance Smart Chain', | |
nativeCurrency: { | |
name: 'Binance Coin', | |
symbol: 'BNB', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://bsc-dataseed.binance.org'], | |
blockExplorerUrls: ['https://bscscan.com'], | |
}, | |
[ChainId.MATIC]: { | |
chainId: '0x89', | |
chainName: 'Matic', | |
nativeCurrency: { | |
name: 'Matic', | |
symbol: 'MATIC', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://polygon-rpc.com'], // ['https://matic-mainnet.chainstacklabs.com/'], | |
blockExplorerUrls: ['https://polygonscan.com'], | |
}, | |
[ChainId.HECO]: { | |
chainId: '0x80', | |
chainName: 'Heco', | |
nativeCurrency: { | |
name: 'Heco Token', | |
symbol: 'HT', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://http-mainnet.hecochain.com'], | |
blockExplorerUrls: ['https://hecoinfo.com'], | |
}, | |
[ChainId.XDAI]: { | |
chainId: '0x64', | |
chainName: 'xDai', | |
nativeCurrency: { | |
name: 'xDai Token', | |
symbol: 'xDai', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://rpc.xdaichain.com'], | |
blockExplorerUrls: ['https://blockscout.com/poa/xdai'], | |
}, | |
[ChainId.HARMONY]: { | |
chainId: '0x63564C40', | |
chainName: 'Harmony', | |
nativeCurrency: { | |
name: 'One Token', | |
symbol: 'ONE', | |
decimals: 18, | |
}, | |
rpcUrls: [ | |
'https://api.harmony.one', | |
'https://s1.api.harmony.one', | |
'https://s2.api.harmony.one', | |
'https://s3.api.harmony.one', | |
], | |
blockExplorerUrls: ['https://explorer.harmony.one/'], | |
}, | |
[ChainId.AVALANCHE]: { | |
chainId: '0xA86A', | |
chainName: 'Avalanche Mainnet C-Chain', | |
nativeCurrency: { | |
name: 'Avalanche Token', | |
symbol: 'AVAX', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://api.avax.network/ext/bc/C/rpc'], | |
blockExplorerUrls: ['https://snowtrace.io'], | |
}, | |
[ChainId.OKEX]: { | |
chainId: '0x42', | |
chainName: 'OKEx', | |
nativeCurrency: { | |
name: 'OKEx Token', | |
symbol: 'OKT', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://exchainrpc.okex.org'], | |
blockExplorerUrls: ['https://www.oklink.com/okexchain'], | |
}, | |
[ChainId.ARBITRUM]: { | |
chainId: '0xA4B1', | |
chainName: 'Arbitrum', | |
nativeCurrency: { | |
name: 'Ethereum', | |
symbol: 'ETH', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://arb1.arbitrum.io/rpc'], | |
blockExplorerUrls: ['https://arbiscan.io'], | |
}, | |
[ChainId.CELO]: { | |
chainId: '0xA4EC', | |
chainName: 'Celo', | |
nativeCurrency: { | |
name: 'Celo', | |
symbol: 'CELO', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://forno.celo.org'], | |
blockExplorerUrls: ['https://explorer.celo.org'], | |
}, | |
[ChainId.MOONRIVER]: { | |
chainId: '0x505', | |
chainName: 'Moonriver', | |
nativeCurrency: { | |
name: 'Moonriver', | |
symbol: 'MOVR', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://rpc.moonriver.moonbeam.network'], | |
blockExplorerUrls: ['https://moonriver.moonscan.io'], | |
}, | |
[ChainId.FUSE]: { | |
chainId: '0x7A', | |
chainName: 'Fuse', | |
nativeCurrency: { | |
name: 'Fuse', | |
symbol: 'FUSE', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://rpc.fuse.io'], | |
blockExplorerUrls: ['https://explorer.fuse.io'], | |
}, | |
[ChainId.TELOS]: { | |
chainId: '0x28', | |
chainName: 'Telos', | |
nativeCurrency: { | |
name: 'Telos', | |
symbol: 'TLOS', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://mainnet.telos.net/evm'], | |
blockExplorerUrls: ['https://rpc1.us.telos.net/v2/explore'], | |
}, | |
[ChainId.PALM]: { | |
chainId: '0x2A15C308D', | |
chainName: 'Palm', | |
nativeCurrency: { | |
name: 'Palm', | |
symbol: 'PALM', | |
decimals: 18, | |
}, | |
rpcUrls: ['https://palm-mainnet.infura.io/v3/da5fbfafcca14b109e2665290681e267'], | |
blockExplorerUrls: ['https://explorer.palm.io'], | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment