github.com/algorand/go-algorand-sdk@v1.24.0/client/v2/algod/getLightBlockHeaderProof.go (about) 1 package algod 2 3 import ( 4 "context" 5 "fmt" 6 7 "github.com/algorand/go-algorand-sdk/client/v2/common" 8 "github.com/algorand/go-algorand-sdk/client/v2/common/models" 9 ) 10 11 // GetLightBlockHeaderProof gets a proof for a given light block header inside a 12 // state proof commitment 13 type GetLightBlockHeaderProof struct { 14 c *Client 15 16 round uint64 17 } 18 19 // Do performs the HTTP request 20 func (s *GetLightBlockHeaderProof) Do(ctx context.Context, headers ...*common.Header) (response models.LightBlockHeaderProof, err error) { 21 err = s.c.get(ctx, &response, fmt.Sprintf("/v2/blocks/%s/lightheader/proof", common.EscapeParams(s.round)...), nil, headers) 22 return 23 }