Optional
options: AbortOptionsRetrieves a value from the network corresponding to the passed key.
// ...
const key = '/key'
const value = await contentRouting.get(key)
Optional
options: AbortOptionsThe implementation of this method should ensure that network peers know the caller can provide content that corresponds to the passed CID.
// ...
await contentRouting.provide(cid)
Optional
options: AbortOptionsPuts a value corresponding to the passed key in a way that can later be retrieved by another network peer using the get method.
// ...
const key = '/key'
const value = uint8ArrayFromString('oh hello there')
await contentRouting.put(key, value)
Optional
options: AbortOptions
Find the providers of the passed CID.
Example