refactored transactions route to use the seed function