IpfsDhtCommand class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findPeer({required String peerId, bool? verbose})
→ Future<Map<String, dynamic>>
-
Find the multiaddresses associated with a Peer ID.
/api/v0/dht/findpeer
-
findProvs({required String key, bool? verbose, int? numProviders})
→ Future<Map<String, dynamic>>
-
Find peers that can provide a specific value, given a key.
/api/v0/dht/findprovs
-
get({required String key, bool? verbose})
→ Future<Map<String, dynamic>>
-
Given a key, query the routing system for its best value.
/api/v0/dht/get
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
provide({required String keys, bool? verbose, bool? recursive})
→ Future<Map<String, dynamic>>
-
Announce to the network that you are providing given values.
/api/v0/dht/provide
-
put({required String path, required String key, bool? verbose})
→ Future<Map<String, dynamic>>
-
Write a key/value pair to the routing system.
/api/v0/dht/put
-
query({required String peerId, bool? verbose})
→ Future<Map<String, dynamic>>
-
Find the closest Peer IDs to a given Peer ID by querying the DHT.
/api/v0/dht/query
-
toString()
→ String
-
A string representation of this object.
inherited