I don't find a way to trigger a function automatically when a MultiversX's transaction 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.
I solved it querying the Elrond's API until the transaction has "success" state (not very efficient).