Acquire the value of global state from smart contract

Welcome @yfmao glad you are here building!

Have a look at this section of the docs for using the SDK to read global state:

Please let me know if that gets you closer. Please provide some of your code samples that are failing and we can troubleshoot further with you. Please use the triple tick to create code blocks:

# Use ``` before and after your code