Add new RPC call getinterest to return total earned interests during a specified period.