goat-systems / go-tezos

Go Tezos Is a Go library that exposes and builds upon the Tezos RPC.
MIT License
71 stars 43 forks source link

Discover which network client is connected #33

Closed utdrmac closed 5 years ago

utdrmac commented 5 years ago

Added query of /network/versions and associated helper functions for determining if connected to mainnet, alphanet, or zeronet. Yes, "mainnet" still reports string as "betanet". When protocol of this is fixed, we can push a change.