Updated worker script for POST transactions