use "callable" typehint instead of "Closure" in the transaction API signature