I want to opt-in an escrow account for an asset, but I’m worried someone could drain the Algos out of the account by opting it in for an asset repeatedly after deployment. In order to prevent this, I require the fee of the opt-in txn to be 0. Then, I send it along with another txn which pays the fees of the other.
I have an issue setting the fee of the opt-in transaction. Here is my code:
params = cl.suggested_params() params.flat_fee = True params.fee = 0 print(params, params.fee) atn = AssetTransferTxn(esc_addr, params, esc_addr, 0, asset_id) print(atn)
The output shows “params” with the proper fee, but for some reason it doesn’t construct the txn correctly:
I think this could be a bug. Haven’t tried this fee structure with other txn types…