I don't find a way to trigger a function automatically when an Elrond's transactions has status "success".
I wait some amount of time until the transaction ends (or I query the contract until the status is "success"), but I want to run some code in the precise moment it ends.