fetch transaction template fetch function