Improved typing in JsonRpcProvider.ts, removed unused properties in RemoteService.