Miss any of our Open RFC calls?Watch the recordings here! »

@arkecosystem/peers

0.2.0 • Public • Published

@arkecosystem/peers

Latest Version Node Engine Build Status Codecov License: MIT

Lead Maintainer: Brian Faust

Installation

yarn add @arkecosystem/peers

Usage

Peers via GitHub

import { PeerDiscovery } from "@arkecosystem/peers";
 
await PeerDiscovery.new("devnet")
    .withVersion(">=2.4.0-next.0")
    .withLatency(300)
    .sortBy("latency")
    .findPeersWithPlugin("core-api");

Peers via Relay

import { PeerDiscovery } from "@arkecosystem/peers";
 
await PeerDiscovery.new("http://dexplorer.ark.io/api/v2/peers")
    .withVersion(">=2.4.0-next.0")
    .withLatency(300)
    .sortBy("latency")
    .findPeersWithPlugin("core-api");

Testing

yarn test

Security

If you discover a security vulnerability within this package, please send an e-mail to security@ark.io. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

MIT © ARK Ecosystem

Keywords

none

Install

npm i @arkecosystem/[email protected]

Version

0.2.0

License

MIT

Unpacked Size

189 kB

Total Files

16

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar