You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Where `peerId` is a IPFS/libp2p Id of type [PeerId](https://github.com/libp2p/js-peer-id).
13
+
14
+
`callback` must follow `function (err, peerInfo) {}` signature, where `err` is an error if the operation was not successful. `peerInfo` is an object of type [PeerInfo](https://github.com/libp2p/js-peer-info)
15
+
16
+
If no `callback` is passed, a promise is returned.
17
+
18
+
Example:
19
+
20
+
```JavaScript
21
+
var id =PeerId.create()
22
+
ipfs.dht.findPeer(id, function (err, peerInfo) {
23
+
// peerInfo will contain the multiaddrs of that peer
24
+
})
25
+
```
26
+
27
+
#### `findprovs`
28
+
29
+
> Retrieve the providers for content that is addressed by an hash.
0 commit comments