Function extractChainIdFromBundlerUrl