46 lines
1.3 KiB
JavaScript
46 lines
1.3 KiB
JavaScript
import { defineChain } from 'viem'
|
|
import { http, fallback, createConfig } from 'wagmi'
|
|
import { sepolia, hoodi } from 'wagmi/chains'
|
|
|
|
const mordor = defineChain({
|
|
id: 63,
|
|
name: 'Mordor',
|
|
nativeCurrency: {
|
|
decimals: 18,
|
|
name: 'METC',
|
|
symbol: 'mETC',
|
|
},
|
|
rpcUrls: {
|
|
default: { http: ['https://rpc.mordor.etccooperative.org'] },
|
|
},
|
|
blockExplorers: {
|
|
default: {
|
|
name: 'Blockscout',
|
|
url: 'https://etc-mordor.blockscout.com/'
|
|
},
|
|
},
|
|
})
|
|
|
|
export const config = createConfig({
|
|
chains: [sepolia, hoodi, mordor],
|
|
transports: {
|
|
[sepolia.id]: fallback([
|
|
http('https://ethereum-sepolia-rpc.publicnode.com'),
|
|
http('https://1rpc.io/sepolia'),
|
|
http('https://eth-sepolia.public.blastapi.io'),
|
|
http('https://0xrpc.io/sep'),
|
|
http('https://api.zan.top/eth-sepolia'),
|
|
http('https://eth-sepolia.api.onfinality.io/public'),
|
|
http('https://sepolia.drpc.org')
|
|
]),
|
|
[hoodi.id]: fallback([
|
|
http('https://rpc.hoodi.ethpandaops.io'),
|
|
http('https://0xrpc.io/hoodi'),
|
|
]),
|
|
[mordor.id]: fallback([
|
|
http('https://rpc.mordor.etccooperative.org'),
|
|
http('https://geth-mordor.etc-network.info'),
|
|
])
|
|
},
|
|
})
|