Python SDK - getting started

Hi there,

I’m just getting started with Flow/Cadence using the Python SDK.

Coming from Ethereum - I’m trying to find out how I can read public variables from a contract, or call a read-only function (with arguments). Is this possible via the Python SDK?


(edit - looks like I can use something like ExecuteScriptAtLatestBlock - what I really need is an example of executing against a contract that has already been deployed)


Sorry the docs link was bad for a while :slight_smile:

To read data from the chain you need to execute scripts.

There are docs on how to run scripts here: Overview - Python Flow SDK

And there are examples here: flow-py-sdk/examples/ at master · janezpodhostnik/flow-py-sdk · GitHub

Let me know if that answers your questions, or if you need more help.