You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bot's wallet: the one with the Private Key for the delegation.
sender's wallet: I want to delegate energy from this wallet but I don't want to use the Private Key instead I gave permission to delegate energy to the bot wallet from this one.
The code roughly looks like this but it always returns tronpy.exceptions.BadKey: ('provided private key is not in the permission list', 'provided BOT_WALLET_ADDRESS', "required {'operations': '7fff1fc0033ec307000000000000000000000000000000000000000000000000', 'keys': [{'address': 'some_address_here', 'weight': 1}], 'threshold': 1, 'id': 2, 'type': 'Active', 'permission_name': 'active'}")
I have also tried with with_owner(SENDER_WALLET) and owner=BOT_WALLET but nothing seems to work.
What's wrong with the code? and is it even possible though the API to delegate energy from another wallet assuming it gave permission to the bot's wallet?
The text was updated successfully, but these errors were encountered:
I have two wallets
The code roughly looks like this but it always returns
tronpy.exceptions.BadKey: ('provided private key is not in the permission list', 'provided BOT_WALLET_ADDRESS', "required {'operations': '7fff1fc0033ec307000000000000000000000000000000000000000000000000', 'keys': [{'address': 'some_address_here', 'weight': 1}], 'threshold': 1, 'id': 2, 'type': 'Active', 'permission_name': 'active'}")
I have also tried with
with_owner(SENDER_WALLET)
andowner=BOT_WALLET
but nothing seems to work.What's wrong with the code? and is it even possible though the API to delegate energy from another wallet assuming it gave permission to the bot's wallet?
The text was updated successfully, but these errors were encountered: