github.com/algorand/go-algorand-sdk@v1.24.0/client/v2/algod/tealDisassemble.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 // TealDisassemble given the program bytes, return the TEAL source code in plain 11 // text. This endpoint is only enabled when a node's configuration file sets 12 // EnableDeveloperAPI to true. 13 type TealDisassemble struct { 14 c *Client 15 16 source []byte 17 } 18 19 // Do performs the HTTP request 20 func (s *TealDisassemble) Do(ctx context.Context, headers ...*common.Header) (response models.DisassembleResponse, err error) { 21 err = s.c.post(ctx, &response, "/v2/teal/disassemble", nil, headers, s.source) 22 return 23 }