/** * Copyright (c) 2020 Burst Apps Team */ import {ChainService} from '../../../service'; import {RewardRecipient} from '../../..'; /** * Use with [[ApiComposer]] and belongs to [[AccountApi]]. * * See details at [[AccountApi.getRewardRecipient]] * @module core.api.factories */ export const getRewardRecipient = (service: ChainService): (accountId: string) => Promise => async (accountId: string): Promise => { const parameters = { account: accountId }; return service.query('getRewardRecipient', parameters); };