wealdtech / ethereal

Apache License 2.0
209 stars 41 forks source link

How to connect to other EVM sidechains (Polygon, XDai) #33

Closed danimesq closed 2 years ago

danimesq commented 2 years ago

I've read README.md but only found about adding a single IPC network (and not a RPC with network ID like in MetaMask).

@mcdee How to connect to these networks via RPC directly using a command flag?

Polygon: RPC: https://rpc-mainnet.maticvigil.com/ ID: 137

XDai: RPC: https://rpc.xdaichain.com/ ID: 100

mcdee commented 2 years ago

ethereal is not designed to work with sidechains, however if they are fully rpc-compatible then most features will work albeit with oddities (e.g. ethereal assumes Ether is the base currency) and, as you mention, the network ID will be incorrect so that may also cause issues.

https://github.com/wealdtech/ethereal#access-to-ethereum-networks describes how to use other chains, e.g. ethereal --connection=https://rpc.xdaichain.com/ ...