Hi all,
I am trying to make a transaction using the Python SDK. It is a simple script run at the command line to make regular payments. But I am struggling to build the transaction.
This is what I have in the try…except block:
algod_client = algod.AlgodClient(algod_token='',
algod_address='https://mainnet-api.algonode.cloud')
params = algod_client.suggested_params()
try:
unsigned_txn = transaction.AssetTransferTxn(
sender=sender_acc,
sp=params,
receiver=receiver_acc,
amt=amount,
index=asset_id,
note=b"Test run.",
)
except Exception as e:
print("ERROR:", vars(e))
This block of code simply prints out:
ERROR: {}
How do I get better error information? What am I missing?
Thanks in advance.