Question about Application Information in PythonSDK

I want to find out the Application Account in the Python SDK. Yes, I have Teal version 5 and the latest SDK. When I use algod_client.application_info(38083238)) to get the Application Account, this is what comes back:

Applicaiton info: {‘id’: 38083238,
‘params’: {‘approval-program’: ‘BSAEAAECAyYBC2V2ZW5fc3RldmVuMRgiEkAAxzEZIxJAALoxGSQSQACxMRmBBBJAAKcxGYEFEkAAnTEZIhJAAAEAMgQkEjYaAIADQnV5EhBAABUyBCQSNhoAgARTZWxsEhBAAAEAI0MigApjb2xsYXRlcmFsMwEIZiKACm11bHRpcGxpZXI2GgEXZiKAE2F2YWlsYWJsZV90b19ib3Jyb3czAQglC2YzAQg2GgEXCzMBCCULDEQiKCJmIoAPYW1vdW50X2JvcnJvd2VkMwEINhoBFwtmI0MjQyJDIkMiKCNmI0MjQw==’,
‘clear-state-program’: ‘BYEBQw==’,
‘creator’: ‘PMB7NQWDJLC3ZE2WFL3WPNDIHJBSTQYBHZUZYT24FQUOXX5NOQVYXGICCA’, ‘global-state-schema’: {‘num-byte-slice’: 0, ‘num-uint’: 0}, ‘local-state-schema’: {‘num-byte-slice’: 0, ‘num-uint’: 5}}}

Nowhere does it show the Application Account. Please help.

You should be able to get the address of a smart contract using:

actual = logic.get_application_address(appID)

1 Like

Thank you! It works.