// GetBufferRaw returns the stored global state of this buffer's associated Algorand application.
GetBufferRaw returns the stored global state of this buffer's associated Algorand application.
// GetBufferRaw returns the stored global state of this buffer ' s associated Algorand application .
func (ab *AlgorandBuffer) GetBufferRaw(ctx context.Context) (map[string][]byte, error) {
	ctx, cancel := context.WithTimeout(ctx, ab.timeoutLength)
	app, err := ab.Client.GetApplicationByID(ab.AppId, ctx)
	cancel()
	if err != nil {
		return nil, err
	}
	m := make(map[string][]byte)
	for _, kv := range app.Params.GlobalState {
		decodedKey, _ := base64.StdEncoding.DecodeString(kv.Key)
		decodedVal, _ := base64.StdEncoding.DecodeString(kv.Value.Bytes)
		m[string(decodedKey)] = decodedVal
	}
	return m, nil
}
func ( ab * AlgorandBuffer ) GetBufferRaw ( ctx context . Context ) ( map [ string ] [ ] byte , error ) { ctx , cancel := context . WithTimeout ( ctx , ab . timeoutLength ) app , err := ab . Client . GetApplicationByID ( ab . AppId , ctx ) cancel ( ) if err != nil { return nil , err } m := make ( map [ string ] [ ] byte ) for _ , kv := range app . Params . GlobalState { decodedKey , _ := base64 . StdEncoding . DecodeString ( kv . Key ) decodedVal , _ := base64 . StdEncoding . DecodeString ( kv . Value . Bytes ) m [ string ( decodedKey ) ] = decodedVal } return m , nil }
GetBufferRaw returns the stored global state of this buffer's associated Algorand application.
GetBufferRaw returns the stored global state of this buffer ' s associated Algorand application .