You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the installer (get.osmosis.zone ) deprecated? It's still listed on the docs as the place to go to but it seems it's installing an older version. It also takes 4 hours to download the binary from FRA location in DO.
I guess the simplest fastest way to get up and running would be :
I would have the installer reference the version from some running node for either network that way you never really need to worry about it.
importrequestsdeffetch_version(network):
""" Fetches the version number from the Osmosis blockchain based on the network type. Parameters: network (str): The network type, either 'testnet' or 'mainnet'. Returns: str: The version number if successful, None otherwise. """ifnetwork=="testnet":
url="https://rpc.testnet.osmosis.zone/abci_info"elifnetwork=="mainnet":
url="https://rpc.osmosis.zone/abci_info"else:
raiseValueError("Invalid network type. Use 'testnet' or 'mainnet'.")
response=requests.get(url)
ifresponse.status_code==200:
json_response=response.json()
version=json_response.get("result", {}).get("response", {}).get("version", None)
returnversionelse:
returnNone# Example usage:network_type="testnet"# or "mainnet"version=fetch_version(network_type)
ifversion:
print(f"Build Tag Version for {network_type}: {version}")
else:
print("Failed to fetch version information.")
(for the "local network" just have it use latest or whatever)
Is the installer (get.osmosis.zone ) deprecated? It's still listed on the docs as the place to go to but it seems it's installing an older version. It also takes 4 hours to download the binary from FRA location in DO.
I guess the simplest fastest way to get up and running would be :
The text was updated successfully, but these errors were encountered: