implemented transactions api call