Hi there, I am a newcomer to algorand and smart contract. I met a problem of obtaining the value from the global state of a smart contract application.
For example, there is a smart contract having a gloabl state called “hello”. The value to this key is “nice to meet you”. I would like to use the function of pyteal and py-algorand to do the following things:
First, read the value of this global state from this specific app.
Second, return this value in HTTP response (I am using purestake testnet here), so that I could read this value in local dev like vscode editor.
Until now, I have tried App.globalGet(“hello”) and App.globalGetEx(Int(0), “hello”), but neither of them works. Any ideas?