0.2.1 • Published 5 years ago

@blockpool-io/peers v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@blockpool-io/peers

Latest Version Node Engine Build Status Codecov License: MIT

Lead Maintainer: Brian Faust

Installation

yarn add @blockpool-io/peers

Usage

Peers via GitHub

import { PeerDiscovery } from "@blockpool-io/peers";

await PeerDiscovery.new("devnet")
	.withVersion(">=2.4.0-next.0")
	.withLatency(300)
	.sortBy("latency")
	.findPeersWithPlugin("core-api");

Peers via Relay

import { PeerDiscovery } from "@blockpool-io/peers";

await PeerDiscovery.new("http://api.testnet.blockpool.io:9031/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 support@blockpool.io. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

MIT © Blockpool MIT © ARK Ecosystem