pass block to transaction