github.com/algorand/go-algorand-sdk@v1.24.0/client/v2/algod/getSupply.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 // Supply get the current supply reported by the ledger. 11 type Supply struct { 12 c *Client 13 } 14 15 // Do performs the HTTP request 16 func (s *Supply) Do(ctx context.Context, headers ...*common.Header) (response models.Supply, err error) { 17 err = s.c.get(ctx, &response, "/v2/ledger/supply", nil, headers) 18 return 19 }