4

I tried to implement repeated execution of particular action and set this param as _self of calling contract, but the transaction gets executed only once in this case. Then i tried to set it as time() and it worked, so has it to be unique?

1 Answer 1

5

The sender_id is just a value set by the contract that sends the deferred transaction so that later operations can refer to the same transaction. The semantics are:

  • sending a new transaction with the same sender_id as one in-flight will replace the in-flight transaction
  • canceling a transaction can be achieved by passing that sender_id into cancel_deferred

So, if you want to have N transactions in-flight at the same time they need N unique ID's

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.