// GetAlgorandEnvironmentVars returns a config tuple needed to interact with the Algorand node.
//  addr:      URL of the Algorand node
//  token:     API token for the algod endpoint
//  base64key: Base64-encoded private key of the Algorand application
// You can use these to initialize a client.CreateAlgorandClientWrapper.
GetAlgorandEnvironmentVars returns a config tuple needed to interact with the Algorand node.
addr:      URL of the Algorand node
token:     API token for the algod endpoint
base64key: Base64-encoded private key of the Algorand application
You can use these to initialize a client.CreateAlgorandClientWrapper.
// GetAlgorandEnvironmentVars returns a config tuple needed to interact with the Algorand node . // addr : URL of the Algorand node // token : API token for the algod endpoint // base64key : Base64 - encoded private key of the Algorand application // You can use these to initialize a client . CreateAlgorandClientWrapper .
func GetAlgorandEnvironmentVars() (URL string, token string, base64key string, headers []*common.Header) {
	URL = os.Getenv(EnvURLNode)
	token = os.Getenv(EnvAlgodToken)
	base64key = os.Getenv(EnvPrivateKey)
	rawHeader := os.Getenv(EnvHeadersNode)
	for _, s := range strings.Split(rawHeader, "&") {
		kv := strings.Split(s, ":")
		if len(kv) != 2 {
			continue
		}
		headers = append(headers, &common.Header{Key: kv[0], Value: kv[1]})
	}
	return URL, token, base64key, headers
}
func GetAlgorandEnvironmentVars ( ) ( URL string , token string , base64key string , headers [ ] * common . Header ) { URL = os . Getenv ( EnvURLNode ) token = os . Getenv ( EnvAlgodToken ) base64key = os . Getenv ( EnvPrivateKey ) rawHeader := os . Getenv ( EnvHeadersNode ) for _ , s := range strings . Split ( rawHeader , " " ) { kv := strings . Split ( s , " " ) if len ( kv ) != 2 { continue } headers = append ( headers , & common . Header { Key : kv [ 0 ] , Value : kv [ 1 ] } ) } return URL , token , base64key , headers }
GetAlgorandEnvironmentVars returns a config tuple needed to interact with the Algorand node.
GetAlgorandEnvironmentVars returns a config tuple needed to interact with the Algorand node .