Add totalreceived function to wallet model