Config Reference

interface IConfig {
  rpc: string;
  chainId: ChainId;
  multicall: string;
  pollingInterval: number;
  autoConnect: boolean;
}
  • rpc - URL to the desired RPC. A useful website for finding RPC's is https://chainlist.org/
  • chainId - Unique Chain ID to connect to
  • multicall - Deployed address of the multicall contract on the used network. A wide range of defaults are provided, so this is likely not needed, however in some cases, particularly with newer networks, it may be necessary to set this.
  • pollingInterval - How often the fetched network data should be refreshed (if possible)
  • autoConnect - Should a previously connected user reconnect after a page refresh