tupelo-wasm-sdk

Home > tupelo-wasm-sdk > WrappedBitswap

WrappedBitswap class

A wrapper around an IPFS call-back-based bitswap that turns it into async/await compatible. There is currently an open PR on the bitswap repo that will allow us to switch to the IPFS-maintained bitswap completely.

Signature:

export declare class WrappedBitswap 

Constructors

Constructor Modifiers Description
(constructor)(bitswap)   Constructs a new instance of the WrappedBitswap class

Methods

Method Modifiers Description
delete(cid)    
get(cid)    
getMany(cids)    
getWantlist()    
ledgerForPeer(peerID)    
peers()    
put(block)    
putMany(blocks)    
start()    
stat()    
stop()    
wantlistForPeer(peerID)