-
Notifications
You must be signed in to change notification settings - Fork 34
/
index.js
24 lines (24 loc) · 1 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = (options = {}) => {
return {
injected: ['injected'],
frame: ['ws://127.0.0.1:1248', 'http://127.0.0.1:1248'],
direct: ['ws://127.0.0.1:8546', 'http://127.0.0.1:8545'], // IPC paths will be prepended in Node/Electron
infura: [
`wss://mainnet.infura.io/ws/v3/${options.infuraId}`,
`https://mainnet.infura.io/v3/${options.infuraId}`
],
alchemy: [
`wss://eth-mainnet.ws.alchemyapi.io/v2/${options.alchemyId}`,
`https://eth-mainnet.alchemyapi.io/v2/${options.alchemyId}`
],
infuraPolygon: [`https://polygon-mainnet.infura.io/v3/${options.infuraId}`],
infuraArbitrum: [`https://arbitrum-mainnet.infura.io/v3/${options.infuraId}`],
infuraOptimism: [`https://optimism-mainnet.infura.io/v3/${options.infuraId}`],
infuraSepolia: [
`wss://sepolia.infura.io/ws/v3/${options.infuraId}`,
`https://sepolia.infura.io/v3/${options.infuraId}`
],
gnosis: ['https://rpc.gnosischain.com'],
optimism: ['https://mainnet.optimism.io']
}
}