-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.py
More file actions
23 lines (16 loc) · 705 Bytes
/
test.py
File metadata and controls
23 lines (16 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from algosdk.v2client import algod
from constants import Constants
from helpers import algo_helper
from models.IndexerManager import IndexerHelper
def main():
mnemonic = Constants.accounts[0].get('mnemonic')
private_key = algo_helper.get_private_key_from_mnemonic(mnemonic)
address = algo_helper.get_address_from_private_key(private_key)
algod_client = algod.AlgodClient(Constants.algod_token, Constants.algod_address)
indexer = IndexerHelper()
ids = indexer.get_app_ids_from_transactions_note(Constants.transaction_note)
print(ids)
app_info = indexer.get_application_from_id(ids[-1])
print(app_info)
if __name__ == "__main__":
main()