add in repository and finish main account transaction api