Maybe it's a silly question... I'm trying to create an admin proposal, and execute it with a pre configured relayer. When the proposal is created using the Defender site, the execution strategy seems to be "relayer", but that param isn't accepted as a viaType by the API (I'm using Python, by the way).
What's the procedure to call an admin action and get it executed automatically by the relayer?
Thanks
Hi @Patricio_Lopez ,
Could you share the code you are using in your python script
sure
def createProposal(self,via,viaType,*args,type="custom"):
payload={}
payload['contract']={
"address": self.contract.address,
"network": self.contract.network
}
payload['title']=self.title
payload['description']=self.description
payload['type']=type
payload['functionInterface']=self.functionInterface
payload['via']=via
payload['viaType']=viaType
functionArguments=[]
for arg in args:
functionArguments.append(arg)
payload['functionInputs']=functionArguments
print(payload)
jwt=self.contract.defender.authenticationToken()
print(jwt)
result= self.__sendToDefender(json.dumps(payload),jwt)
return result
The problem arise when the viaType param is "relayer" and the via is the relayer address. I can send it as a normal EOA via transaction, but that doesn't send the TX. Maybe I should use Autotask and Webhook?