C# Class Ipfs.Commands.IpfsDht

Inheritance: Ipfs.Json.IpfsCommand
Mostrar archivo Open project: TrekDev/net-ipfs-api

Public Methods

Method Description
FindPeer ( string peerID ) : Task

Run a 'FindPeer' query through the DHT

FindProvs ( string key, bool verbose = false ) : Task

Run a 'FindProviders' query through the DHT FindProviders will return a list of peers who are able to provide the value requested.

Query ( string peerID, bool verbose = false ) : Task

Run a 'findClosestPeers' query through the DHT

Private Methods

Method Description
IpfsDht ( Uri commandUri, HttpClient httpClient, IJsonSerializer jsonSerializer ) : System

Method Details

FindPeer() public method

Run a 'FindPeer' query through the DHT
public FindPeer ( string peerID ) : Task
peerID string The peer to search for
return Task

FindProvs() public method

Run a 'FindProviders' query through the DHT FindProviders will return a list of peers who are able to provide the value requested.
public FindProvs ( string key, bool verbose = false ) : Task
key string The key to find providers for
verbose bool Write extra information
return Task

Query() public method

Run a 'findClosestPeers' query through the DHT
public Query ( string peerID, bool verbose = false ) : Task
peerID string The peerID to run the query against
verbose bool Write extra information
return Task