UNPKG

@fruitsjs/core

Version:

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

16 lines (14 loc) 516 B
import { ChainService } from '../../../service/chainService'; import { PeerAddressList } from '../../../typings/peerAddressList'; /** * Use with [[ApiComposer]] and belongs to [[NetworkApi]]. * * See details at [[NetworkApi.getPeers]] * @module core.api.factories */ export const getPeers = (service: ChainService): (active: boolean) => Promise<PeerAddressList> => (active: boolean = true): Promise<PeerAddressList> => service.query('getPeers', { active, });