github.com/algorand/go-algorand-sdk@v1.24.0/client/v2/algod/getVersion.go (about) 1 package algod 2 3 import ( 4 "context" 5 6 "github.com/algorand/go-algorand-sdk/client/v2/common" 7 "github.com/algorand/go-algorand-sdk/client/v2/common/models" 8 ) 9 10 // Versions retrieves the supported API versions, binary build versions, and 11 // genesis information. 12 type Versions struct { 13 c *Client 14 } 15 16 // Do performs the HTTP request 17 func (s *Versions) Do(ctx context.Context, headers ...*common.Header) (response models.Version, err error) { 18 err = s.c.get(ctx, &response, "/versions", nil, headers) 19 return 20 }