UNPKG

@fruitsjs/core

Version:

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

16 lines (12 loc) 546 B
import {ChainService} from '../../../service'; import {GetAccountBlocksArgs} from '../../../typings/args'; import {BlockList} from '../../../typings/blockList'; export const getLatestAccountBlock = (service: ChainService): (args: GetAccountBlocksArgs) => Promise<BlockList> => (args): Promise<BlockList> => { const params = { account: args.accountId, includeTransactions: args.includeTransactions || false }; return service.query('getLatestAccountBlocks', params); };