Home > tupelo-wasm-sdk > WrappedBitswap
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
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(bitswap) | Constructs a new instance of the WrappedBitswap class |
| Method | Modifiers | Description |
|---|---|---|
| delete(cid) | ||
| get(cid) | ||
| getMany(cids) | ||
| getWantlist() | ||
| ledgerForPeer(peerID) | ||
| peers() | ||
| put(block) | ||
| putMany(blocks) | ||
| start() | ||
| stat() | ||
| stop() | ||
| wantlistForPeer(peerID) |