txn = (
... contract.functions.transfer('to address ', 1_000)
... .with_owner('address ') # address of the private key
... .fee_limit(5_000_000)
... .build()
... .sign(priv_key)
... )
An error:
Traceback (most recent call last):
File "zz.py", line 16, in
.sign(priv_key)
NameError: name 'priv_key' is not defined