import CommunitiesID from'@communitiesid/id';constOPTIONS:CommunitiesIDInput= { isTestnet:false, openseaKey:'<Your opensea api key>', Ethereum: { RPCUrl:'<Your rpc url for this chain>'// generateSign is required to call writing methods, like mint, renew generateSigner: provider =>newethers.Wallet(process.env.PRIVATE_KEY||'', provider) }, Polygon: { RPCUrl:'<Your rpc url for this chain>' }, Base: { RPCUrl:'<Your rpc url for this chain>' }, OP: { RPCUrl:'<Your rpc url for this chain>' }, BSC: { RPCUrl:'<Your rpc url for this chain>' }, Scroll: { RPCUrl:'<Your rpc url for this chain>' },// This is for resolve name for space id only arbitrum: { RPCUrl:'<Your rpc url for this chain>' },}const { resolver,collector,operator } =newCommunitiesID(options);
You can also initialize it with provider (except arbitrum, because it is only used for resolve name for space id)