Lead Maintainer: Brian Faust
yarn add @arkecosystem/peers
import { PeerDiscovery } from "@arkecosystem/peers";
peerDiscovery = await PeerDiscovery.new({
networkOrHost: "devnet"
})
peers = peerDiscovery
.withVersion(">=2.4.0-next.0")
.withLatency(300)
.sortBy("latency")
.findPeersWithPlugin("core-api");
import { PeerDiscovery } from "@arkecosystem/peers";
peerDiscovery = await PeerDiscovery.new({
networkOrHost: "http://dexplorer.ark.io/api/peers",
})
peers = peerDiscovery
.withVersion(">=2.4.0-next.0")
.withLatency(300)
.sortBy("latency")
.findPeersWithPlugin("core-api");
yarn test
If you discover a security vulnerability within this package, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.
This project exists thanks to all the people who contribute.