|
1 |
| -# js-libp2p-delegated-peer-routing <!-- omit in toc --> |
| 1 | +# @libp2p/delegated-peer-routing <!-- omit in toc --> |
2 | 2 |
|
3 |
| -[](http://protocol.ai) |
4 |
| -[](http://libp2p.io/) |
5 |
| -[](http://webchat.freenode.net/?channels=%23libp2p) |
6 |
| -[](https://discuss.libp2p.io) |
7 |
| -[](https://codecov.io/gh/libp2p/js-libp2p-delegated-peer-routing) |
8 |
| -[](https://github.com/libp2p/js-libp2p-delegated-peer-routing/actions/workflows/js-test-and-release.yml) |
9 |
| -[](https://david-dm.org/libp2p/js-libp2p-delegated-peer-routing) |
| 3 | +[](http://libp2p.io/) |
| 4 | +[](http://webchat.freenode.net/?channels=%23libp2p) |
| 5 | +[](https://discuss.libp2p.io) |
| 6 | +[](https://codecov.io/gh/libp2p/js-libp2p-delegated-peer-routing) |
| 7 | +[](https://github.com/libp2p/js-libp2p-delegated-peer-routing/actions/workflows/js-test-and-release.yml) |
10 | 8 |
|
11 |
| -Leverage other peers in the network to perform Peer Routing calls. |
12 |
| - |
13 |
| -Requires access to `/api/v0/dht/findpeer` and `/api/v0/dht/query` HTTP API endpoints of the delegate node. |
| 9 | +> Leverage other peers in the libp2p network to perform Peer Routing calls. |
14 | 10 |
|
15 | 11 | ## Table of contents <!-- omit in toc -->
|
16 | 12 |
|
| 13 | +- [Install](#install) |
17 | 14 | - [Requirements](#requirements)
|
18 | 15 | - [Example](#example)
|
19 | 16 | - [License](#license)
|
20 |
| - - [Contribution](#contribution) |
| 17 | +- [Contribution](#contribution) |
| 18 | + |
| 19 | +## Install |
| 20 | + |
| 21 | +```console |
| 22 | +$ npm i @libp2p/delegated-peer-routing |
| 23 | +``` |
| 24 | + |
| 25 | +Leverage other peers in the network to perform Peer Routing calls. |
| 26 | + |
| 27 | +Requires access to `/api/v0/dht/findpeer` and `/api/v0/dht/query` HTTP API endpoints of the delegate node. |
21 | 28 |
|
22 | 29 | ## Requirements
|
23 | 30 |
|
@@ -60,9 +67,9 @@ for await (const event of routing.getClosestPeers(peerId.id)) {
|
60 | 67 |
|
61 | 68 | Licensed under either of
|
62 | 69 |
|
63 |
| - * Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / http://www.apache.org/licenses/LICENSE-2.0) |
64 |
| - * MIT ([LICENSE-MIT](LICENSE-MIT) / http://opensource.org/licenses/MIT) |
| 70 | +- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>) |
| 71 | +- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>) |
65 | 72 |
|
66 |
| -### Contribution |
| 73 | +## Contribution |
67 | 74 |
|
68 | 75 | Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
|
0 commit comments