code: def _set_rpc(self, rpc_type: str) -> None:
          
          if rpc_type == "infura":
              self.set_api_rpc_infura()
          elif rpc_type == "localhost":
              self.set_api_rpc_localhost()
          else:
              self.set_api_rpc(rpc_type)
docs: Sets rpc based on the type
          :param rpc_type: The type of connection: like infura, ganache, localhost
          :return: