safe_chainid (npm): safely handle chainIds
Keywords: ethereum|chain id|blockchain|metamask|chainid|networkid