UNPKG

@fruitsjs/core

Version:

Principal package with functions and models for building Fruits Eco-Blockchain applications.

20 lines (16 loc) 603 B
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<RewardRecipient> => async (accountId: string): Promise<RewardRecipient> => { const parameters = { account: accountId }; return await service.query<RewardRecipient>('getRewardRecipient', parameters); };